/* ============================================
   PROJECT METADATA FORM - MAIN STYLESHEET
   ============================================ */

/* Import Base Styles (Variables, Reset, Typography, Animations) */
@import url('base.css');

/* Import Layout Styles (Page Structure, Header, Container) */
@import url('layout.css');

/* Import Component Styles (All UI Components) */
@import url('components.css');

/* ============================================
   PAGE OVERRIDES & UTILITIES
   ============================================ */

/* Generic Wrappers */
.input-wrapper {
   position: relative;
}

/* ============================================
   DECORATION TYPES
   ============================================ */
#decorationTypesContainer {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1rem;
   margin-top: 0.5rem;
}

.decoration-checkbox-label {
   text-transform: none;
   letter-spacing: 0;
   font-weight: 400;
   margin: 0;
   cursor: pointer;
}

/* ============================================
   TOTAL QUANTITY DISPLAY
   ============================================ */
#totalQuantityDisplay {
   margin-top: 1rem;
   display: none;
}

#totalQuantityValue {
   padding: 0.875rem 1rem;
   background: var(--bg-page);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   font-size: 0.9375rem;
   font-weight: 600;
   color: var(--text-strong);
}

/* ============================================
   ADDITIONAL INFO SECTION
   ============================================ */
#shipToAddressContainer {
   display: none;
   margin-top: 0.5rem;
}

.checkbox-label-regular {
   text-transform: none;
   letter-spacing: 0;
   font-weight: 400;
   margin: 0;
   cursor: pointer;
}

.checkbox-group-wrapper {
   margin-bottom: 0.5rem;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal-title-custom {
   text-align: left;
   margin-bottom: 0.25rem;
}

.product-modal-header-wrapper {
   margin-bottom: 1rem;
}

.color-selection-label {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   /* Override base label styles from components.css */
   text-transform: none;
   letter-spacing: normal;
   margin-bottom: 0;
}

.color-preview-box {
   display: inline-block;
   width: 24px;
   height: 24px;
   border: 1px solid var(--border-soft);
   border-radius: 3px;
   overflow: hidden;
   background: var(--bg-page);
   flex-shrink: 0;
}

.color-preview-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: none;
}

.color-preview-fallback {
   width: 100%;
   height: 100%;
   background: #f1f5f9;
}

.selected-color-text {
   font-weight: 500;
   color: var(--text-strong);
}

.inventory-section-title {
   font-size: 1rem;
   margin-bottom: 0.5rem;
   margin-top: 0.5rem;
}

.warehouse-title {
   margin-top: 0.75rem;
   margin-bottom: 0.5rem;
   font-size: 1rem;
}

.table-responsive {
   overflow-x: auto;
   max-width: 100%;
   /* Default overflow-x: auto for wrapper div */
}

/* JS Dynamic Classes */
.inventory-loading-text {
   padding: 2rem;
   text-align: center;
   color: var(--text-muted);
}

.inventory-error-text {
   padding: 2rem;
   text-align: center;
   color: #dc2626;
}

.row-special-pricing {
   background: #fef3c7;
   color: #92400e;
}

.text-price-highlight {
   font-weight: 600;
   color: #dc2626;
}

.color-fallback-box {
   width: 100%;
   min-height: 60px;
}

.modal-total-wrapper {
   margin-top: 0.5rem;
   padding: 0.5rem;
   background: var(--bg-page);
   border-radius: 4px;
   text-align: right;
   font-size: 0.875rem;
}

.modal-total-quantity-text {
   font-size: 1rem;
   color: var(--accent);
}