/* ============================================================
   WC Multi-Shipment Planner v3 — Single-Page Flow
   Theme: Navy #0a0f1e / Gold #d9b14c / White
   ============================================================ */

:root {
    --wms-navy:     #000;
    --wms-navy-2:   #111827;
    --wms-navy-3:   #1e293b;
    --wms-gold:     #cb9a33;
    --wms-gold-lt:  #b3821c;
    --wms-white:    #ffffff;
    --wms-border:   #e5e9f0;
    --wms-border-2: #d1d9e6;
    --wms-muted:    #64748b;
    --wms-light:    #faf8f2;
    --wms-r:        5px;
    --wms-r-lg:     12px;
}

/* ── Reset & utils ─────────────────────────────────────── */
.wms-flow *, .wms-overlay * { box-sizing: border-box; }
.wms-hidden { display: none !important; }

/* ── Buttons ───────────────────────────────────────────── */
.wms-btn-primary {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--wms-gold-lt); color: var(--wms-white);
    border: 1px solid var(--wms-gold-lt); border-radius: var(--wms-r);
    padding: 14px 32px; font-size: 13px; font-weight: 600; font-family: var(--font);
    cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wms-btn-primary:hover { background: var(--wms-gold); border-color: var(--wms-gold); color: var(--wms-white); }
.wms-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--wms-gold-lt);
    color: white;
    border: 1px solid var(--wms-gold-lt);
    border-radius: var(--wms-r);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wms-btn-outline:hover { background: var(--wms-gold); border-color: var(--wms-gold); color: var(--wms-white);  }
.wms-btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 6px; }

/* ══ CART PAGE: Strategy selector ═════════════════════════ */
.wms-strategy-wrap {
    background: var(--wms-white); border: 1px solid var(--wms-border);
    border-radius: var(--wms-r-lg); padding: 28px 32px; margin: 28px 0;
    font-family: var(--font);
}
.wms-strategy-heading { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: black; }
.wms-strategy-sub     { margin: 0 0 20px; font-size: 13px; color: var(--wms-muted); line-height: 1.5; }
.wms-strategy-cards   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width:600px) { .wms-strategy-cards { grid-template-columns: 1fr; } }
.wms-strategy-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--wms-white); border: 1.5px solid var(--wms-border);
    border-radius: 10px; padding: 18px 20px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s; position: relative;
}
.wms-strategy-card:hover { border-color: var(--wms-navy-3); }
.wms-strategy-card.wms-selected { border-color: var(--wms-navy); box-shadow: 0 0 0 3px rgba(10,15,30,.07); }
.wms-strategy-card input[type="radio"] { display: none; }
.wms-card-icon-wrap {
    width: 44px; height: 44px; border-radius: 9px; background: var(--wms-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--wms-muted);
}
.wms-card-icon-wrap.wms-icon-dark { background: var(--wms-light); color: var(--wms-white); }
.wms-card-icon-wrap.wms-icon-dark svg {
    stroke: #66768c;
}
.wms-card-text { flex: 1; }
.wms-card-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--wms-navy); margin-bottom: 4px; }
.wms-card-text span   { font-size: 12px; color: var(--wms-muted); line-height: 1.5; }
.wms-card-radio-dot {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--wms-border-2);
    flex-shrink: 0; margin-top: 2px; transition: border-color .15s;
}
.wms-strategy-card.wms-selected .wms-card-radio-dot { border-color: var(--wms-navy); border-width: 5px; }
.wms-strategy-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ══ SINGLE-PAGE FLOW LAYOUT ══════════════════════════════ */
.wms-flow {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    /* Fixed height so the internal scroll container works */
    height: 82vh;
    min-height: 600px;
    max-height: 900px;
    background: var(--wms-white);
    border: 1px solid var(--wms-border);
    border-radius: var(--wms-r-lg);
    overflow: hidden;
    font-family: var(--font);
    margin: 0 0 40px;
}
@media (max-width: 768px) {
    /* Layout */
    .wms-flow { grid-template-columns: 1fr; height: auto; max-height: none; }
    .wms-flow-nav {
        border-right: none; border-bottom: 1px solid rgba(255,255,255,.1);
        overflow-y: visible; padding: 16px 16px;
        flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
    }
    .wms-flow-main { padding: 16px; overflow-y: visible; }
    .wms-panel { overflow-y: visible; }

    /* Nav steps — horizontal on mobile */
    .wms-brand { display: none; }          /* hide brand in nav on mobile */
    .wms-order-ref { display: none; }
    .wms-step-divider { display: none; }
    .wms-step-item {
        flex-direction: row !important; gap: 6px !important;
        padding: 6px 10px !important; border-radius: 20px !important; min-width: 0;
    }
    .wms-step-label { font-size: 11px !important; white-space: nowrap; }
    .wms-step-icon { width: 20px !important; height: 20px !important; font-size: 11px !important; flex-shrink: 0; }

    /* Planner toolbar — stack buttons */
    .wms-planner-topbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .wms-topbar-left { flex-direction: column; gap: 6px; }
    .wms-topbar-left .wms-btn-outline { width: 100%; justify-content: center; }
    .wms-topbar-left .wms-btn-primary { width: 100%; justify-content: center; }
    #wms-upload-csv-btn { width: 100%; justify-content: center; }

    /* Product rows — block layout */
    .wms-table-head { display: none; }
    .wms-product-row {
        display: block !important; padding: 14px !important;
        border-radius: 10px; margin-bottom: 12px;
    }
    .wms-qty-col { justify-content: flex-start; margin: 8px 0; }
    .wms-recipients-col, .wms-dates-col, .wms-shipping-col, .wms-msgs-col {
        margin-top: 8px;
    }
    .wms-msg-slot { flex-wrap: wrap; }

    /* Per-slot shipping full-width */
    .wms-slot-ship-select, .wms-slot-time-select { width: 100%; }

    /* Footer — stack on mobile */
    .wms-planner-footer {
        flex-direction: column; align-items: stretch;
        padding: 12px 16px; gap: 10px; position: sticky; bottom: 0;
    }
    .wms-footer-left { flex-wrap: wrap; gap: 8px; }
    .wms-footer-right { justify-content: stretch; }
    .wms-footer-right .wms-btn-primary { width: 100%; justify-content: center; }
    .wms-footer-product { max-width: 100%; }

    /* Auth gate */
    .wms-auth-inner { padding: 24px 18px; }
    .wms-auth-inner h2 { font-size: 18px; }
	

}

@media (max-width: 480px) {
    /* Extra small — squeeze everything */
    .wms-flow-nav { padding: 10px 12px; }
    .wms-flow-main { padding: 12px; }
    .wms-step-label { display: none; }   /* icon-only nav on very small screens */
    .wms-step-item { padding: 6px !important; border-radius: 50% !important; }
    .wms-auth-inner { padding: 20px 14px; }
    .wms-footer-stats { flex-wrap: wrap; gap: 6px; }
    .wms-footer-stat-pill { padding: 0 8px 0 0; }
    .wms-footer-stat-pill:not(:first-child) { border-left: none; padding: 0; }
}

/* ── Left nav ──────────────────────────────────────────── */
.wms-flow-nav {
    background: var(--wms-navy);
    padding: 28px 20px;
    border-right: 1px solid rgba(255,255,255,.08);
    display: flex; flex-direction: column; gap: 0;
    overflow-y: auto;
}
.wms-brand {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--wms-white);
    margin-bottom: 4px; letter-spacing: .01em;
}
.wms-order-ref {
    font-size: 11px; color: rgba(255,255,255,.4);
    margin-bottom: 28px; padding-left: 26px;
}
.wms-steps-nav {
    display: flex; flex-direction: column; gap: 0;
}
.wms-step-item {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 0; cursor: default;
}
.wms-step-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.35);
    border: 1.5px solid rgba(255,255,255,.15);
    transition: all .25s;
    line-height: 1;
}
/* SVGs inside step circles must inherit colour */
.wms-step-circle svg {
    display: block; flex-shrink: 0;
    stroke: currentColor; fill: none;
}
.wms-step-item.wms-step-active .wms-step-circle {
    background: var(--wms-gold); color: var(--wms-navy);
    border-color: var(--wms-gold);
    box-shadow: 0 0 0 3px rgba(217,177,76,.25);
}
.wms-step-item.wms-step-done .wms-step-circle {
    background: rgba(217,177,76,.25); color: var(--wms-gold);
    border-color: rgba(217,177,76,.8);
}
.wms-step-connector {
    width: 2px; height: 20px; background: rgba(255,255,255,.18);
    margin: 1px 0 1px 15px;
}
.wms-step-label { display: flex; flex-direction: column; gap: 1px; }
.wms-step-name {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45);
    transition: color .2s; line-height: 1.3;
}
.wms-step-item.wms-step-active .wms-step-name { color: var(--wms-white); font-weight: 700; }
.wms-step-item.wms-step-done  .wms-step-name  { color: rgba(255,255,255,.75); }

/* ── Complimentary Express banner ──────────────────────── */
.wms-comp-banner {
    display: flex; align-items: flex-start; gap: 12px;
    background: #faf0d0; border: 1px solid #b3821c; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 16px;
}
.wms-comp-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.wms-comp-text { display: flex; flex-direction: column; gap: 4px; }
.wms-comp-text strong { font-size: 13px; font-weight: 700; color: #7a6008; }
.wms-comp-text span   { font-size: 12px; color: #8a7020; line-height: 1.5; }
/* Locked shipping badge (replaces select when comp is active) */
.wms-comp-locked-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #faf0d0; border: 1px solid #b3821c; border-radius: 5px;
    padding: 4px 10px; font-size: 12px; font-weight: 700; color: #7a6008;
    cursor: default;
}

/* ── Right main area ───────────────────────────────────── */
.wms-flow-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Footer is the last direct child; panels scroll above it */
}

/* Each panel fills the remaining space and scrolls internally */
.wms-panel {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 28px 16px;
    display: block;
}
.wms-panel-hidden { display: none; }

/* Give scroll content breathing room above the sticky footer */
#wms-panel-2 .wms-unassigned-wrap { margin-bottom: 16px; }

.wms-panel-header { margin-bottom: 20px; }
.wms-panel-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--wms-navy);
    margin: 0 0 6px !important;
/*     letter-spacing: -.01em; */
    font-family: 'Montserrat';
}
.wms-panel-header p { font-size: 13px; color: var(--wms-muted); margin: 0; line-height: 1.5; }

/* ══ STEP 2: PLANNER ══════════════════════════════════════ */
.wms-planner-topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 0 14px; gap: 12px; flex-wrap: wrap;
    border-bottom: 1px solid var(--wms-border); margin-bottom: 12px;
}
.wms-topbar-left { display: flex; gap: 8px; flex-wrap: wrap; }

.wms-table-head {
    display: grid;
/*     grid-template-columns: minmax(160px,240px) 40px 1fr 140px 50px 70px; */
    grid-template-columns: minmax(140px, 200px) 62px 1fr 120px 130px 54px;
    gap: 10px; padding: 9px 14px;
    background: var(--wms-light); border-radius: var(--wms-r);
    border: 1px solid var(--wms-border);
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--wms-muted); margin-bottom: 6px;
    white-space: nowrap;
}
.wms-inner-box {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
button#wms-inline-guest-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0;
    font-size: 11px;
    padding: 9px 20px;
}
@media (max-width:960px) { .wms-table-head { display: none; } }

.wms-product-row {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 62px 1fr 120px 130px 54px;
    gap: 8px; padding: 12px 14px;
    background: var(--wms-white); border: 1px solid var(--wms-border);
    border-radius: var(--wms-r); margin-bottom: 7px; align-items: start;
    transition: border-color .15s; overflow: visible;
}
.wms-product-row:hover { border-color: var(--wms-border-2); }

/* CHANGE 4: When qty is high (7+), slot cols must not blow out the row height.
   Each col scrolls internally so the row stays compact. */
.wms-recipients-col,
.wms-dates-col,
.wms-shipping-col,
.wms-msgs-col {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--wms-border) transparent;
    /* slight padding so scrollbar doesn't overlap content */
    padding-right: 2px;
}
.wms-recipients-col::-webkit-scrollbar,
.wms-dates-col::-webkit-scrollbar,
.wms-shipping-col::-webkit-scrollbar,
.wms-msgs-col::-webkit-scrollbar { width: 4px; }
.wms-recipients-col::-webkit-scrollbar-thumb,
.wms-dates-col::-webkit-scrollbar-thumb,
.wms-shipping-col::-webkit-scrollbar-thumb,
.wms-msgs-col::-webkit-scrollbar-thumb { background: var(--wms-border); border-radius: 4px; }

/* Keep all slot heights consistent so columns scroll in sync visually */
.wms-recipient-slot,
.wms-date-slot,
.wms-shipping-slot,
.wms-msg-slot {
    min-height: 38px;
    box-sizing: border-box;
    padding-bottom: 6px;
}

@media (max-width:960px) {
    .wms-product-row { display: block !important; padding: 14px !important; }
    .wms-dates-col, .wms-msgs-col, .wms-actions-col { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
    /* On mobile, let cols expand naturally — no scrolling needed */
    .wms-recipients-col,
    .wms-dates-col,
    .wms-shipping-col,
    .wms-msgs-col { max-height: none; overflow: visible; }
}

.wms-prod-info { display: flex; gap: 10px; align-items: flex-start; }
.wms-thumb, .wms-thumb img {
    width: 54px; height: 54px; border-radius: 7px;
    object-fit: cover; border: 1px solid var(--wms-border); flex-shrink: 0;
}
.wms-thumb-placeholder {
    width: 54px; height: 54px; border-radius: 7px;
    background: var(--wms-light); border: 1px solid var(--wms-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.wms-prod-details { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.wms-prod-name { font-size: 13px; font-weight: 600; color: var(--wms-navy); line-height: 1.4; }
.wms-sku       { font-size: 11px; color: #94a3b8; }
.wms-qty-col {
    display: flex; align-items: flex-start; justify-content: center;
    overflow: visible;
}

/* Qty +/- stepper (#32) — compact to fit 70px column */
.wms-qty-stepper {
    display: flex; align-items: center; gap: 2px;
}
.wms-qty-btn {
    width: 20px; height: 20px; border-radius: 4px;
    border: 1.5px solid var(--wms-border);
    background: var(--wms-white); color: var(--wms-navy);
    font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; font-weight: 700; flex-shrink: 0;
    padding: 0;
}
.wms-qty-btn:hover { border-color: var(--wms-navy); background: var(--wms-light); }
.wms-qty-val {
    font-size: 13px; font-weight: 700; color: var(--wms-navy);
    min-width: 16px; text-align: center;
}

/* Per-slot shipping column (#36, #37) */
.wms-shipping-col {
    display: flex;
    gap: 6px;
    flex-direction: column;
}
.wms-slot-ship-select {
    font-size: 11px; padding: 5px 6px;
    border: 1.5px solid var(--wms-border); border-radius: 5px;
    color: var(--wms-navy); background: var(--wms-white);
    cursor: pointer; width: 100%; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wms-slot-time-select {
    font-size: 11px;
    padding: 10px 6px;
    border-radius: 5px;
    color: var(--wms-navy);
    background: #fffbeb;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    line-height: 1;
    min-height: auto;
    height: 40px;
}
.wms-slot-std-badge {
    font-size: 11px;
    color: #00000099;
    white-space: nowrap;
    height: 40px;
    background: #0000000d;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
}
.wms-comp-locked-badge--sm {
    font-size: 10px; padding: 3px 6px; background: #fff9eb;
    border: 1px solid #fbbf24; border-radius: 4px; color: #92400e;
    display: inline-block;
}

/* Auto-save indicator (#39) */
.wms-autosave-indicator {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #22c55e; opacity: 0.6;
    transition: opacity .3s, color .3s;
}
.wms-autosave-indicator svg { stroke: currentColor; }
.wms-autosave-indicator.wms-autosave--saving { color: #f59e0b; opacity: 1; }
.wms-autosave-indicator.wms-autosave--saved  { color: #22c55e; opacity: 1; }

.wms-recipient-slot { margin-bottom: 6px; }
.wms-recipient-search-wrap { position: relative; }
.wms-search-icon {
    position: absolute; left: 8px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; pointer-events: none;
}
.wms-recipient-search {
    width: 100%; padding: 7px 8px 7px 26px;
    border: 1.5px solid var(--wms-border); border-radius: 6px;
    font-size: 12px; color: var(--wms-navy); background: var(--wms-white);
    outline: none; transition: border-color .15s; font-family: var(--font);
}
.wms-recipient-search:focus { border-color: var(--wms-navy); }
.wms-recipient-search.wms-filled { border-color: #22c55e; background: #f0fdf4; }
.wms-recipient-search::placeholder { color: #94a3b8; }

/* Fix 2: Use fixed positioning so the dropdown escapes overflow:hidden ancestors
   (.wms-flow, .wms-recipients-col). JS repositions via data-anchor. */
.wms-search-dropdown {
    display: none; position: absolute; top: 0; left: 0;
    width: 260px; min-width: 230px;
    background: var(--wms-white); border: 1px solid var(--wms-border);
    border-radius: var(--wms-r); box-shadow: 0 8px 28px rgba(10,15,30,.18);
    z-index: 100000; overflow: visible;
}
.wms-search-dropdown.wms-open { display: block; }
.wms-dropdown-actions { padding: 5px; display: flex; flex-direction: column; gap: 2px; }
.wms-dropdown-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; background: none; border: none; border-radius: 6px;
    font-size: 12px; font-weight: 600; color: var(--wms-navy); cursor: pointer;
    text-align: left; transition: background .1s; font-family: var(--font);
}
.wms-dropdown-btn:hover { background: var(--wms-navy); }
.wms-recent-section, .wms-address-book-section { border-top: 1px solid var(--wms-border); padding: 5px; }
.wms-dropdown-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #94a3b8; padding: 4px 8px 5px;
}
.wms-recent-item {
    display: block; padding: 7px 10px; border-radius: 6px;
    font-size: 12px; color: var(--wms-navy); cursor: pointer; transition: background .1s;
}
.wms-recent-item:hover { background: var(--wms-light); }
.wms-recent-item-sub { font-size: 11px; color: var(--wms-muted); }

.wms-date-slot { margin-bottom: 6px; }
.wms-date-input-wrap { position: relative; }
.wms-cal-icon {
    position: absolute; left: 7px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; pointer-events: none;
}
.wms-date-input {
    width: 100%; padding: 7px 6px 7px 24px;
    border: 1.5px solid var(--wms-border); border-radius: 6px;
    font-size: 12px; color: var(--wms-navy); background: var(--wms-white);
    outline: none; transition: border-color .15s; font-family: var(--font);
}
.wms-date-input:focus { border-color: var(--wms-navy); }

.wms-msg-slot { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.wms-msg-btn {
    width: 40px; height: 40px; border-radius: 7px;
    background: var(--wms-white); border: 1.5px solid var(--wms-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #64748b; transition: all .15s;
}
/* SVG inside message button */
.wms-msg-btn svg {
    display: block; stroke: currentColor; flex-shrink: 0;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wms-msg-btn:hover { border-color: #64748b; color: #1e293b; background: var(--wms-light); }
.wms-msg-btn.wms-has-msg { border-color: var(--wms-gold); color: var(--wms-gold); background: #fff9eb; }

.wms-actions-col {
    display: flex; gap: 6px; padding-top: 0px;
    flex-wrap: wrap; align-items: flex-start;
}
.wms-action-btn {
    width: 40px; height: 40px; border-radius: 7px;
    background: var(--wms-white); border: 1.5px solid var(--wms-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #64748b; transition: all .15s; flex-shrink: 0;
}
/* SVGs inside action buttons — force visible stroke */
.wms-action-btn svg {
    display: block; stroke: currentColor; fill: none; flex-shrink: 0;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wms-action-btn:hover { border-color: var(--wms-navy); color: var(--wms-navy); background: var(--wms-light); }
.wms-action-btn.wms-delete-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.wms-action-btn.wms-delete-slot-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* .wms-delete-slot-btn { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; } */

.wms-unassigned-wrap {
    background: #fffbeb; border: 1px solid #fcd34d;
    border-radius: var(--wms-r); padding: 11px 14px; margin-bottom: 10px;
}
.wms-unassigned-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: #92400e;
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px;
}
.wms-unassigned-item { font-size: 12px; color: #78350f; padding: 2px 0; }

/* ══ PLANNER FOOTER — always visible, pinned at bottom of flow-main ══ */
.wms-planner-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 28px;
    border-top: 2px solid var(--wms-border);
    background: var(--wms-white);
    gap: 12px; flex-wrap: wrap;
    /* flex-shrink:0 ensures it never collapses — panel above scrolls instead */
    flex-shrink: 0;
    /* Subtle shadow so it visually lifts above the scrolling content */
    box-shadow: 0 -4px 16px rgba(10, 15, 30, 0.07);
    z-index: 10;
}
.wms-footer-left {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wms-footer-right {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

/* Floating product pill — thumbnail + name */
.wms-footer-product {
    display: flex; align-items: center; gap: 8px;
    background: var(--wms-light); border: 1px solid var(--wms-border);
    border-radius: 8px; padding: 6px 10px 6px 6px;
    max-width: 220px;
}
.wms-footer-product-thumb {
    width: 36px; height: 36px; border-radius: 5px;
    object-fit: cover; border: 1px solid var(--wms-border);
    flex-shrink: 0; background: var(--wms-border);
}
.wms-footer-product-thumb.wms-thumb-placeholder-sm {
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; background: var(--wms-white);
}
.wms-footer-product-name {
    font-size: 12px; font-weight: 600; color: var(--wms-navy);
    line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Stats group: "2 Recipients | Est. Delivery Apr 16 – Apr 16" */
.wms-footer-stats {
    display: flex; align-items: center; gap: 0;
}
.wms-footer-stat-pill {
    display: flex; align-items: baseline; gap: 5px;
    padding: 0 14px 0 0;
}
.wms-footer-stat-pill:not(:first-child) {
    border-left: 1.5px solid var(--wms-border-2);
    padding: 0 0 0 14px;
}
.wms-footer-stat-value {
    font-size: 18px; font-weight: 800; color: var(--wms-navy); line-height: 1;
}
.wms-footer-stat-label {
    font-size: 12px; color: var(--wms-muted); font-weight: 500; white-space: nowrap;
}
.wms-footer-delivery-val {
    font-size: 14px; font-weight: 700; color: var(--wms-navy);
}

/* Override for old stat classes still used in JS */
.wms-footer-stat { display: flex; align-items: center; gap: 0; }
.wms-footer-stat-block { display: flex; align-items: baseline; gap: 5px; }
.wms-footer-stat-sep { color: var(--wms-border-2); font-size: 15px; margin: 0 10px; line-height: 1; }

/* ══ STEP 3: SUMMARY ══════════════════════════════════════ */
.wms-summary-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px; align-items: start;
}
@media (max-width:900px) { .wms-summary-layout { grid-template-columns: 1fr; } }

.wms-summary-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--wms-muted); margin-bottom: 12px;
}

/* Recipient summary card */
.wms-summary-card {
    display: grid; grid-template-columns: 38px 1fr auto;
    gap: 14px; padding: 15px 16px;
    background: var(--wms-white); border: 1px solid var(--wms-border);
    border-radius: var(--wms-r); margin-bottom: 8px; align-items: start;
}
.wms-summary-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--wms-navy); color: var(--wms-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.wms-summary-name    { font-size: 14px; font-weight: 700; color: var(--wms-navy); }
.wms-summary-company { font-size: 12px; color: var(--wms-muted); margin-top: 2px; }
.wms-summary-meta    { font-size: 12px; color: var(--wms-muted); margin-top: 2px; line-height: 1.4; }
.wms-summary-items   { margin-top: 8px; }
.wms-summary-item-row {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--wms-navy); padding: 2px 0;
}
.wms-summary-item-row span:last-child { font-weight: 600; }
.wms-gift-tag {
    background: #fff9eb; border: 1px solid var(--wms-gold-lt);
    border-radius: 5px; padding: 5px 9px;
    font-size: 11px; color: #92620a; font-style: italic;
    margin-top: 6px; line-height: 1.5;
}
.wms-summary-date-badge {
    background: var(--wms-light); border: 1px solid var(--wms-border);
    border-radius: 6px; padding: 6px 10px;
    font-size: 11px; font-weight: 700; color: var(--wms-navy);
    text-align: center; white-space: nowrap; min-width: 90px;
}
.wms-summary-date-label {
    font-size: 9px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--wms-muted); margin-bottom: 3px;
}

/* Totals sidebar */
.wms-totals-box {
    background: var(--wms-navy); border-radius: var(--wms-r-lg);
    padding: 22px; color: var(--wms-white);
}
.wms-totals-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: rgba(255,255,255,.7); padding: 6px 0;
}
.wms-shipping-breakdown {
    font-size: 11px !important; color: rgba(255,255,255,.45) !important;
    padding: 0 0 4px 0 !important; font-style: italic;
    border-top: none !important;
}
.wms-totals-grand {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: 10px; padding-top: 14px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: rgba(255,255,255,.5);
}
.wms-totals-grand span:last-child {
    font-size: 24px; font-weight: 800; color: var(--wms-white);
    letter-spacing: 0;
}
.wms-proceed-btn {
    display: block; width: 100%; text-align: center;
    background: var(--wms-gold); color: var(--wms-navy);
    border: 2px solid var(--wms-gold); border-radius: var(--wms-r);
    padding: 13px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; margin-top: 18px; font-family: var(--font);
    transition: background .15s;
}
.wms-proceed-btn:hover { background: var(--wms-gold-lt); border-color: var(--wms-gold-lt); }
.wms-back-btn {
    display: block; width: 100%; text-align: center;
    background: transparent; color: rgba(255,255,255,.6);
    border: 1px solid rgb(240 236 224); border-radius: var(--wms-r);
    padding: 10px 20px; font-size: 13px; font-weight: 600;
    cursor: pointer; margin-top: 8px; font-family: var(--font);
    transition: border-color .15s, color .15s;
}
.wms-back-btn:hover { border-color: rgba(255,255,255,.4); color: var(--wms-white); }
.wms-secure-note {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 11px; color: var(--wms-navy); margin-top: 12px;
}

/* ══ STEP 4: PAYMENT ══════════════════════════════════════ */
.wms-payment-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px; align-items: start;
}
button#wms-edit-shipments-btn {
    width: auto;
}
@media (max-width:900px) { .wms-payment-layout { grid-template-columns: 1fr; } }

.wms-payment-section { margin-bottom: 26px; }
.wms-section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--wms-navy);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wms-border);
    font-family: 'Montserrat';
}

.wms-field { margin-bottom: 14px; }
.wms-field-error { display:none; color:#c00; font-size:11px; margin-top:4px; line-height:1.4; }
.wms-field.has-error .wms-field-error { display:block; }
.wms-field.has-error input:not(.wms-dial-select-input),
.wms-field.has-error select:not(.wms-dial-select) { border-color:#c00 !important; }
.wms-field label {
    display: flex;  gap: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--wms-muted);
}
.wms-req     { color: #e74c3c; font-weight: 700; }
.wms-optional { text-transform: none; font-weight: 400; color: #94a3b8; }
.wms-field input:not(.wms-dial-select-input), .wms-field select:not(.wms-dial-select), .wms-field textarea {
    padding: 10px 12px; border: 1.5px solid var(--wms-border);
    border-radius: 7px; font-size: 13px; color: var(--wms-navy);
    background: var(--wms-white); outline: none; transition: border-color .15s;
    width: 100%; font-family: var(--font);
}
.wms-field input:not(.wms-dial-select-input):focus, .wms-field select:not(.wms-dial-select):focus, .wms-field textarea:focus { border-color: var(--wms-navy); }
.wms-field textarea { resize: vertical; font-family: var(--font); }
.wms-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Phone wrap with country dial-code selector */
.wms-phone-wrap {
    display: flex; align-items: center; border: 1.5px solid var(--wms-border);
    border-radius: 7px; overflow: hidden; background: var(--wms-white);
    transition: border-color .15s;
}
.wms-phone-wrap:focus-within { border-color: var(--wms-navy); }
.wms-phone-wrap .wms-dial-select {
    flex-shrink: 0; appearance: none; -webkit-appearance: none;
    border: none !important; border-right: 1.5px solid var(--wms-border) !important;
    outline: none !important; background: #f5f7fa;
    padding: 10px 8px !important; font-size: 16px !important;
    font-weight: 600 !important; color: #444 !important; cursor: pointer;
    white-space: nowrap; box-shadow: none !important; border-radius: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 3px center;
    width: auto !important; width: auto;
    font-size: 12px !important;
}
.wms-phone-wrap .wms-dial-select:focus { background-color: #eef0f4; }
.wms-phone-wrap input {
    flex: 1; border: none !important; outline: none !important;
    box-shadow: none !important; border-radius: 0 !important;
    padding: 10px 10px !important; font-size: 13px !important;
    color: var(--wms-navy) !important; background: transparent !important;
    width: auto !important;
}

/* Payment method cards */
.wms-payment-methods { display: flex; flex-direction: column; gap: 8px; }
.wms-payment-method-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; background: var(--wms-white);
    border: 1.5px solid var(--wms-border); border-radius: var(--wms-r);
    cursor: pointer; transition: border-color .15s;
}
.wms-payment-method-card:hover { border-color: var(--wms-navy-3); }
.wms-payment-method-card.wms-selected { border-color: var(--wms-navy); background: #f9fafb; }
.wms-payment-method-card input[type="radio"] { display: none; }
.wms-pm-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--wms-border-2); flex-shrink: 0; transition: all .15s;
}
.wms-payment-method-card.wms-selected .wms-pm-radio {
    border-color: var(--wms-navy); border-width: 5px;
}
.wms-pm-info { flex: 1; }
.wms-pm-title { font-size: 13px; font-weight: 700; color: var(--wms-navy); }
.wms-pm-desc  { font-size: 12px; color: var(--wms-muted); margin-top: 3px; line-height: 1.4; }
.wms-pm-icon  { flex-shrink: 0; }
.wms-pm-icon img { max-height: 24px; }

.wms-cod-note {
    display: flex; align-items: center; gap: 8px;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--wms-r);
    padding: 10px 14px; font-size: 12px; color: #16a34a;
    font-weight: 600; margin-top: 10px;
}
.wms-no-methods { font-size: 13px; color: var(--wms-muted); }

.wms-order-error {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: var(--wms-r); padding: 12px 16px;
    font-size: 13px; color: #dc2626; font-weight: 600; margin-top: 6px;
}

/* Payment sidebar */
.wms-payment-sidebar {
    position: sticky;
    top: 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 20px 20px 0px;
}
.wms-payment-sidebar .spar-cart-rewards-box {
    margin-bottom: 20px;
}
/* .wms-order-review-box {
    background: var(--wms-white); border-radius: var(--wms-r-lg);
    padding: 22px; color: var(--wms-navy);
    position: sticky; top: 20px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
} */
.wms-order-review-box {
    background: var(--wms-white);
/*     border-radius: var(--wms-r-lg); */
/*     padding: 22px; */
    color: var(--wms-navy);
/*     border: 1px solid #e2e2e2; */
/*     box-shadow: 0 2px 8px rgba(0, 0, 0, .06); */
}
.wms-order-review-box:not(:first-child) {
    border-top: 1px solid #e2e2e2;
    padding-top: 20px;
}
.wms-order-review-box h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--wms-navy);
    margin: 0 0 14px;
    font-family: 'Montserrat';
}
.wms-review-item {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 3px 0; font-size: 13px; color: var(--wms-navy);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.wms-review-item-name { flex: 1; line-height: 1.4; }
.wms-review-item-name em { color: var(--wms-navy); font-style: normal; }
.wms-review-item-price { font-weight: 600; white-space: nowrap; }
.wms-review-divider { border-top: 1px solid rgb(240 236 224); margin: 10px 0; }
.wms-review-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--wms-navy); padding: 4px 0;
}
.wms-discount-row { color: #111; font-weight: 600; }
.wms-discount-row span:last-child { color: #111; }
.wms-review-total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid rgb(240 236 224);
    margin-top: 8px; padding-top: 12px;
    font-size: 13px; font-weight: 700; color: var(--wms-navy);
}
.wms-review-total span:last-child { font-size: 14px; }
.wms-payment-sidebar .spar-redeem-compact--totals .spar-compact-row, 
.wms-payment-sidebar .spar-redeem-compact--shortcode .spar-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    padding: 0 0px;
}
.wms-payment-sidebar .spar-redeem-compact--totals .spar-redeem-panel,
.wms-payment-sidebar .spar-redeem-compact--shortcode .spar-redeem-panel {
    gap: 10px;
}
.wms-payment-sidebar .spar-redeem-compact--totals .spar-discount-box, 
.wms-payment-sidebar .spar-redeem-compact--shortcode .spar-discount-box {
    font-size: 12px;
}
.wms-payment-sidebar .spar-redeem-compact--totals .spar-redeem-value-label, 
.wms-payment-sidebar .spar-redeem-compact--shortcode .spar-redeem-value-label {
    font-size: 12px;
    text-align: left;
    line-height: 1;
}
.wms-payment-sidebar .spar-redeem-compact--totals .spar-redeem-apply-btn, 
.wms-payment-sidebar .spar-redeem-compact--shortcode .spar-redeem-apply-btn {
    font-size: 13px;
    padding: 11px 12px;
}
.wms-payment-sidebar .spar-redeem-compact--totals .spar-redeem-apply-btn:hover, 
.wms-payment-sidebar .spar-redeem-compact--shortcode .spar-redeem-apply-btn:hover {
    background:#cb9a33;
	color:white;
}
.wms-payment-sidebar  .spar-redeem-compact--totals .spar-redeem-input, 
.wms-payment-sidebar  .spar-redeem-compact--shortcode .spar-redeem-input {
    line-height: 1;
    height: auto;
}
.wms-payment-sidebar  .spar-redeem-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    grid-column: 1/3;
}
.wms-payment-sidebar  .spar-redeem-compact--totals .spar-discount-box,
.wms-payment-sidebar  .spar-redeem-compact--shortcode .spar-discount-box{
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #b3821c;
}
/* GST highlight row — matches FNP single checkout "GST (including 9% GST)" row */
.wms-gst-highlight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdf3d0;
    border-radius: 0;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #b3821c;
    font-style: italic;
    border-bottom: 1px solid #e2e2e2;
}
.wms-gst-highlight-row .wms-gst-label { display: flex; align-items: center; gap: 4px; }
.wms-place-order-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: var(--wms-gold); color: var(--wms-white);
    border: 2px solid var(--wms-gold); border-radius: var(--wms-r);
    padding: 13px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; margin-top: 16px; font-family: var(--font);
    transition: background .15s;
}
.wms-place-order-btn:hover { background: var(--wms-gold-lt); border-color: var(--wms-gold-lt); }
.wms-place-order-btn:disabled {
    opacity: .6; cursor: not-allowed; background: var(--wms-gold);
}
.wms-payment-sidebar .spar-cart-earning-message {
    font-size: 13px;
    line-height: 1.3;
}
.wms-payment-sidebar .spar-cart-rewards-summary {
    flex-direction: column !important;
    gap: 10px;
}
.wms-payment-sidebar .spar-cart-rewards-points {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 12.5px 10px;
}
.wms-payment-sidebar .spar-cart-rewards-actions {
    width: 100%;
}
.wms-payment-sidebar button.spar-redeem-toggle-btn {
    width: 100%;
    font-size: 13px !important;
    border-radius: 8px;
    padding: 12px 20px;
}
/* ══ MODALS ════════════════════════════════════════════════ */
.wms-overlay {
    position: fixed; inset: 0; background: rgba(10,15,30,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; padding: 16px;
}
.wms-modal {
    background: var(--wms-white); border-radius: var(--wms-r-lg);
    width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(10,15,30,.22); font-family: var(--font);
}
.wms-modal-sm { max-width: 440px; }
.wms-modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 22px 26px 16px; border-bottom: 1px solid var(--wms-border);
}
.wms-modal-header h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--wms-navy); }
.wms-modal-sub { margin: 0; font-size: 12px; color: var(--wms-muted); }
.wms-modal-x {
    background: none; border: none; font-size: 18px; cursor: pointer;
    color: #94a3b8; padding: 4px; border-radius: 4px; line-height: 1; flex-shrink: 0;
}
.wms-modal-x:hover { color: var(--wms-navy); background: var(--wms-light); }
.wms-modal-body   { padding: 22px 26px; }
.wms-modal-footer {
    padding: 14px 26px; border-top: 1px solid var(--wms-border);
    display: flex; justify-content: flex-end; gap: 10px;
}
.wms-char-count { font-size: 11px; color: #94a3b8; margin-top: 4px; text-align: right; }

/* CSV info box */
.wms-csv-info-box {
    display: grid; grid-template-columns: 40px 1fr auto;
    gap: 16px; align-items: start;
    background: var(--wms-light); border: 1px solid var(--wms-border);
    border-radius: 9px; padding: 16px; margin-bottom: 18px;
}
.wms-csv-info-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--wms-navy); color: var(--wms-white);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wms-csv-info-box strong { display: block; font-size: 13px; font-weight: 700; color: var(--wms-navy); margin-bottom: 4px; }
.wms-csv-info-box p { margin: 0 0 10px; font-size: 12px; color: var(--wms-muted); }
.wms-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: var(--wms-navy);
    text-decoration: none; border-bottom: 1px solid var(--wms-border-2);
}
.wms-link:hover { border-color: var(--wms-navy); }
.wms-csv-columns { border-left: 1px solid var(--wms-border); padding-left: 16px; }
.wms-csv-col-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 6px; }
.wms-csv-columns ul { margin: 0; padding-left: 16px; font-size: 12px; color: #475569; line-height: 1.9; }

.wms-dropzone {
    border: 2px dashed var(--wms-border-2); border-radius: 10px;
    padding: 34px 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--wms-muted); transition: border-color .15s, background .15s;
    position: relative; cursor: pointer;
}
.wms-dropzone:hover, .wms-dropzone.wms-drag-over { border-color: var(--wms-navy); background: var(--wms-light); }
.wms-dropzone svg { color: #94a3b8; margin-bottom: 4px; }
.wms-dropzone strong { color: var(--wms-navy); font-size: 13px; }
.wms-dropzone p { margin: 0; font-size: 13px; }
.wms-dropzone small { font-size: 11px; color: #94a3b8; }
.wms-csv-status { margin-top: 12px; padding: 10px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.wms-csv-status.wms-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.wms-csv-status.wms-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.wms-review-total {
    font-size: 14px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .wms-flow-main { padding: 14px 12px; }
    .wms-planner-topbar { flex-direction: column; align-items: flex-start; }
    .wms-footer-left { gap: 10px; }
    .wms-field-row { grid-template-columns: 1fr; }
    .wms-csv-info-box { grid-template-columns: 1fr; }
    .wms-csv-columns { border-left: none; border-top: 1px solid var(--wms-border); padding-left: 0; padding-top: 12px; margin-top: 8px; }
    /* Summary & payment sidebars full-width */
    .wms-summary-layout { grid-template-columns: 1fr !important; }
    .wms-payment-layout { grid-template-columns: 1fr !important; }
    /* Unassigned banner */
    .wms-unassigned-banner { font-size: 12px; padding: 10px 12px; }
    /* Auth gate buttons */
    .wms-auth-tabs { flex-direction: row; }
    .wms-auth-tab { font-size: 12px; padding: 9px 0; }
    /* Guest btn */
    .wms-guest-btn { font-size: 13px; }
}

/* ══ AUTH GATE ════════════════════════════════════════════ */
.wms-auth-gate {
    display: flex; align-items: center; justify-content: center;
    min-height: 520px; padding: 24px 16px;
    font-family: var(--font);
}

/* LAYOUT B: single-column, max-width card */
.wms-auth-inner {
    background: var(--wms-white);
    border: 1px solid var(--wms-border);
    border-radius: var(--wms-r-lg);
    padding: 32px 28px;
    width: 100%; max-width: 480px;
    box-shadow: 0 4px 24px rgba(10,15,30,.07);
}

/* "or login using" horizontal divider above social buttons */
.wms-social-below-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0 14px;
    font-size: 11px; color: var(--wms-muted);
    text-transform: uppercase; letter-spacing: .08em;
}
.wms-social-below-divider::before,
.wms-social-below-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--wms-border);
}
.wms-social-below-divider span { flex-shrink: 0; }
.wms-auth-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--wms-light); border: 1px solid var(--wms-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--wms-navy); margin-bottom: 18px;
}
.wms-auth-inner h2 {
    font-size: 22px; font-weight: 700; color: var(--wms-navy);
    margin: 0 0 8px; letter-spacing: -.01em;
}
.wms-auth-inner > p {
    font-size: 13px; color: var(--wms-muted); margin: 0 0 22px; line-height: 1.5;
}

/* Tabs */
.wms-auth-tabs {
    display: flex; gap: 0; margin-bottom: 20px;
    border: 1.5px solid var(--wms-border); border-radius: var(--wms-r);
    overflow: hidden;
}
.wms-auth-tab {
    flex: 1; padding: 10px 0; background: none; border: none;
    font-size: 13px; font-weight: 600; color: var(--wms-muted);
    cursor: pointer; transition: background .15s, color .15s;
    font-family: var(--font);
}
.wms-auth-tab:hover { background: var(--wms-light); }
.wms-auth-tab.wms-auth-tab-active {
    background: var(--wms-navy); color: var(--wms-white);
}

/* Auth panels */
.wms-auth-panel { }
.wms-auth-error {
    background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; border-radius: var(--wms-r);
    padding: 10px 14px; font-size: 13px; font-weight: 600;
    margin-bottom: 14px;
}
.wms-auth-remember {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; font-size: 12px;
}
.wms-auth-remember label { display: flex; align-items: center; gap: 6px; color: var(--wms-muted); cursor: pointer; }
.wms-auth-remember input[type="checkbox"] { width: auto; }
.wms-auth-link { font-size: 12px; color: var(--wms-navy); text-decoration: none; font-weight: 600; }
.wms-auth-link:hover { text-decoration: underline; }

/* Divider */
.wms-auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--wms-border-2); font-size: 12px;
}
.wms-auth-divider::before,
.wms-auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--wms-border);
}
.wms-auth-divider span { color: var(--wms-muted); }

/* Guest button */
.wms-guest-btn {
    width: 100%; padding: 12px; background: var(--wms-white);
    border: 1.5px solid var(--wms-border-2); border-radius: var(--wms-r);
    font-size: 13px; font-weight: 600; color: var(--wms-navy);
    cursor: pointer; font-family: var(--font);
    transition: border-color .15s, background .15s;
}
.wms-guest-btn:hover { border-color: var(--wms-navy); background: var(--wms-light); }
.wms-guest-note {
    font-size: 11px; color: #94a3b8; text-align: center;
    margin: 10px 0 0; line-height: 1.5;
}

/* ==================================================
   USER / GUEST INFO BAR (top of Shipment Planning)
   Mirrors FNP's wcr-step1-done-row / wcr-guest-details-display
================================================== */
.wms-user-info-bar {
    display: flex; align-items: center; gap: 12px;
    background: var(--wms-card); border: 1.5px solid var(--wms-border);
    border-radius: var(--wms-r); padding: 12px 16px;
    margin-bottom: 16px;
}
.wms-uib-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--wms-gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
	display: none;
}

.wms-uib-details { flex: 1; min-width: 0; }
.wms-uib-name    { font-weight: 700; font-size: 14px; color: #111; margin-bottom: 3px; }
.wms-uib-meta    { display: flex; gap: 14px; flex-wrap: wrap; }
.wms-uib-meta span { font-size: 12px; color: #555; }
.wms-uib-edit-btn {
    flex-shrink: 0; display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border: 1.5px solid var(--wms-gold);
    background: transparent; color: var(--wms-gold);
    border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.wms-uib-edit-btn:hover { background: var(--wms-gold); color: #fff; }

/* ==================================================
   INLINE LOGIN BANNER (replaces blocking gate)
================================================== */
.wms-inline-login-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: #fdf9f0; border: 1.5px solid #e8d9a0;
    border-radius: var(--wms-r); padding: 12px 16px;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.wms-inline-login-inner {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--wms-navy); font-weight: 500;
}
.wms-inline-login-inner svg { flex-shrink: 0; color: #b3821c; }
.wms-inline-login-actions { display: flex; gap: 8px; flex-shrink: 0; }

.wms-inline-auth-form {
    border: 1.5px solid #e8d9a0;
    border-radius: var(--wms-r-lg); padding: 20px 22px;
    margin-bottom: 18px;
}

/* ==================================================
   FNP-STYLE GIFT MESSAGE MODAL
   (wms-message-modal full-screen popup)
================================================== */

/* ==================================================
   LOGIN / SIGNUP / GUEST — ALIGN TO FNP CHECKOUT DESIGN
   (scoped to auth elements only — tabs, submit buttons,
   guest button, social buttons, links, hover colors)
================================================== */

/* Tab switcher — light pill bg, white active tab, gold text */
#wms-inline-auth-form .wms-auth-tabs,
.wms-auth-inner .wms-auth-tabs {
    display: flex; background: #f5f5f5; border: none;
    border-radius: 8px; padding: 4px; gap: 4px;
}
#wms-inline-auth-form .wms-auth-tab,
.wms-auth-inner .wms-auth-tab {
    flex: 1; border: none; background: transparent;
    padding: 9px 0; font-size: 13px; font-weight: 600;
    color: #888; border-radius: 6px; cursor: pointer;
    transition: all .18s;
}
#wms-inline-auth-form .wms-auth-tab:hover,
.wms-auth-inner .wms-auth-tab:hover {
    background: rgba(255,255,255,.5); color: #b3821c;
}
#wms-inline-auth-form .wms-auth-tab.wms-auth-tab-active,
.wms-auth-inner .wms-auth-tab.wms-auth-tab-active {
    background: #fff; color: #b3821c;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Primary submit button (Log In / Create Account / Confirm & Continue) */
#wms-inline-auth-form .wms-auth-submit,
#wms-inline-guest-form .wms-btn-primary,
.wms-auth-inner .wms-auth-submit {
    width: 100%; background: #b3821c; color: #fff;
    border: none !important; border-radius: 8px;
    padding: 13px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .18s;
    letter-spacing: .04em; font-family: var(--font);
}
#wms-inline-auth-form .wms-auth-submit:hover,
#wms-inline-guest-form .wms-btn-primary:hover,
.wms-auth-inner .wms-auth-submit:hover {
    background: #9a6e17;
}
#wms-inline-auth-form .wms-auth-submit:disabled,
#wms-inline-guest-form .wms-btn-primary:disabled,
.wms-auth-inner .wms-auth-submit:disabled {
    background: #d0a860; cursor: not-allowed;
}

/* Auth field inputs — match FNP's lighter, rounder fields */
#wms-inline-auth-form .wms-field input,
#wms-inline-auth-form .wms-field select:not(.wms-dial-select),
#wms-inline-guest-form .wms-field input,
#wms-inline-guest-form .wms-field select:not(.wms-dial-select),
.wms-auth-inner .wms-field input,
.wms-auth-inner .wms-field select:not(.wms-dial-select) {
    border: 1.5px solid #e5e7eb !important; border-radius: 7px !important;
    background: #fafafa !important; color: #111 !important;
}
#wms-inline-auth-form .wms-field input:focus,
#wms-inline-auth-form .wms-field select:not(.wms-dial-select):focus,
#wms-inline-guest-form .wms-field input:focus,
#wms-inline-guest-form .wms-field select:not(.wms-dial-select):focus,
.wms-auth-inner .wms-field input:focus,
.wms-auth-inner .wms-field select:not(.wms-dial-select):focus {
    border-color: #b3821c !important; background: #fff !important;
}
#wms-inline-auth-form .wms-field label,
#wms-inline-guest-form .wms-field label,
.wms-auth-inner .wms-field label {
    color: #9ca3af;
}

/* Links (Forgot password, etc.) */
#wms-inline-auth-form .wms-auth-link,
.wms-auth-inner .wms-auth-link {
    color: #b3821c;
}
#wms-inline-auth-form .wms-auth-link:hover,
.wms-auth-inner .wms-auth-link:hover {
    color: #9a6e17;
}

/* Error messages */
#wms-inline-auth-form .wms-auth-error,
#wms-inline-guest-form .wms-auth-error,
.wms-auth-inner .wms-auth-error {
    background: #fef2f2; border: 1px solid #fee2e2;
    color: #b91c1c; border-radius: 7px;
}

/* "Or login using" divider */
#wms-inline-auth-form .wms-social-below-divider,
.wms-auth-inner .wms-social-below-divider {
    color: #aaa;
}
#wms-inline-auth-form .wms-social-below-divider::before,
#wms-inline-auth-form .wms-social-below-divider::after,
.wms-auth-inner .wms-social-below-divider::before,
.wms-auth-inner .wms-social-below-divider::after {
    background: #e5e5e5;
}

/* Social login buttons (Facebook / Google) — match FNP brand colors */
#wms-inline-auth-form .wms-social-login-wrap a,
.wms-auth-inner .wms-social-login-wrap a,
#wms-inline-auth-form .wcr-btn-social,
.wms-auth-inner .wcr-btn-social {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 10px !important; width: 100% !important; padding: 11px 14px !important;
    border-radius: 5px !important; font-size: 13px !important; font-weight: 700 !important;
    text-decoration: none !important; cursor: pointer !important; border: none !important;
    transition: opacity .15s !important; margin-bottom: 8px !important;
    color: #fff !important; box-sizing: border-box !important;
}
#wms-inline-auth-form .wms-social-login-wrap a.wcr-btn-facebook,
.wms-auth-inner .wcr-btn-facebook {
    background: #3b5998 !important;
}
#wms-inline-auth-form .wms-social-login-wrap a.wcr-btn-facebook:hover,
.wms-auth-inner .wcr-btn-facebook:hover {
    background: #2d4a8a !important; opacity: 1 !important;
}
#wms-inline-auth-form .wms-social-login-wrap a.wcr-btn-google,
.wms-auth-inner .wcr-btn-google {
    background: #dd4b39 !important;
}
#wms-inline-auth-form .wms-social-login-wrap a.wcr-btn-google:hover,
.wms-auth-inner .wcr-btn-google:hover {
    background: #c23321 !important; opacity: 1 !important;
}

/* "Continue as Guest" outline buttons — match FNP "CHECKOUT AS GUEST" */
#wms-inline-login-banner .wms-btn-outline,
.wms-auth-inner .wms-guest-btn,
#wms-inline-guest-btn,
#wms-inline-login-btn {
    background: #f9f9f9; color: #555; border: 1.5px solid #e5e7eb;
    border-radius: 8px; font-weight: 700; transition: all .18s;
}
#wms-inline-login-banner .wms-btn-outline:hover,
.wms-auth-inner .wms-guest-btn:hover,
#wms-inline-guest-btn:hover,
#wms-inline-login-btn:hover {
    background: #fff; border-color: #b3821c; color: #b3821c;
}

/* Guest note text */
.wms-auth-inner .wms-guest-note {
    color: #9ca3af;
}
body.wms-msg-modal-active { overflow: hidden !important; }

.wms-msg-overlay {
    max-width: 100% !important;
    padding: 0px !important;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}
.wms-msg-overlay[style*="flex"] { display: flex !important; }

.wms-msg-inner {
    background: #00000070;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Top bar */
.wms-msg-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
    max-width: 800px;
    width: 100%;
    border-radius: 10px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .wms-msg-overlay .wms-msg-topbar { top: 46px; }
}
.wms-msg-topbar-inner {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.wms-msg-selects { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.wms-msg-sel-wrap { position: relative; flex: 1; min-width: 160px; }
.wms-msg-sel-wrap select {
    width: 100% !important;
    padding: 10px 32px 10px 12px !important;
    border: 1.5px solid #c8b96a !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
    background: #fff !important;
    color: #333 !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.wms-msg-sel-wrap select:focus { border-color: #b3821c !important; }
.wms-msg-sel-wrap select:disabled { background: #f8f8f8 !important; color: #aaa !important; border-color: #ddd !important; cursor: not-allowed !important; }
.wms-sel-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #888; pointer-events: none; }
.wms-msg-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Card body */
.wms-msg-body-main {
    /* flex: 1; */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    margin-top: 15px;
}
.wms-msg-body {
    display: flex;
    min-height: 150px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ede0c0;
}

/* Card front */
.wms-msg-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
    min-height: 400px;
    flex: 1;
    background: linear-gradient(160deg, #fdf9f0 40%, #f5e8c0 100%);
    border-right: 1px solid #ede0c0;
}
.wms-mcf-logo-wrap { margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.wms-mcf-site-logo {
    max-width: 90px; max-height: 75px; object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(184,150,12,.7)) drop-shadow(0 0 24px rgba(184,150,12,.4));
    opacity: .95;
}
.wms-mcf-site-name { font-size: 20px; font-style: italic; color: #b3821c; letter-spacing: .04em; }
.wms-mcf-occ-label {
    font-weight: 800;
    text-transform: capitalize;
    margin-top: 4px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    font-style: italic;
    color: #b3821c;
}
.wms-mcf-occ-img-wrap { margin-bottom: 10px; }
.wms-mcf-occ-img { max-width: 80px; max-height: 70px; object-fit: contain; border-radius: 4px; display: block; }

/* Card back */
.wms-msg-card-back {
    flex: 1;
    background: #fff;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.wms-mcb-row { display: flex; align-items: flex-start; gap: 8px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.wms-mcb-row:last-child { border-bottom: none; }
.wms-mcb-row-inner { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wms-mcb-row  #wms-msg-dear-label,
.wms-mcb-row #wms-msg-from-label{
    width: 30% !IMPORTANT;
}
 .wms-mcb-row  #wms-msg-dear,
.wms-mcb-row #wms-msg-from{
    width: 70% !IMPORTANT;
}
.wms-mcb-row.wms-mcb-dear-row {
    border: none;
}
.wms-mcb-field-label { font-size: 18px; color: #555; font-style: italic; line-height: 1.2; }
.wms-mcb-input {
    border: none !important; outline: none !important; box-shadow: none !important;
    font-size: 14px !important; color: #111 !important; background: transparent !important;
    padding: 4px 0 !important; width: 100% !important; border-bottom: 1px dashed #ddd !important;
}
.wms-mcb-input:focus { border-bottom-color: #b3821c !important; }
.wms-mcb-ta-wrap { flex: 1; }
.wms-mcb-ta {
    border: none !important; outline: none !important; box-shadow: none !important;
    font-size: 17px !important; color: #333 !important; background: transparent !important;
    font-style: italic !important; resize: none !important; width: 100% !important;
    min-height: 120px !important; line-height: 1.4 !important; padding: 4px 0 !important;
    display: block !important; font-family: "Cormorant Garamond", Georgia, serif;
}
.wms-mcb-ta::placeholder { color: #bbb; font-style: italic; }
.wms-mcb-charcount { font-size: 11px; color: #bbb; text-align: right; padding: 4px 0 8px; }
.wms-mcb-pen {
    background: none; border: none; color: #bbb; font-size: 16px;
    cursor: pointer; padding: 2px 4px; flex-shrink: 0; margin-top: 2px; transition: color .15s;
}
.wms-mcb-pen:hover { color: #b3821c; }
.wms-mcb-pen-ta { margin-top: 0; align-self: flex-start; }
/* Inline (same-line) layout for Dear and From rows */
.wms-mcb-inline-row { flex-direction: row !important; align-items: baseline; gap: 8px; }
.wms-dear-label-input, .wms-from-label-input { background: transparent; border: none; border-bottom: 2px solid #b3821c; outline: none; width: 55px; font-size: 14px; font-weight: 700; color: #b3821c; padding: 2px 0; flex-shrink: 0; }
.wms-dear-label-input:focus, .wms-from-label-input:focus { border-bottom-color: #8a6214; }
.wms-dear-name-input, .wms-from-name-input { background: transparent; border: none; border-bottom: 1.5px solid #d4c4a8; outline: none; flex: 1; font-size: 14px; padding: 2px 0; color: #333; }
.wms-dear-name-input:focus, .wms-from-name-input:focus { border-bottom-color: #b3821c; }

/* Mobile */
@media (max-width: 600px) {
    .wms-msg-body { flex-direction: column; }
    .wms-msg-card-front { width: 100%; min-height: 60px; flex-direction: row; gap: 12px; justify-content: flex-start; padding: 12px 16px; }
    .wms-msg-sel-wrap { min-width: 130px; }

	.wms-msg-topbar-inner {
    flex-direction: column;
}
.wms-msg-topbar-inner{
    flex-direction: column;
    align-items: center;
}
.wms-msg-actions{
    width: 100%;
}
.wms-msg-actions button {
    width: 100%;
    text-align: center;
    justify-content: center;
}
.wms-msg-inner {
    padding: 20px;
}
	.wms-msg-topbar {
    padding: 20px;
}
}

/* ══════════════════════════════════════════════════════
   SHIPPING COLUMN — Per-slot shipping method selector
══════════════════════════════════════════════════════ */

.wms-shipping-slot {
    display: flex;
    align-items: flex-start;
    min-height: 38px;
    gap: 5px;
}

.wms-shipping-slot {
    display: flex;
    align-items: flex-start;
    min-height: 38px;
}

.wms-shipping-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.wms-shipping-method-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230a0f1e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #1e293b;
    padding: 6px 28px 6px 8px;
    cursor: pointer;
    transition: border-color .15s;
    width: 100%;
    min-width: 160px;
    font-family: inherit;
}

.wms-shipping-method-select:hover,
.wms-shipping-method-select:focus {
    border-color: #0a0f1e;
    outline: none;
}

.wms-delivery-time-wrap {
    margin-top: 2px;
}

.wms-delivery-time-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff8e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b45309' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1.5px solid #fbbf24;
    border-radius: 6px;
    font-size: 11.5px;
    color: #92400e;
    padding: 5px 26px 5px 8px;
    cursor: pointer;
    transition: border-color .15s;
    width: 100%;
    font-family: inherit;
}

.wms-delivery-time-select:hover,
.wms-delivery-time-select:focus {
    border-color: #b45309;
    outline: none;
}

/* Global modal delivery time select — larger size */
#wms-global-delivery-time.wms-delivery-time-select {
    font-size: 13px;
    padding: 8px 32px 8px 10px;
    border: 1.5px solid #fbbf24;
    background: #fff8e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b45309' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #92400e;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

/* ── Apply Shipping to All Modal ─── */

.wms-shipping-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.wms-shipping-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}

.wms-shipping-radio-card input[type="radio"] {
    display: none;
}

.wms-shipping-radio-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.wms-shipping-radio-selected {
    border-color: #0a0f1e !important;
    background: #f0f4ff !important;
}

.wms-shipping-radio-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.wms-shipping-radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wms-shipping-radio-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #0a0f1e;
}

.wms-shipping-radio-text span {
    font-size: 11.5px;
    color: #64748b;
}

.wms-field-hint {
    font-size: 11.5px;
    color: #64748b;
    margin: -4px 0 8px;
}

/* ── Summary card shipping pill ─── */

.wms-summary-ship-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-top: 6px;
    white-space: nowrap;
}

/* ── Excel download link ─── */
#wms-download-excel-template { color: #166534; }
#wms-download-excel-template:hover { color: #14532d; }
.wms-csv-info-box > div:nth-child(2) .wms-link + .wms-link { margin-left: 4px; }

/* ── Standard shipping fixed time badge ─── */
.wms-standard-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: #166534;
    margin-top: 4px;
    white-space: nowrap;
}
.wms-standard-time-badge svg {
    flex-shrink: 0;
    color: #16a34a;
}

/* ── Per-product shipping (inline under product name) ─── */
.wms-prod-shipping-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
}
.wms-prod-ship-select {
    font-size: 11.5px !important;
    padding: 10px 24px 9px 7px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 160px;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 5px !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    cursor: pointer;
    flex-shrink: 0;
    height: auto;
    line-height: 1;
}
.wms-prod-ship-select:focus { border-color: #0a0f1e !important; outline: none !important; }
.wms-prod-time-select {
    font-size: 11px !important;
    padding: 4px 24px 4px 7px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 130px;
    border: 1.5px solid #fbbf24 !important;
    border-radius: 5px !important;
    background-color: #fffbeb !important;
    color: #92400e !important;
    cursor: pointer;
    flex-shrink: 0;
}
.wms-prod-time-select:focus { border-color: #b45309 !important; outline: none !important; }
.wms-standard-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
    flex-shrink: 0;
}
.wms-standard-time-badge svg { color: #16a34a; flex-shrink: 0; }

/* CUSTOM CSS */
.wms-recipient-search-wrap .wms-recipient-search {
    padding-left: 25px;
    font-size: 14px;
}
.wms-msg-btn,.wms-delete-slot-btn,.wms-action-btn {
    padding: 0px;
}
.wms-date-slot input {
    padding-left: 23px;
    font-size: 14px;
}
.wms-overlay {
    max-width: 100% !important;
}
/* ══════════════════════════════════════════════════════
   ADDRESS BOOK — My Account Page  (scoped to .wms-ab-page)
══════════════════════════════════════════════════════ */

/* Scroll lock when modal is open */
body.wms-ab-noscroll { overflow: hidden !important; }

/* Hidden utility — !important to beat theme display:flex overrides */
.wms-ab-hidden { display: none !important; }

/* Page wrapper */
.wms-ab-page {
    font-family: inherit;
    max-width: 900px;
}

/* Page header */
.wms-ab-header {
    margin-bottom: 24px;
}
.wms-ab-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0a0f1e !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}
.wms-ab-sub {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Empty state */
.wms-ab-empty {
    text-align: center;
    padding: 52px 20px;
    color: #94a3b8;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    background: #fafafa;
}
.wms-ab-empty p {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 14px 0 6px !important;
    color: #64748b !important;
}
.wms-ab-empty span {
    font-size: 13px !important;
    color: #94a3b8 !important;
    display: block;
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Card grid */
.wms-ab-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Individual card */
.wms-ab-card {
    display: block !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.wms-ab-card:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.08) !important;
}

/* Card top row: avatar + name */
.wms-ab-card-top {
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px !important;
}
.wms-ab-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #0a0f1e !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}
.wms-ab-info { flex: 1; min-width: 0; }
.wms-ab-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0a0f1e !important;
    margin: 0 0 2px !important;
    word-break: break-word;
}
.wms-ab-company {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* Address text */
.wms-ab-address {
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin-bottom: 10px !important;
}

/* Contact row */
.wms-ab-contact {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 14px !important;
}
.wms-ab-contact span {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

/* Edit / Delete action row */
.wms-ab-actions {
    display: flex !important;
    gap: 8px;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 13px !important;
    margin-top: 4px !important;
}
.wms-ab-edit-btn,
.wms-ab-delete-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 16px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s !important;
    border: none !important;
    line-height: 1 !important;
    text-decoration: none !important;
}
.wms-ab-edit-btn   { background: #f1f5f9 !important; color: #0a0f1e !important; }
.wms-ab-edit-btn:hover   { background: #e2e8f0 !important; color: #0a0f1e !important; }
.wms-ab-delete-btn { background: #fff1f2 !important; color: #dc2626 !important; }
.wms-ab-delete-btn:hover { background: #fee2e2 !important; color: #dc2626 !important; }

/* ── Edit Modal Overlay ── */
#wms-ab-modal.wms-ab-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(10,15,30,.55) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}
/* Hidden state overrides display:flex */
#wms-ab-modal.wms-ab-overlay.wms-ab-hidden {
    display: none !important;
}

.wms-ab-modal-box {
    background: #fff !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 540px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    box-shadow: 0 24px 64px rgba(0,0,0,.22) !important;
    position: relative !important;
    z-index: 1000000 !important;
}
.wms-ab-modal-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 22px 24px 4px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}
.wms-ab-modal-head h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0a0f1e !important;
    margin: 0 !important;
}
.wms-ab-modal-head button {
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: color .15s, background .15s !important;
}
.wms-ab-modal-head button:hover {
    color: #0a0f1e !important;
    background: #f1f5f9 !important;
}
.wms-ab-modal-body { padding: 18px 24px !important; }
.wms-ab-modal-foot {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 0 24px 22px !important;
}

/* Form fields inside modal */
.wms-ab-field { margin-bottom: 16px !important; }
.wms-ab-field:last-child { margin-bottom: 0 !important; }
.wms-ab-field label {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
}
.wms-ab-field input,
.wms-ab-field select {
    display: block !important;
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    color: #0a0f1e !important;
    background: #fff !important;
    transition: border-color .15s !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}
.wms-ab-field input:focus,
.wms-ab-field select:focus {
    border-color: #0a0f1e !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(10,15,30,.08) !important;
}
.wms-ab-field-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}
.wms-ab-opt  { font-weight: 400 !important; color: #94a3b8 !important; font-size: 10.5px !important; text-transform: none !important; }
.wms-req     { color: #ef4444 !important; }

.wms-ab-btn-outline,
.wms-ab-btn-primary {
    padding: 10px 22px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s !important;
    border: none !important;
    line-height: 1 !important;
    text-decoration: none !important;
}
.wms-ab-btn-outline  { background: #f1f5f9 !important; color: #0a0f1e !important; }
.wms-ab-btn-outline:hover { background: #e2e8f0 !important; }
.wms-ab-btn-primary  { background: #0a0f1e !important; color: #fff !important; }
.wms-ab-btn-primary:hover { background: #1e293b !important; }

.wms-ab-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    padding: 9px 13px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    margin-top: 10px !important;
}

@media (max-width: 640px) {
    .wms-ab-grid { grid-template-columns: 1fr !important; }
    .wms-ab-field-row { grid-template-columns: 1fr !important; }
}

/* ── Blocked slot error states ─────────────────────────── */

/* Inline error banner (sticky at top of planner) */
.wms-inline-error {
    position: sticky;
    top: 10px;
    z-index: 9999;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    font-size: 13px;
    font-weight: 500;
    white-space: pre-line;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    animation: wms-shake .3s ease;
}

/* Modal slot error */
.wms-slot-error {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fff3cd;
    border: 1.5px solid #ffc107;
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

/* Auto-change notice on per-product row */
.wms-slot-changed-notice {
    font-size: 11px;
    color: #b45309;
    margin-top: 3px;
    padding: 2px 6px;
    background: #fff8e7;
    border-radius: 4px;
    border: 1px solid #fbbf24;
}

/* Disabled (blocked) options in time selects */
.wms-delivery-time-select option:disabled {
    color: #ccc;
    text-decoration: line-through;
    background: #fafafa;
}

@keyframes wms-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════════
   CUTOFF & NOTIFICATION STYLES
═══════════════════════════════════════════════════════ */

/* ── Per-row cutoff notice ──────────────────────────── */
.wms-cutoff-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 6px 0 2px;
    padding: 8px 12px;
    background: #fff8e7;
    border: 1.5px solid #f39c12;
    border-radius: 7px;
    font-size: 12px;
    color: #7d4e00;
    line-height: 1.5;
}
.wms-cutoff-notice.wms-hidden { display: none !important; }
.wms-cutoff-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.wms-cutoff-text em { font-style: italic; opacity: .85; }

/* ── Top-of-planner cutoff banner ───────────────────── */
.wms-top-cutoff-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 11px 14px;
    background: #fff8e7;
    border: 1.5px solid #f39c12;
    border-radius: 8px;
    font-size: 13px;
    color: #7d4e00;
    line-height: 1.5;
    animation: wms-fadein .3s ease;
}
.wms-tcb-icon { font-size: 18px; flex-shrink: 0; }
.wms-tcb-text { flex: 1; }
.wms-tcb-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    color: #b07e1a;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    opacity: .7;
    transition: opacity .15s;
}
.wms-tcb-close:hover { opacity: 1; }

/* ── Toast notifications ────────────────────────────── */
.wms-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    max-width: 440px;
    text-align: center;
}

@keyframes wms-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Social login buttons inside WMS auth gate ───────── */
/* Works with Nextend Social Login, WooCommerce Social Login, etc. */
.wms-social-login-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Nextend Social Login overrides — make buttons fit our layout */
.wms-social-login-wrap .nsl-container,
.wms-social-login-wrap .nsl-container-block {
    width: 100% !important;
    margin: 0 !important;
}
.wms-social-login-wrap .nsl-button,
.wms-social-login-wrap .nsl-button-default {
    width: 100% !important;
    border-radius: 4px !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 11px 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
    transition: box-shadow .15s, opacity .15s !important;
}
.wms-social-login-wrap .nsl-button:hover {
    opacity: .92 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.18) !important;
}
/* WooCommerce Social Login plugin */
.wms-social-login-wrap .wc-social-login {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.wms-social-login-wrap .wc-social-login a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 11px 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* ── Blocked date warning banner (inside .wms-date-slot) ── */
.wms-block-date-warn {
    display: none;
    background: #fff0f0;
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 7px 11px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
}

/* ── Time-slot button group (replaces <select> for per-product) ── */
.wms-time-btn-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    align-items: center;
}
.wms-ts-btn {
    position: relative;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 5px;
    cursor: pointer;
    border: 1.5px solid #fbbf24;
    background: #fffbeb;
    color: #92400e;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
    line-height: 1.3;
}
.wms-ts-btn:hover:not(.wms-ts-btn--unavail) {
    background: #fef3c7;
    border-color: #b45309;
}
.wms-ts-btn--active {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #fff !important;
}
/* Unavailable / past / blocked */
.wms-ts-btn--unavail {
    background: #f8f8f8 !important;
    border-color: #e2e2e2 !important;
    color: #bbb !important;
    text-decoration: line-through;
    cursor: not-allowed !important;
}
/* Tooltip on unavailable buttons */
.wms-ts-btn--unavail[data-tip]::after {
    content: attr(data-tip);
    display: none;
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    line-height: 1.4;
    text-decoration: none;
}
.wms-ts-btn--unavail[data-tip]::before {
    content: '';
    display: none;
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
    z-index: 9999;
    pointer-events: none;
}
.wms-ts-btn--unavail[data-tip]:hover::after,
.wms-ts-btn--unavail[data-tip]:hover::before {
    display: block;
}
/* "All slots unavailable" message */
.wms-slots-past-msg {
    font-size: 11px;
    color: #b45309;
    background: #fff8e7;
    border: 1px solid #fbbf24;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 4px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

/* Qty stepper — always visible, never hidden (#32 fix) */
.wms-qty-btn { display: flex !important; }
.wms-qty-stepper { display: flex !important; }

/* ══════════════════════════════════════════════════════
   FIX 4: Shipping selector layout — large recipient counts
   Keeps columns equal-width and heading on one line
══════════════════════════════════════════════════════ */

/* Prevent table heading from wrapping */
.wms-table-head > span,
.wms-table-head > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Force all columns to equal height alignment even with many slots */
.wms-product-row {
    align-items: stretch !important;
}

/* Shipping column: fixed proportional width, never shrinks below minimum */
.wms-shipping-col {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 0 !important;
    box-sizing: border-box !important;
}

/* Shipping select: full width of its column, never overflows */
.wms-shipping-method-select,
.wms-slot-ship-select,
.wms-prod-ship-select {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
	text-align:center;
}

/* Delivery time select same treatment */
.wms-delivery-time-select,
.wms-slot-time-select,
.wms-prod-time-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Recipient + date columns: don't let long addresses blow layout */
.wms-recipients-col,
.wms-dates-col {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.wms-recipient-search {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Time slot button group: wrap and constrain to column width */
.wms-time-btn-wrap {
    width: 100% !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

.wms-ts-btn {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

/* Strategy heading: no wrap */
.wms-strategy-heading {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Actions column: keep icons square and aligned */
.wms-actions-col {
    min-width: 46px !important;
    max-width: 54px !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Scrollable cols: sync scroll heights so all slots align */
.wms-recipients-col,
.wms-dates-col,
.wms-shipping-col,
.wms-msgs-col {
    /* Allow taller for many recipients — remove hard max */
    max-height: 480px !important;
}

/* Grid columns: recalculate to stop breakout */
.wms-product-row,
.wms-table-head {
    /* Product | Qty | Recipients | Date | Shipping | Actions */
    grid-template-columns: minmax(130px, 190px) 56px 1fr minmax(94px,195px) minmax(180px,95px) 100px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 1100px) {
    .wms-product-row,
    .wms-table-head {
        grid-template-columns: minmax(100px, 150px) 52px 1fr minmax(90px,110px) minmax(100px,130px) 46px !important;
    }
}

@media (max-width: 900px) {
    .wms-product-row,
    .wms-table-head {
        grid-template-columns: 1fr !important;
    }
    .wms-actions-col {
        flex-direction: row !important;
        max-width: none !important;
    }
    /* Remove max-height on mobile so everything is visible */
    .wms-recipients-col,
    .wms-dates-col,
    .wms-shipping-col,
    .wms-msgs-col {
        max-height: none !important;
        overflow: visible !important;
    }
		.wms-flow-nav {
    gap: 15px;
    align-items: flex-start;
}
.wms-panel {
    padding: 0px;
}
.wms-slot-std-badge {
    width: 100%;
    text-align: center;
    justify-content: center;
}
	.wms-shipping-method-select, .wms-slot-ship-select, .wms-prod-ship-select {
    width: 100% !important;
    min-width: auto !important;
}
	.wms-recipient-slot, .wms-date-slot, .wms-shipping-slot, .wms-msg-slot {
    width: 100%;
}
	.wms-flow-main {
    padding: 20px;
}
	.wms-qty-col {
    justify-content: end;
}
}

/* Fix 2: Dropdown repositioning helper — ensure fixed-position dropdown looks right */
.wms-search-dropdown .wms-dropdown-actions { padding: 5px; }

/* ══════════════════════════════════════════════════════════════
   Sender Edit Modal (Edit Your Details popup)
   Mirrors FNP's wcr-sender-modal-* pattern
══════════════════════════════════════════════════════════════ */
.wms-sender-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.wms-sender-modal-inner {
    background: #fff; border-radius: 12px; width: 100%; max-width: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18); overflow: hidden;
}
.wms-sender-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.wms-sender-modal-title { font-size: 15px; font-weight: 700; color: #111; }
.wms-sender-modal-close {
    background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer;
    line-height: 1; padding: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}
.wms-sender-modal-close:hover { color: #111; }
.wms-sender-modal-body { padding: 20px 24px 24px; }
body.wms-modal-active { overflow: hidden; }
