/* ALECXA Dancewear — Bulk Order & Tracking Styles */

/* ── Layout ─────────────────────────────────────────── */
.bulk-order-layout,
.track-layout {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--page-pad) 76px;
    font-family: var(--sans);
}

.bulk-order-layout input,
.bulk-order-layout select,
.bulk-order-layout textarea {
    font-family: var(--sans);
}

.bulk-order-intro {
    text-align: center;
    margin-bottom: 40px;
}

.bulk-order-title {
    font-family: var(--sans);
    font-size: clamp(38px, 7vw, 56px);
    font-weight: 600;
    line-height: .92;
    margin: 14px 0 16px;
}

.bulk-order-desc {
    max-width: 480px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

/* ── Step Indicator ─────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: .45;
    transition: opacity .3s;
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: .75;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    transition: background .3s, border-color .3s, color .3s;
}

.step-item.active .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: #fffaf5;
}

.step-item.completed .step-number {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fffaf5;
}

.step-label {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--ink);
}

.step-line {
    width: 48px;
    height: 1px;
    background: var(--line);
    margin: 0 16px;
}

/* ── Form ───────────────────────────────────────────── */
.bulk-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 13px;
}

.bulk-form .form-grid label {
    display: grid;
    gap: 6px;
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #75665d;
}

.bulk-form .form-grid .full-width {
    grid-column: 1 / -1;
}

.bulk-form .form-grid input,
.bulk-form .form-grid select,
.bulk-form .form-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fbf8f3;
    color: var(--ink);
    padding: 12px 11px;
    font-family: var(--sans);
    font-size: 15px;
    text-transform: none;
    letter-spacing: normal;
    outline-offset: 0;
}

.bulk-form .form-grid textarea {
    resize: vertical;
}

.bulk-form .form-grid input:focus,
.bulk-form .form-grid textarea:focus {
    border-color: var(--accent);
}

.required {
    color: var(--accent);
}

.field-error {
    border-color: #c0392b !important;
}

.step-content {
    display: none;
    animation: fadeStep .3s ease both;
}

.step-content.active {
    display: block;
}

@keyframes fadeStep {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-heading {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 400;
    margin: 0 0 20px;
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.step-actions .button {
    min-height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.step-actions .button span {
    font-size: 16px;
}

/* ── Design Type Toggle ────────────────────────────── */
.design-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.design-type-option {
    cursor: pointer;
    display: flex;
}

.design-type-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.design-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 16px;
    border: 1px solid var(--line);
    text-align: center;
    transition: border-color .2s, background .2s;
    width: 100%;
}

.design-type-card:hover {
    background: #efe6dd;
    border-color: #ccb9a9;
}

.design-type-option input:checked + .design-type-card {
    border-color: var(--accent);
    background: rgba(155, 116, 92, .08);
}

.design-type-option input:focus-visible + .design-type-card {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.design-type-card svg {
    color: var(--accent);
}

.design-type-label {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink);
}

.design-type-desc {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
}

/* ── ALECXA Design Strip ──────────────────────────── */
.design-strip-wrap {
    position: relative;
    margin-bottom: 16px;
}

.design-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.design-strip::-webkit-scrollbar {
    display: none;
}

.design-strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(46, 32, 25, .1);
    transition: opacity .2s;
}

.design-strip-arrow:hover {
    background: #efe6dd;
}

.design-strip-left {
    left: -6px;
}

.design-strip-right {
    right: -6px;
}

.design-chip {
    flex-shrink: 0;
    width: 110px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: transform .15s;
}

.design-chip:hover {
    transform: translateY(-2px);
}

.design-chip img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 2px solid var(--line);
    border-radius: 6px;
    transition: border-color .2s;
    display: block;
}

.design-chip.selected img,
.design-chip.selected .design-chip-placeholder {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(155, 116, 92, .25);
}

.design-chip-placeholder {
    width: 110px;
    height: 110px;
    border: 2px solid var(--line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efe6dd;
    color: var(--muted);
}

.design-chip-name {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink);
    margin-top: 6px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.design-chip-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}

.design-chip.selected .design-chip-check {
    display: flex;
}


/* ── Design Image Slider Modal ────────────────────── */
.design-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(38, 25, 18, .55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .2s ease;
}

.design-modal-overlay[hidden] {
    display: none;
}

.design-modal {
    width: 100%;
    max-width: 700px;
    max-height: calc(100% - 40px);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 24px 80px rgba(46, 32, 25, .25);
    display: flex;
    flex-direction: column;
    animation: slideUp .25s ease;
}

.design-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.design-modal-title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink);
}

.design-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 8px;
    flex: 1;
    min-height: 0;
}

.design-slider-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    position: relative;
}

.design-slider-img-wrap img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

.design-slider-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, opacity .15s;
}

.design-slider-arrow:hover {
    background: #efe6dd;
}

.design-slider-arrow:disabled {
    opacity: .25;
    cursor: default;
}

.design-slider-counter {
    position: absolute;
    bottom: -4px;
    right: 0;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
}

.design-modal-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px 16px;
    flex-shrink: 0;
}

.design-modal-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.design-modal-dots .dot.active {
    background: var(--accent);
    transform: scale(1.25);
}

/* ── Design Zoom Overlay ─────────────────────────── */
.design-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 12, 8, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn .15s ease;
    padding: 20px;
}

.design-zoom-overlay[hidden] {
    display: none;
}

.design-zoom-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Design chip name link ───────────────────────── */
.design-chip-view {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s;
}

.design-chip-view:hover {
    text-decoration-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 760px) {
    .design-modal {
        max-width: 100%;
    }

    .design-slider-img-wrap img {
        max-height: 45vh;
    }

    .design-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

.no-designs-msg {
    text-align: center;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 14px;
    padding: 30px 20px;
    border: 1px dashed var(--line);
}

@media (max-width: 760px) {
    .design-type-toggle {
        grid-template-columns: 1fr;
    }

    .design-preview-slider img {
        height: 120px;
    }
}

/* ── File Drop Zone ─────────────────────────────────── */
.file-drop-zone {
    position: relative;
    border: 2px dashed var(--line);
    padding: 30px 20px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}

.file-drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(155, 116, 92, .05);
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop-text {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
}

.file-drop-text svg {
    color: var(--accent);
    margin-bottom: 8px;
}

.file-drop-text p {
    margin: 0 0 4px;
}

.file-drop-text small {
    font-size: 11px;
    opacity: .7;
}

.file-browse {
    color: var(--accent);
    text-decoration: underline;
}

.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 1 / -1;
}

.file-preview-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    background: #fbf8f3;
}

.file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-thumb .file-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 0;
    background: rgba(46,32,25,.7);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.file-preview-name {
    width: 72px;
    font-family: var(--sans);
    font-size: 9px;
    color: var(--muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 4px;
    word-break: break-all;
    white-space: normal;
    line-height: 1.2;
}

/* ── Size Grid ──────────────────────────────────────── */
.size-notice {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.4;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.size-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    padding: 10px 14px;
    background: #fbf8f3;
}

.size-label {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.size-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: transparent;
    font-family: var(--sans);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
    color: var(--ink);
}

.qty-btn:hover {
    background: #efe6dd;
}

.size-qty-input {
    width: 52px;
    height: 30px;
    border: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    text-align: center;
    font-family: var(--sans);
    font-size: 13px;
    background: #fff;
    color: var(--ink);
    padding: 0;
    -moz-appearance: textfield;
}

.size-qty-input::-webkit-outer-spin-button,
.size-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-top: 16px;
    border: 1px solid var(--line);
    background: var(--paper-deep);
}

.total-label {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--muted);
}

.total-count {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}

.total-count.is-valid {
    color: #27774e;
}

.total-count.is-invalid {
    color: #c0392b;
}

.minimum-warning {
    color: #c0392b;
    font-family: var(--sans);
    font-size: 12px;
    margin: 8px 0 0;
    text-align: right;
}

/* ── reCAPTCHA ──────────────────────────────────────── */
.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

/* ── Submit Button ──────────────────────────────────── */
.submit-bulk {
    min-height: 48px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-bulk:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.submit-bulk.is-loading {
    pointer-events: none;
    opacity: .6;
}

/* ── Success Overlay ────────────────────────────────── */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(38, 25, 18, .55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .3s ease;
}

.success-overlay[hidden] {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.success-card {
    background: var(--paper);
    padding: clamp(30px, 5vw, 50px);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(46, 32, 25, .2);
    animation: slideUp .35s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
    color: #27774e;
    margin-bottom: 16px;
}

.success-card h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    margin: 0 0 10px;
}

.success-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.order-number-display {
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: .08em;
    color: var(--accent);
    font-weight: 600;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 16px 0;
}

.success-note {
    font-size: 13px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.success-actions .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/* ── Track Page ─────────────────────────────────────── */
.track-form {
    margin-bottom: 30px;
}

.track-input-group {
    display: flex;
    gap: 0;
}

.track-input {
    flex: 1;
    min-height: 48px;
    border: 1px solid var(--line);
    border-right: 0;
    padding: 0 16px;
    font-family: var(--sans);
    font-size: 17px;
    background: #fbf8f3;
    color: var(--ink);
    letter-spacing: .04em;
}

.track-input:focus {
    outline: none;
    border-color: var(--accent);
}

.track-btn {
    min-height: 48px;
    border-radius: 0;
    padding: 0 28px;
    white-space: nowrap;
}

.track-not-found {
    text-align: center;
    padding: 30px 20px;
    color: #c0392b;
    font-family: var(--sans);
    font-size: 14px;
    border: 1px solid #e6c8c3;
    background: #fdf5f4;
}

/* ── Order Info Card ────────────────────────────────── */
.order-info-card,
.quotation-card,
.action-card,
.detail-card {
    border: 1px solid var(--line);
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: 16px;
    background: #fbf8f3;
}

.order-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-number-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    margin: 6px 0 0;
    letter-spacing: .05em;
}

/* ── Status Badges ──────────────────────────────────── */
.status-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 6px 14px;
    white-space: nowrap;
}

.status-warning {
    background: #fef3e2;
    color: #92600a;
    border: 1px solid #f5d89a;
}

.status-info {
    background: #e8f0fe;
    color: #1a56a7;
    border: 1px solid #a8c7f5;
}

.status-primary {
    background: #ede4db;
    color: var(--accent-dark);
    border: 1px solid var(--line);
}

.status-success {
    background: #e6f5ec;
    color: #1a6b3c;
    border: 1px solid #96d4af;
}

.status-danger {
    background: #fdf0ef;
    color: #a02e2e;
    border: 1px solid #e6a09d;
}

/* ── Order Info Grid ────────────────────────────────── */
.order-info-grid,
.quotation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.order-info-item,
.quotation-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-info-item.full-width,
.quotation-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--muted);
}

.info-value {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.35;
}

.info-value.price {
    font-size: 18px;
    font-weight: 500;
}

.info-value.accent {
    color: var(--accent);
}

.detail-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* ── Section Titles ─────────────────────────────────── */
.section-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 16px;
}

/* ── Quotation Card ─────────────────────────────────── */
.confirm-order-btn {
    margin-top: 20px;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.confirm-order-btn span {
    font-size: 18px;
}

/* ── Receipt Upload ─────────────────────────────────── */
.receipt-drop {
    padding: 24px 20px;
}

.receipt-preview {
    margin: 10px 0;
}

.receipt-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid var(--line);
    object-fit: contain;
}

.receipt-submit-btn {
    margin-top: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Delivery Options ───────────────────────────────── */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.delivery-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.delivery-option-card {
    border: 1px solid var(--line);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.delivery-option-card:hover {
    background: #efe6dd;
    border-color: #ccb9a9;
}

.delivery-option input:checked + .delivery-option-card {
    border-color: var(--accent);
    background: rgba(155, 116, 92, .08);
}

.delivery-option input:focus-visible + .delivery-option-card {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.delivery-option-card svg {
    color: var(--accent);
}

.delivery-option-title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.delivery-option-desc {
    font-size: 12px;
    color: var(--muted);
}

.delivery-submit-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Sizes Table ────────────────────────────────────── */
.sizes-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 13px;
}

.sizes-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
}

.sizes-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
}

.sizes-table tfoot td {
    border-bottom: 0;
    border-top: 2px solid var(--line);
    padding-top: 10px;
}

/* ── Files List ─────────────────────────────────────── */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.file-item:last-child {
    border-bottom: 0;
}

.file-type-badge {
    font-family: var(--sans);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 8px;
    flex-shrink: 0;
}

.file-type-design {
    background: #ede4db;
    color: var(--accent-dark);
}

.file-type-dp_receipt {
    background: #e6f5ec;
    color: #1a6b3c;
}

.file-type-bal_receipt {
    background: #e8f0fe;
    color: #1a56a7;
}

.file-name {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--accent);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name:hover {
    text-decoration: underline;
}

.file-date {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

/* ── Timeline ───────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--line);
}

.timeline-entry {
    position: relative;
    padding-bottom: 20px;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--line);
    border: 2px solid var(--paper-deep);
}

.timeline-current .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 116, 92, .2);
}

.timeline-status {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink);
}

.timeline-notes {
    font-size: 14px;
    color: var(--muted);
    margin: 3px 0 0;
    line-height: 1.35;
}

.timeline-date {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    opacity: .7;
}

/* ── Toast Notification ─────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    font-family: var(--sans);
    font-size: 13px;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(46, 32, 25, .15);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
    max-width: calc(100% - 40px);
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: #e6f5ec;
    color: #1a6b3c;
    border: 1px solid #96d4af;
}

.toast-error {
    background: #fdf0ef;
    color: #a02e2e;
    border: 1px solid #e6a09d;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 760px) {
    .bulk-form .form-grid {
        grid-template-columns: 1fr;
    }

    .step-label {
        display: none;
    }

    .step-line {
        width: 32px;
        margin: 0 10px;
    }

    .size-grid {
        grid-template-columns: 1fr 1fr;
    }

    .order-info-grid,
    .quotation-grid {
        grid-template-columns: 1fr;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }

    .track-input-group {
        flex-direction: column;
    }

    .track-input {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .track-btn {
        width: 100%;
    }

    .order-info-header {
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .size-grid {
        grid-template-columns: 1fr;
    }

    .swatch-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Swatch Banner ─────────────────────────────────── */
.swatch-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #fbf8f3, #f0e9e1);
}

.swatch-banner-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
}

.swatch-banner-text p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}

.swatch-banner .button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 20px;
}

/* ── Swatch PDF Dialog ─────────────────────────────── */
.swatch-dialog {
    width: calc(100% - 24px);
    max-width: 1600px;
    max-height: calc(100% - 24px);
    height: 95vh;
    border: 1px solid var(--line);
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(46, 32, 25, .25);
    display: none;
    overflow: hidden;
}

.swatch-dialog[open] {
    display: flex;
    flex-direction: column;
}

.swatch-dialog::backdrop {
    background: rgba(38, 25, 18, .5);
    backdrop-filter: blur(3px);
}

.swatch-dialog-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.swatch-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.swatch-dialog-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swatch-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 10px;
}

.swatch-pdf-wrap {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
}

.swatch-pdf-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #e8ded3;
}

@media (max-width: 760px) {
    .swatch-dialog {
        width: calc(100% - 12px);
        max-height: calc(100% - 12px);
        height: calc(100% - 12px);
    }

    .swatch-dialog-head {
        padding: 12px 16px;
    }

    .swatch-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ── Swatch Picker (Preferred Colors) ────────────── */
.swatch-picker-label {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.swatch-picker-search {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    outline: none;
    background: #fff;
    font-family: var(--sans);
}

.swatch-picker-search:focus {
    border-color: var(--accent, #c9a96e);
    box-shadow: 0 0 0 2px rgba(201, 169, 110, .15);
}

.swatch-picker-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 2px;
}

.swatch-pick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    user-select: none;
    white-space: nowrap;
}

.swatch-pick-chip:hover {
    border-color: var(--accent, #c9a96e);
}

.swatch-pick-chip.selected {
    border-color: var(--accent, #c9a96e);
    background: rgba(201, 169, 110, .08);
    box-shadow: 0 0 0 2px rgba(201, 169, 110, .18);
}

.swatch-pick-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.1);
    flex-shrink: 0;
}

.swatch-pick-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
}

.swatch-pick-code {
    font-size: 10px;
    color: var(--muted);
    opacity: .7;
}

.swatch-pick-chip.selected .swatch-pick-name {
    font-weight: 600;
}

.swatch-picker-empty {
    font-size: 13px;
    color: var(--muted);
    padding: 16px 0;
}

/* ── Repeat Order Box ───────────────────────────────── */
.repeat-order-box {
    background: var(--card-bg, #fbf8f3);
    border: 1px solid var(--border, #ddd2c7);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.repeat-order-box.is-verified {
    border-color: #2e7d32;
    background: #f1f8e9;
}

.repeat-order-toggle {
    display: flex;
    align-items: center;
}

.repeat-order-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.repeat-order-label small {
    color: var(--muted, #75665d);
    font-weight: 400;
}

.repeat-order-fields {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #ddd2c7);
}

.repeat-order-fields .form-grid {
    margin-bottom: 12px;
}

.repeat-order-status {
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px;
}

.repeat-order-status.is-success {
    color: #2e7d32;
}

.repeat-order-status.is-error {
    color: #c62828;
}
