@font-face{font-family:'Sora';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/sora-400.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/sora-500.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/sora-600.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/sora-700.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/sora-800.woff2') format('woff2');}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand locked — same tokens as the public site. Red on warm paper, Sora
       throughout. The old names are kept so every existing rule still resolves. */
    --ink:            #1B1F24;
    --primary-dark:   #22262C;   /* ink: body text and dark surfaces */
    --primary-blue:   #DC3A28;   /* the brand and every action */
    --primary-tint:   #FDECE9;
    --accent-orange:  #DC3A28;
    --accent-tint:    #FDECE9;
    --bg-light:       #FBF7F2;
    --footer-dark:    #22262C;
    --white:          #ffffff;
    --gray-100:       #F4EEE6;
    --gray-200:       #EAE3DA;
    --gray-300:       #D9D0C4;
    --gray-500:       #6E7480;
    --gray-700:       #3A3F46;
    --danger:         #C0392B;
    --success:        #2F6F62;
    --warning:        #B4741A;
    --radius:         12px;
    --radius-sm:      9px;
    --shadow:         0 1px 2px rgba(27,31,36,.05), 0 6px 20px -8px rgba(27,31,36,.13);
    --shadow-lg:      0 2px 6px rgba(27,31,36,.06), 0 18px 48px -16px rgba(27,31,36,.20);
    --font-body:      'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display:   'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

html {
    font-size: 15px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--primary-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Navigation ===== */
.portal-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 0 24px;
    /* 88px and a 1rem gap are the marketing header's numbers (site.css
       .header-inner); the portal used 64px/24px with a smaller logo. Matched
       so a customer moving from the public site to the dashboard does not see
       the brand change size. */
    height: 88px;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* 16px, not 1rem: this stylesheet's root is 15px, so 1rem here is 15px
       and 1rem on the marketing site is 16px. Same trap as the link size. */
    gap: 16px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    line-height: 1.1;
    transform: translateY(-3px);
}

.brand-title {
    display: flex;
    justify-content: center;
}

.brand-courier {
    color: var(--primary-dark);
}

.brand-point {
    color: var(--primary-blue);
}

.brand-caption {
    display: block;
    color: var(--accent-orange);
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.1;
    margin-top: 2px;
    text-align: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    /* 32px + the bar's 16px gap reproduces site.css's 48px offset exactly, so
       the links sit beside the logo rather than drifting toward the middle.
       Pixels for the same 15px-vs-16px root reason as above. */
    margin-left: 32px;
    gap: .25rem;
    flex: 1;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-links a:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links a.active {
    background: var(--primary-blue);
    color: var(--white);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    white-space: nowrap;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.user-role {
    font-size: 0.75rem;
    color: var(--white);
    background: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.btn-logout {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-logout:hover {
    background: var(--danger);
    color: var(--white);
    text-decoration: none;
}

/* ===== Main Content ===== */
.portal-main {
    flex: 1;
    padding: 24px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Footer ===== */
.portal-footer {
    background: var(--footer-dark);
    color: var(--gray-300);
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    margin-top: auto;
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* ===== Stat Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    border-top: 3px solid var(--primary-blue);
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

.stat-card.accent {
    border-top-color: var(--accent-orange);
}

.stat-card.success {
    border-top-color: var(--success);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #14578e;
}

.btn-accent {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-accent:hover {
    background: #d4900e;
}

.btn-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--footer-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: none;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ===== Forms ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary-dark);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[readonly] {
    background: var(--gray-100);
    cursor: default;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-section {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

thead {
    background: var(--primary-dark);
    color: var(--white);
}

th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

tbody tr:hover {
    background: var(--gray-100);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-link {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Narrow columns (invoice no, sender) wrap to ~2 lines so action buttons fit */
td.td-wrap {
    max-width: 110px;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-admin {
    background: #e8d4f8;
    color: #6b21a8;
}

.badge-staff {
    background: #dbeafe;
    color: #1e40af;
}

.badge-dox {
    background: #d1fae5;
    color: #065f46;
}

.badge-nondox {
    background: #fef3c7;
    color: #92400e;
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    text-decoration: none;
}

.pagination .active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== Search/Filter Bar ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 160px;
}

.filter-bar .btn {
    height: 40px;
}

/* ===== Detail View ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-row {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 1rem;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ===== Login Page ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Same warm-paper ground as the marketing hero, so signing in does not
       feel like arriving at a different company. A full red wash is too loud
       behind a form people read carefully. */
    background:
        radial-gradient(46rem 24rem at 82% -12%, rgba(220,58,40,.12), transparent 62%),
        radial-gradient(40rem 22rem at -6% 4%, rgba(47,111,98,.08), transparent 60%),
        var(--bg-light);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-card .login-logo {
    height: 48px;
    width: 48px;
    flex: none;
    margin-bottom: 0;
}

.login-card .login-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-display);
    margin-bottom: 4px;
}

.login-brand-title {
    display: flex;
    justify-content: center;
}

.login-brand .brand-caption {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
}

/* The line somebody reads first. The subtitle below it explains the
   mechanism, which only means something once this has landed. */
.login-card .login-lede {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.45;
    margin: 0 0 6px;
    text-wrap: balance;
}

.login-card .login-subtitle {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.login-card .form-group {
    text-align: left;
}

.login-card .form-group input {
    padding: 12px 14px;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ===== Shipment View Actions ===== */
.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ===== User Management ===== */
.user-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.user-form-inline .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
}

/* ===== Three-Column Form Layout ===== */
.form-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.form-three-col > .form-col {
    min-width: 0;
}

.form-col h3.form-section {
    margin-top: 0;
}

/* ===== Top Bar (Partner/Branch/Date/Client/Business) ===== */
.form-top-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.form-top-bar > .form-group {
    flex: 0 0 auto;
}

.form-top-bar > .inline-group {
    flex: 1 1 auto;
    min-width: 200px;
}

/* ===== Inline Groups (side-by-side fields) ===== */
.inline-group {
    display: flex;
    gap: 8px;
}

.inline-group .form-group {
    flex: 1;
    margin-bottom: 16px;
}

.inline-group .form-group.code-field {
    flex: 0 0 90px;
}

/* ===== Collapsible Sections ===== */
.form-section-collapsible {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    background: var(--gray-100);
    user-select: none;
}

.form-section-collapsible:hover {
    background: var(--gray-200);
}

.form-section-collapsible .collapse-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    color: var(--gray-500);
}

.form-section-collapsible.open .collapse-arrow {
    transform: rotate(90deg);
}

.collapsible-content {
    display: none;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 8px;
}

.collapsible-content.open {
    display: block;
}

/* ===== Dynamic Tables (Dimensions, Performa) ===== */
.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 12px;
}

.dynamic-table th {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 8px 10px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--gray-200);
}

.dynamic-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.dynamic-table input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--primary-dark);
    background: var(--white);
}

.dynamic-table input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.dynamic-table input[readonly] {
    background: var(--gray-100);
    cursor: default;
}

.dynamic-table .row-vol-weight {
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    min-width: 60px;
}

/* ===== Add/Remove Row Buttons ===== */
.btn-add-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-add-row:hover {
    background: #1e8e3e;
}

.btn-remove-row {
    padding: 4px 10px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-row:hover {
    background: #b02a37;
}

/* ===== Toggle Switch (Yes/No) ===== */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-switch .toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--success);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    left: 23px;
}

.toggle-switch .toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== File Drop Zone (KYC) ===== */
.file-drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    color: var(--gray-500);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--primary-blue);
    background: rgba(26, 111, 181, 0.04);
    color: var(--primary-blue);
}

.file-drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop-zone .drop-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.file-drop-zone .drop-hint {
    font-size: 0.75rem;
    margin-top: 4px;
}

.file-drop-zone .file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    margin-top: 8px;
}

/* ===== Checkbox Group ===== */
.checkbox-group {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

/* ===== API Status Badge ===== */
.badge-api-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-api-failed {
    background: #dc2626;
    color: #fff;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.api-failed-banner {
    background: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 12px 16px;
}

.badge-api-pending {
    background: #fef3c7;
    color: #92400e;
}

/* ===== Tracking Status Badges ===== */

/* ===== Partner Bar (top layout) ===== */
.partner-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

/* ===== Section Badge (dark pill header) ===== */
.section-badge {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ===== Bordered Column Cards ===== */
.form-col-bordered {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--white);
    min-width: 0;
}

/* ===== Partner Toggle Pills ===== */
.partner-toggle {
    display: inline-flex;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius);
    overflow: hidden;
}

.partner-pill {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}

.partner-pill input[type="radio"] {
    display: none;
}

.partner-pill span {
    display: block;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--white);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.partner-pill input[type="radio"]:checked + span {
    background: var(--primary-blue);
    color: var(--white);
}

.partner-pill:hover span {
    background: rgba(26, 111, 181, 0.08);
}

.partner-pill input[type="radio"]:checked:hover + span {
    background: var(--primary-blue);
}

.partner-pill.disabled {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

/* ===== Branch Selector ===== */
.form-top-bar select#branch {
    min-width: 160px;
}

/* ===== Speedex Form Styles ===== */
.spx-header-bar {
    background: #28a745;
    color: var(--white);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 16px;
}

.spx-three-col {
    grid-template-columns: 1fr 1.2fr 1.2fr;
}

.spx-three-col > .form-col {
    min-width: 0;
    overflow: hidden;
}

.label-req {
    color: var(--danger) !important;
}

.label-req-th {
    color: var(--danger) !important;
}

.spx-invoice-header {
    background: #28a745;
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    margin-bottom: 8px;
}

/* ===== Partner-Conditional Visibility ===== */
[data-partner] {
    transition: none;
}

/* ===== Field Error State ===== */
.field-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .portal-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex: 0 0 100%;   /* see the 980px block: flex:1 defeats width:100% */
        width: 100%;
        flex-direction: column;
        order: 3;
        padding-top: 8px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-user {
        display: none;
        width: 100%;
        order: 4;
        padding-top: 8px;
        border-top: 1px solid var(--gray-200);
        margin-left: 0;
    }

    .nav-links.open ~ .nav-user {
        display: flex;
    }

    .portal-main {
        padding: 16px;
    }

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

    .form-three-col {
        grid-template-columns: 1fr;
    }

    .form-top-bar {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

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

    .dynamic-table {
        font-size: 0.78rem;
    }

    .dynamic-table th,
    .dynamic-table td {
        padding: 4px 6px;
    }

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

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-group {
        min-width: 100%;
    }
}

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

/* ===== Portal-specific ===== */
.user-suite {
    background: var(--accent-orange);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Virtual address card */
.va-card {
    background: linear-gradient(135deg, #22262C 0%, #3A3F46 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.va-card h2 {
    color: var(--accent-orange);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.va-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.02rem;
}

.va-line:last-of-type {
    border-bottom: none;
}

.va-line .va-value {
    flex: 1;
    word-break: break-word;
}

/* A superseded value shown under the current one -- currently the old phone
   number, for customers who saved it before the change. Deliberately quiet:
   it is a reassurance, not a second option. Never reaches the clipboard,
   because the copy buttons read data-copy rather than the rendered text. */
.va-line .va-sub {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.2px;
}

.va-line .va-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    min-width: 84px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-copy.copied {
    background: var(--success);
}

.va-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

/* The "Address type" row: its long label wraps so "Office" lines up with the values above. */
.va-line.va-meta .va-label {
    max-width: 84px;
}

.va-note.va-closed {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

/* Parcel / request status badges */
.badge-status-received { background: var(--primary-tint); color: var(--primary-blue); }
.badge-status-ship_requested { background: #fff3cd; color: #856404; }
.badge-status-requested { background: #fff3cd; color: #856404; }
.badge-status-quoted { background: #ffe8cc; color: #a25b00; }
.badge-status-paid { background: #e2f5e9; color: #1e7b3c; }
.badge-status-shipped { background: var(--primary-tint); color: var(--primary-blue); }
.badge-status-delivered { background: #d4edda; color: #155724; }
.badge-status-cancelled { background: var(--gray-200); color: var(--gray-700); }
.badge-status-disposed { background: #f8d7da; color: #721c24; }
.badge-status-returned { background: var(--gray-200); color: var(--gray-700); }

/* Courier tracking states.
   trackingBadgeClass() has returned these five since the portal could show a
   tracking status, and portal.css never defined any of them -- so request-view
   has been printing bare uppercase text where a pill belonged. The admin panel
   styles them in its own sheet; these are the portal's colours, matched to the
   badge-status-* set above so the two kinds of badge sit together. */
.badge-track-delivered { background: #d4edda; color: #155724; }
.badge-track-ofd       { background: #ffe8cc; color: #a25b00; }
.badge-track-transit   { background: var(--primary-tint); color: var(--primary-blue); }
.badge-track-booked    { background: #fff3cd; color: #856404; }
.badge-track-default   { background: var(--gray-200); color: var(--gray-700); }

.deadline-warning { color: var(--danger); font-weight: 600; }
.deadline-ok { color: var(--gray-500); }

/* Tracking badges (same palette as admin) */

/* Auth pages */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.google-signin {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.auth-links {
    margin-top: 16px;
    font-size: 0.85rem;
    text-align: center;
}

.auth-links a { display: inline-block; margin: 0 8px; }

/* How-it-works steps on the dashboard */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    text-align: center;
}

.step-card .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-orange);
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p { font-size: 0.85rem; color: var(--gray-700); }

/* Parcel photos */
.parcel-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.parcel-photos a { display: block; line-height: 0; border-radius: 6px; }
.parcel-photos a:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 2px; }
.parcel-photos img {
    cursor: zoom-in;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

/* KYC banner */
.kyc-banner { margin-bottom: 20px; }


/* Status Header */





/* Shipment Details */


.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Timeline */















/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

@media (max-width: 768px) {

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




}

/* ===== Country-code phone field + native select polish ===== */
.phone-field {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.phone-field .phone-dial {
    flex: 0 0 auto;
    width: 200px;
    max-width: 46%;
}
.phone-field .phone-number {
    flex: 1 1 auto;
    min-width: 0;
}

/* Give native selects a consistent look and a custom caret so they match
   the text inputs (default OS rendering looked out of place). */
.form-group select,
.phone-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c757d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
    text-overflow: ellipsis;
}

/* State field: only the active control (select or text) is shown */
.state-field [hidden] { display: none !important; }

/* "Other" label free-text box */
.label-other { margin-top: 8px; }

/* ===== Notifications / activity feed ===== */
.notif-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.notif-filters .chip {
    display:inline-block; padding:6px 14px; border-radius:16px; font-size:0.85rem;
    background:#EFEAE0; color:#334155; text-decoration:none; border:1px solid #e2e8f0;
}
.notif-filters .chip-active { background:var(--primary-dark); color:#fff; border-color:var(--primary-dark); }
.notif-day {
    font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
    color:#94a3b8; margin:18px 0 8px;
}
.notif-day:first-child { margin-top:0; }
.notif-feed { display:flex; flex-direction:column; }
.notif-row {
    display:flex; gap:14px; padding:14px 12px; border-bottom:1px solid #EFEAE0;
    color:inherit; text-decoration:none; border-radius:8px;
}
a.notif-row:hover { background:#f6f9fc; }
.notif-row.notif-new { background:#f0f7ff; }
.notif-icon {
    flex:0 0 40px; width:40px; height:40px; border-radius:50%; background:#EFEAE0;
    display:flex; align-items:center; justify-content:center; font-size:1.1rem;
}
.notif-icon-payment { background:#e8f5e9; }
.notif-icon-shipment { background:var(--primary-tint); }
.notif-icon-parcel { background:#fff4e5; }
.notif-icon-kyc { background:#f3e8ff; }
.notif-icon-request { background:#EFEAE0; }
.notif-body { display:flex; flex-direction:column; gap:2px; min-width:0; }
.notif-title { font-weight:600; color:var(--primary-dark); }
.notif-msg { font-size:0.9rem; color:#475569; }
.notif-time { font-size:0.78rem; color:#94a3b8; }
.notif-dot {
    display:inline-block; width:8px; height:8px; border-radius:50%;
    background:#e53935; margin-left:4px; vertical-align:middle;
}

/* ===== Nav de-clutter: bell, user menu, quick actions, parcel tabs ===== */
.nav-count-badge {
    display: inline-block; min-width: 18px; padding: 0 6px; background: var(--danger);
    color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700;
    text-align: center; line-height: 18px;
}
.nav-bell {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; color: var(--primary-dark);
    transition: var(--transition);
}
.nav-bell:hover, .nav-bell.active { background: var(--gray-100); color: var(--primary-blue); }
.nav-bell-badge {
    position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--danger); color: #fff; border-radius: 8px; font-size: 10px;
    font-weight: 700; line-height: 16px; text-align: center;
}
.user-menu { position: relative; }
.user-menu > summary {
    display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
    padding: 6px 10px; border-radius: var(--radius); transition: var(--transition);
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary::marker { content: ""; }
.user-menu > summary:hover { background: var(--gray-100); }
.user-caret { font-size: 0.7rem; color: var(--gray-500); transition: transform 0.2s ease; }
.user-menu[open] .user-caret { transform: rotate(180deg); }
.user-menu-dropdown {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff;
    border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 6px; z-index: 100; display: flex; flex-direction: column; gap: 2px;
}
.user-menu-dropdown a {
    padding: 9px 12px; border-radius: 6px; color: var(--primary-dark); font-size: 0.85rem;
    font-weight: 500; text-decoration: none; transition: var(--transition);
}
.user-menu-dropdown a:hover { background: var(--gray-100); text-decoration: none; }
.user-menu-dropdown a.active { background: var(--gray-100); color: var(--primary-blue); }
.user-menu-dropdown .menu-logout {
    color: var(--danger); border-top: 1px solid var(--gray-200); margin-top: 4px; padding-top: 10px;
}

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.qa-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; background: #fff;
    border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--primary-dark);
    font-weight: 600; font-size: 0.88rem; text-decoration: none; box-shadow: var(--shadow);
    transition: var(--transition);
}
.qa-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-1px); text-decoration: none; }
.qa-btn.qa-primary { background: var(--accent-orange); border-color: var(--accent-orange); color: var(--primary-dark); }
.qa-btn.qa-primary:hover { filter: brightness(1.05); color: var(--primary-dark); }

.parcel-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); }
.parcel-tabs a {
    padding: 10px 18px; color: var(--gray-500); font-weight: 600; font-size: 0.9rem;
    text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: var(--transition);
}
.parcel-tabs a:hover { color: var(--primary-blue); text-decoration: none; }
.parcel-tabs a.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }

@media (max-width: 768px) {
    .user-menu-dropdown { position: static; box-shadow: none; border: none; padding: 4px 0 0; min-width: 0; }
    .nav-bell { align-self: flex-start; }
}

/* ===== Dashboard action cards (replaces quick-action pills) ===== */
.action-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px; margin: 0 0 24px;
}
.action-card {
    display: flex; align-items: flex-start; gap: 14px; padding: 18px;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: var(--shadow); text-decoration: none; transition: var(--transition);
}
.action-card:hover {
    border-color: var(--primary-blue); box-shadow: var(--shadow-lg);
    transform: translateY(-2px); text-decoration: none;
}
.ac-icon {
    flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center;
    justify-content: center; font-size: 22px; background: var(--gray-100); border-radius: 10px;
}
.action-card.ac-featured .ac-icon { background: rgba(245, 166, 35, 0.18); }
.ac-text { display: flex; flex-direction: column; gap: 3px; }
.ac-title { font-weight: 700; font-size: 0.95rem; color: var(--primary-dark); }
.ac-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.4; }

/* ===== Parcel cards (replaces the dense parcels table) ===== */
.parcels-hint { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 16px; }
.parcel-list { display: flex; flex-direction: column; gap: 14px; }
.parcel-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 18px; transition: var(--transition);
}
.parcel-card:hover { box-shadow: var(--shadow-lg); }
.pc-head { display: flex; align-items: flex-start; gap: 12px; }
.pc-select { flex: 0 0 auto; display: flex; align-items: center; padding-top: 2px; }
.pc-select input { width: 18px; height: 18px; cursor: pointer; }
.pc-headtext { flex: 1 1 auto; min-width: 0; }
.pc-title { font-weight: 700; font-size: 1rem; color: var(--primary-dark); display: block; }
.pc-sub { font-size: 0.78rem; color: var(--gray-500); display: block; margin-top: 2px; }
.pc-head .badge { flex: 0 0 auto; }
.pc-meta {
    display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px;
    padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.pc-meta-item { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--primary-dark); }
.pc-meta-label {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--gray-500); font-weight: 700; margin-bottom: 2px;
}
.pc-meta-sub { font-size: 0.75rem; color: var(--gray-500); font-weight: 400; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.pc-actions form { display: inline; margin: 0; }
.pc-actions .pc-muted { font-size: 0.8rem; color: var(--gray-500); }
.parcel-card .parcel-photos { margin-top: 12px; }
@media (max-width: 600px) { .pc-meta { gap: 10px 16px; } }


/* ===== How It Works: features + FAQ ===== */
/* Three across, matching .grid-3 on the marketing site including its two
   breakpoints. auto-fit with a 220px minimum was fitting five across inside
   the card at desktop width and leaving a lone sixth on its own row. */
.hiw-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .hiw-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hiw-features { grid-template-columns: minmax(0, 1fr); } }
.hiw-feature { border-left: 4px solid var(--primary-blue); background: var(--bg-light); border-radius: 8px; padding: 14px 16px; }
.hiw-feature h4 { color: var(--primary-dark); font-size: 0.95rem; margin: 0 0 4px; }
.hiw-feature p { color: var(--gray-500); font-size: 0.85rem; margin: 0; line-height: 1.5; }
.hiw-faq details { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 10px; padding: 14px 16px; }
.hiw-faq summary { font-weight: 600; color: var(--primary-dark); cursor: pointer; list-style: none; }
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary::marker { content: ""; }
.hiw-faq details[open] summary { margin-bottom: 8px; }
.hiw-faq details p { color: var(--gray-700); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ==========================================================================
   India Rabbit brand layer — applied on top of the ported component styles.
   Everything above is layout; this is what makes it look like India Rabbit.
   ========================================================================== */

body {
    font-family: var(--font-body);
    background:
        radial-gradient(60rem 30rem at 88% -12%, rgba(255,107,74,.06), transparent 60%),
        radial-gradient(52rem 26rem at -8% 4%, rgba(14,92,85,.07), transparent 62%),
        var(--bg-light);
    color: #2C2A26;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-title { font-family: var(--font-display); letter-spacing: -.015em; }
h1 { font-weight: 700; text-wrap: balance; }
p  { text-wrap: pretty; }

/* --- Top navigation ---------------------------------------------------- */
/* The bar stays full-bleed, but its contents sit in the same 1280px column as
   .portal-main below it, the way .wrap does on the marketing site. Before
   this the logo sat 24px from the window edge while the dashboard cards
   started 104px in, so the brand did not line up with the page under it. */
.portal-nav {
    padding-left:  max(24px, calc((100% - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1280px) / 2 + 24px));
    background: rgba(247,243,236,.86);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
}
.nav-logo { height: 34px; width: auto; display: block; }
.portal-nav .nav-links a {
    color: var(--gray-700);
    font-weight: 600;
    /* site.css uses .95rem, but this stylesheet sets html{font-size:15px}
       while the marketing site runs on the browser default of 16px -- the
       same rem value renders 14.25px here and 15.2px there. Pixels, so the
       two bars actually match. Same reason for the padding below. */
    font-size: 15.2px;
    border-radius: 999px;
    padding: 8.8px 12.8px;
    transition: background .16s ease, color .16s ease;
}
.portal-nav .nav-links a:hover { background: var(--primary-tint); color: var(--primary-dark); }
.portal-nav .nav-links a.active { background: var(--primary-blue); color: #fff; }
.portal-nav .nav-links a.active::after { display: none; }

.nav-count-badge {
    background: var(--accent-tint);
    color: #9A3412;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .74rem;
    font-weight: 700;
}
.nav-bell-badge { background: var(--accent-orange); }

.user-menu summary {
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 999px;
    padding: 6px 12px;
}
.user-suite {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
    color: var(--primary-blue);
    background: var(--primary-tint);
    border-radius: 6px;
    padding: 1px 6px;
}
.user-menu-dropdown { border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }

/* --- Surfaces ---------------------------------------------------------- */
.card, .panel, .stat-card, .box, .table-wrap {
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    background: var(--white);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display);
}
.card-header h2, .card-header h3 { font-size: 1.02rem; letter-spacing: -.01em; }

/* --- Buttons ----------------------------------------------------------- */
.btn, button.btn, a.btn {
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .005em;
    transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 1px 2px rgba(10,64,59,.18);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent, .btn-warning {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 1px 2px rgba(255,107,74,.28);
}
.btn-accent:hover, .btn-warning:hover { background: #E85434; border-color: #E85434; }
.btn-outline {
    border: 1.5px solid var(--gray-300);
    background: transparent;
    color: var(--primary-dark);
}
.btn-outline:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: var(--primary-tint); }

/* --- Forms ------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="date"], input[type="search"], input[type="url"], select, textarea {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-family: var(--font-body);
    min-height: 44px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14,92,85,.14);
}
label { font-weight: 600; color: var(--gray-700); }

/* --- Address block: the thing customers copy into Indian stores --------- */
.address-block, .address-card {
    background: linear-gradient(180deg, var(--primary-tint), var(--white));
    border: 1px solid rgba(14,92,85,.18);
    border-radius: var(--radius);
}

/* --- Tables ------------------------------------------------------------ */
table thead th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-200);
}
table tbody tr:hover { background: #FBF8F2; }

/* --- Footer ------------------------------------------------------------ */
.portal-footer {
    background: var(--footer-dark);
    color: rgba(247,243,236,.72);
    border-top: none;
}
.portal-footer a { color: #FBF7F2; text-decoration: underline; text-underline-offset: 3px; }
.portal-footer a:hover { color: var(--accent-orange); }

/* --- Login / register cards -------------------------------------------- */
.login-logo { height: 46px; width: auto; }
.login-card, .auth-card {
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.login-legacy-note {
    margin: 10px auto 18px;
    max-width: 34rem;
    padding: 11px 14px;
    background: var(--primary-tint);
    border: 1px solid rgba(14,92,85,.18);
    border-radius: var(--radius-sm);
    color: #245049;
    font-size: .85rem;
    line-height: 1.55;
}

/* "Check your email" panel after signup — deliberately louder than an alert,
   because a one-line notice was being missed and people then failed to log in. */
.verify-panel {
    margin: 4px auto 20px;
    max-width: 34rem;
    padding: 16px 18px;
    text-align: left;
    background: var(--accent-tint);
    border: 1px solid rgba(255,107,74,.32);
    border-left: 4px solid var(--accent-orange);
    border-radius: var(--radius-sm);
}
.verify-panel h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #9A3412;
}
.verify-panel p { margin: 0 0 8px; font-size: .92rem; line-height: 1.55; color: #7C2D12; }
.verify-panel p:last-child { margin-bottom: 0; }
.verify-panel-foot { font-size: .86rem !important; opacity: .9; }
.verify-panel a { color: #9A3412; font-weight: 600; }

/* Brand lockup in the portal nav */
.nav-brand a{display:flex;align-items:center;gap:6px;text-decoration:none}
/* One lockup file with outlined text — see assets/img/logo-lockup.svg. */
.brand-lockup{height:54px;width:auto;display:block}
.login-card .brand-lockup{height:54px}
@media (max-width:520px){ .brand-lockup{height:40px} }

/* The band where the bar is nearly full: five links, a bell and the user
   name. Same tightening site.css applies between its burger breakpoint and
   1120px, shifted to the portal's own breakpoint of 768px. */
/* Burger at 980px, matching site.css, so the two bars change shape at the
   same width. Only the nav rules move -- the rest of the portal's tablet
   layout stays on its own 768px breakpoint, which is about tables and forms,
   not the header. Measured before this: at 800px the portal bar overflowed
   horizontally because five links, a bell and the user name will not fit. */
@media (max-width:980px){
  .portal-nav{flex-wrap:wrap;height:auto;min-height:88px;padding:12px 16px}
  .nav-toggle{display:flex;margin-left:auto}
  /* flex:0 0 100% is what actually moves the links onto their own row.
     The desktop rule sets .nav-links{flex:1}, i.e. flex-basis:0, and a
     zero basis means width:100% is ignored for layout: the open menu
     shrank onto the logo's line instead of wrapping under it, which is
     exactly what it looked like on a phone. */
  .nav-links{display:none;flex:0 0 100%;width:100%;flex-direction:column;order:3;padding-top:8px;margin-left:0}
  .nav-links.open{display:flex}
  .nav-user{display:none;width:100%;order:4;padding-top:8px;border-top:1px solid var(--gray-200);margin-left:0}
  .nav-links.open ~ .nav-user{display:flex}
}

/* The band where the bar is nearly full: five links, a bell and the user
   name. Same range and the same tightening site.css applies. */
@media (min-width:981px) and (max-width:1120px){
  .nav-links{margin-left:12px}
  .portal-nav .nav-links a{padding-left:8px;padding-right:8px;font-size:14.08px}
  .nav-user{gap:8px}
}
.login-brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;margin-bottom:4px}
.login-logo{height:48px;width:48px}

/* ---------- Ship request: medicine switch + service tier choice ----------- */
.ship-medicine{margin:0 0 1rem;padding-bottom:.9rem;border-bottom:1px solid #e6e2da}
.ship-medicine .switch{display:flex;align-items:flex-start;gap:.8rem;cursor:pointer}
.ship-medicine .switch input{position:absolute;opacity:0;width:0;height:0}
.ship-medicine .switch-track{flex:none;width:42px;height:24px;border-radius:999px;background:#d5d0c6;
  position:relative;transition:background .18s ease;margin-top:.1rem}
.ship-medicine .switch-track::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;
  border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:transform .18s ease}
.ship-medicine .switch input:checked + .switch-track{background:#DC3A28}
.ship-medicine .switch input:checked + .switch-track::after{transform:translateX(18px)}
.ship-medicine .switch-label{display:grid;gap:.15rem;line-height:1.45}
.ship-medicine .switch-label strong{font-size:.92rem}
.ship-medicine .switch-label span{font-size:.8rem;color:#6c757d}

/* The UA stylesheet hides [hidden] with display:none, and ANY author rule that
   sets display on the same element beats it -- so `el.hidden = true` silently
   stops working the moment the element is given a display. That is what put
   three service options on the shipping request page: one panel per saved
   address, all of them marked hidden, all of them drawn, because .tier-choice
   is display:grid. Declared once for everything rather than per element; the
   scoped .state-field [hidden] rule above was the same bug patched locally. */
[hidden] { display: none !important; }

/* A confirmation row is a <label>, and .form-group label is written for FIELD
   labels: block, 0.8rem, uppercase, letter-spaced. A sentence inherits all of
   that and comes out shouting. Worse, .form-group input is width:100%, which
   stretches the checkbox across half the row and throws the text far to the
   right -- that is the gap in the shipping request form, not a gap property.
   Scoped under .form-group so it outranks both. */
.form-group .confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    color: var(--gray-700);
    cursor: pointer;
}

.form-group .confirm-row input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #DC3A28;
}

/* What can still be charged later. Quiet, and closed by default: the full list
   runs to nine lines for some destinations, and a wall of charges above the
   submit button reads as a warning rather than as candour. */
.charge-note { margin: 10px 2px 0; font-size: .85rem; color: var(--gray-500); }

/* Chosen-file row under a file input: the name, and a way to take it back
   before the form is submitted. Built by portal.js, so a page with no
   JavaScript simply shows the browser's own file input, unchanged. */
.file-chosen {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 2px 0;
    font-size: .85rem;
    color: var(--gray-500);
}
.file-chosen-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-chosen-remove {
    flex: none;
    padding: 2px 8px;
    border: 1px solid var(--gray-300, #ced4da);
    border-radius: 4px;
    background: transparent;
    color: var(--danger, #dc3545);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
}
.file-chosen-remove:hover,
.file-chosen-remove:focus-visible {
    border-color: var(--danger, #dc3545);
    background: rgba(220, 58, 40, .06);
}
/* Over the limit: say so in red rather than letting the upload fail on submit. */
.file-chosen-over .file-chosen-name { color: var(--danger, #dc3545); font-weight: 600; }

/* ── Setup checklist ───────────────────────────────────────────────────────
   Shown on the dashboard until the ID is verified and an address exists, then
   gone for good. Deliberately a card rather than an alert: an alert says
   "something is wrong", and nothing is wrong — there is simply work worth
   doing now rather than later. */
.setup-card {
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid var(--gray-200, #e9ecef);
    border-left: 4px solid var(--primary, #DC3A28);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.setup-title { margin: 0 0 4px; font-size: 1.05rem; }
.setup-sub { margin: 0 0 16px; font-size: .88rem; color: var(--gray-500, #6c757d); max-width: 62ch; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: 8px;
    background: var(--gray-50, #f8f9fa);
}
.setup-mark {
    flex: none;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary, #DC3A28);
    color: #fff;
    font-size: .8rem; font-weight: 700; line-height: 1;
}
.setup-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.setup-step-title { font-weight: 600; font-size: .94rem; }
.setup-step-desc { font-size: .85rem; color: var(--gray-500, #6c757d); }
.setup-cta { flex: none; align-self: center; white-space: nowrap; }

/* Done: green tick, muted row. Still listed rather than removed, so the
   customer can see what is finished and what is not. */
.setup-step.is-done { background: transparent; border-color: transparent; }
.setup-step.is-done .setup-mark { background: var(--success, #198754); }
.setup-step.is-done .setup-step-title { color: var(--gray-500, #6c757d); font-weight: 500; }

/* Waiting on us, not on them — no button, nothing to click, so do not colour
   it like an outstanding task. */
.setup-step.is-waiting .setup-mark { background: var(--gray-400, #adb5bd); }

@media (max-width: 560px) {
    .setup-step { flex-wrap: wrap; }
    /* 100% plus the 36px indent ran 36px past the box (review #19). */
    .setup-cta { width: calc(100% - 36px); box-sizing: border-box; align-self: flex-start; text-align: center; justify-content: center; margin-left: 36px; }
}

/* Drop zone. A <label for> the file input, so clicking it opens the picker
   with no JavaScript and the keyboard path is the input's own. */
.file-drop,
.form-group .file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 22px 16px;
    border: 1.5px dashed var(--gray-300, #ced4da);
    border-radius: 8px;
    background: var(--gray-50, #f8f9fa);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    /* This label is a control, not a field label: none of the uppercase,
       letter-spaced .form-group label treatment applies to it. */
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}
.form-group .file-drop:hover,
.file-drop:hover { border-color: var(--primary, #DC3A28); background: #fff; }
.form-group .file-drop.is-over,
.file-drop.is-over {
    border-color: var(--primary, #DC3A28);
    border-style: solid;
    background: rgba(220, 58, 40, .05);
}
.form-group .file-drop.is-focus,
.file-drop.is-focus { border-color: var(--primary, #DC3A28); box-shadow: 0 0 0 3px rgba(220, 58, 40, .15); }
.file-drop-main { font-size: .92rem; color: var(--gray-700, #495057); }
.file-drop-main u { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.file-drop-hint { font-size: .75rem; color: var(--gray-500, #6c757d); letter-spacing: .04em; }

/* The real input stays in the tab order and in the accessibility tree; it is
   only taken off the screen. display:none would remove it from both. */
.file-input-clipped {
    position: absolute;
    /* !important: the form rules that make every input full width (one more
       class in the selector) were winning, and a 1366px-wide invisible input
       pushed My Profile sideways on phones and laptops (review #4). */
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.charge-note > summary { cursor: pointer; color: var(--gray-700); font-weight: 600; }
.charge-note ul { margin: 8px 0 0; padding-left: 18px; }
.charge-note li { margin-bottom: 5px; line-height: 1.45; }
.charge-note li strong { color: var(--gray-700); font-weight: 600; }

.tier-choice{display:grid;gap:.6rem;margin-bottom:.4rem}
.tier-opt{display:flex;align-items:flex-start;gap:.7rem;border:1px solid #e0dbd2;border-radius:10px;
  padding:.8rem .9rem;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease;background:#fff}
.tier-opt:hover{border-color:#c9c2b6}
.tier-opt input{margin-top:.25rem;flex:none}
.tier-opt:has(input:checked){border-color:#DC3A28;box-shadow:0 0 0 2px rgba(255,107,74,.13)}
.tier-opt-body{display:grid;gap:.2rem;flex:1;min-width:0}
.tier-opt-top{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem}
.tier-opt-top strong{font-size:.98rem}
.tier-opt-price{font-size:1.12rem;font-weight:700;color:#DC3A28;white-space:nowrap}
.tier-opt-blurb{font-size:.82rem;color:#6c757d;line-height:1.45}
.tier-opt-meta{font-size:.76rem;color:#8a8580}
.tier-opt-cos{display:block;margin-top:.3rem;font-size:.76rem;font-weight:600;color:#9a5b12}
.tier-note,.tier-none{font-size:.82rem;color:#6c757d;margin:.2rem 0 0;line-height:1.5}

/* The tier cards live inside a .form-group, and .form-group label is written
   for FIELD labels: display:block, 0.8rem, uppercase, letter-spaced, with a
   margin under it. A card IS a <label>, so it inherited the lot -- which is
   why PREMIUM and 4-6 BUSINESS DAYS FROM DISPATCH were shouting, and why
   display:block beat .tier-opt's flex.

   Worse, .form-group input is width:100%. A radio stretched to the full width
   of the card renders its dot in the middle of that width -- the floating
   bullet marooned at the top centre of every card.

   This is the identical trap already written up for .confirm-row a few hundred
   lines below; nobody carried the lesson across to the cards. Scoped under
   .form-group so it outranks, same as that fix.

   text-transform and letter-spacing are reset on the card rather than on each
   child, because both inherit and the children are spans, not labels. */
.form-group .tier-opt{display:flex;text-transform:none;letter-spacing:normal;
  font-size:1rem;font-weight:400;color:inherit;margin-bottom:0}
.form-group .tier-opt input{width:auto;margin-top:.25rem;flex:none}
.form-group .tier-opt-top strong{font-size:.98rem;font-weight:600;color:var(--gray-900,#22262C)}
.form-group .tier-opt-price{font-size:1.12rem;font-weight:700;color:#DC3A28}
.form-group .tier-opt-blurb{font-size:.82rem;font-weight:400;color:#6c757d}
.form-group .tier-opt-meta{font-size:.76rem;font-weight:400;color:#8a8580}
.form-group .tier-note,.form-group .tier-none{font-size:.82rem;font-weight:400;
  text-transform:none;letter-spacing:normal;color:#6c757d}

/* Storage expiry: a red number is easy to miss, and the terms permit disposal. */
.pc-storage-alert{margin:.9rem 0 0;padding:.8rem 1rem;border-radius:9px;font-size:.86rem;line-height:1.55;
  background:#FFF6E8;border:1px solid #F3D9A8;color:#7a5410}
.pc-storage-alert a{color:#7a5410;text-decoration:underline}
.pc-storage-alert-late{background:#FDECEA;border-color:#F3B9B2;color:#8a2a1c}
.pc-storage-alert-late a{color:#8a2a1c}
.deadline-expired{color:#c0392b;font-weight:600}

/* A tier that exists for this destination but not at this weight. */
.tier-opt-off{opacity:.6;background:#faf8f4;border-style:dashed;cursor:not-allowed}
.tier-opt-off input{cursor:not-allowed}
.tier-opt-off .tier-opt-top strong{color:#8a8580}
.tier-opt-off-tag{font-size:.72rem;font-weight:600;background:#8a8172;color:#fff;
  padding:.18rem .5rem;border-radius:5px;white-space:nowrap}


/* ===== Shipping calculator =================================================
   The estimate page reuses the public calculator's markup, so it needs the
   same component rules. They live in site.css under the marketing token
   names; these are the same rules remapped onto the portal's variables, so
   one form renders identically on both sides of the login.
   ========================================================================= */
/* Calculator */
.calc { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
/* One field per row on a phone, as on the public calculator (review #25). */
@media (max-width: 640px) { .calc-grid { grid-template-columns: minmax(0,1fr); } }
.field label { display: block; font-size: .87rem; font-weight: 700; color: var(--gray-500); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); color: var(--primary-dark);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(220,58,40,.14); }
.calc-result { margin-top: 1.2rem; padding: 1.2rem; border-radius: var(--radius-sm); background: var(--primary-tint); border: 1px solid rgba(220,58,40,.18); }
.calc-result .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary-dark); line-height: 1.1; }
.calc-result .sub { font-size: .9rem; color: #3F6B65; }
/* ---------- Calculator: service tiers, medicine switch, disclosures ------- */

.calc-switch {margin-top:1.2rem;padding-top:1.1rem;border-top:1px solid var(--line,#e6ddcd)}
.switch {display:flex;align-items:flex-start;gap:.85rem;cursor:pointer}
.switch input {position:absolute;opacity:0;width:0;height:0}
.switch-track {flex:none;width:44px;height:25px;border-radius:999px;background:#d8d0c2;position:relative;
  transition:background .18s ease;margin-top:.15rem}
.switch-track::after {content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:transform .18s ease}
.switch input:checked + .switch-track {background:var(--coral,#DC3A28)}
.switch input:checked + .switch-track::after {transform:translateX(19px)}
.switch input:focus-visible + .switch-track {outline:2px solid var(--teal,#DC3A28);outline-offset:2px}
.switch-label {display:grid;gap:.2rem;line-height:1.45}
.switch-label strong {font-size:.95rem;color:var(--teal-deep,#22262C)}
.switch-label span {font-size:.83rem;color:var(--muted,#6b7d79)}
.calc-weight {margin:0 0 1.1rem;font-size:.95rem;color:var(--teal-deep,#22262C)}
.calc-hint-inline {color:var(--muted,#6b7d79);font-weight:400}
.calc-note-med {background:#FFF3EF;border:1px solid #FFD5C9;border-radius:10px;padding:.85rem 1rem;
  font-size:.88rem;color:#8a3a24;margin-bottom:1.1rem}
.tier-grid {display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.tier-grid-one {grid-template-columns:minmax(240px,340px)}
.tier {background:#fff;border:1px solid var(--line,#e6ddcd);border-radius:14px;padding:1.15rem 1.2rem;position:relative}
.tier-premium {border-color:var(--coral,#DC3A28);box-shadow:0 2px 14px rgba(220,58,40,.10)}
.tier-head {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.35rem}
.tier-head h3 {margin:0;font-size:1.08rem;color:var(--teal-deep,#22262C)}
.tier-tag {font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  background:var(--teal,#DC3A28);color:#fff;padding:.2rem .5rem;border-radius:5px}
.tier-tag-fast {background:var(--coral,#DC3A28)}
.tier-switch-transit{display:block;font-size:.8rem;color:var(--muted,#6b7d79);margin:.15rem 0 .3rem}
.tier-blurb {margin:0 0 .85rem;font-size:.85rem;color:var(--muted,#6b7d79);line-height:1.5}
/* Transit time on a tier card. Sits between what the service is and what it
   costs, because that is the trade the customer is actually making. */
.tier-transit{margin:-.45rem 0 .85rem;font-size:.82rem;font-weight:600;color:var(--ink,#1B1F24);display:flex;align-items:center;gap:.35rem}
.tier-transit span{font-size:.9em;filter:grayscale(1);opacity:.75}
.tier-cosmetics{margin:.35rem 0 0;font-size:.78rem;color:var(--muted,#6b7d79);line-height:1.45}

.tier-price {margin:0;font-size:1.9rem;font-weight:700;color:var(--teal,#DC3A28);line-height:1.1;
  font-family:var(--display,inherit)}
.tier-price .rupee {font-size:1.15rem;font-weight:600;margin-right:.12rem}
.tier-approx {margin:.2rem 0 0;font-size:.82rem;color:var(--muted,#6b7d79)}
.tier-billed {margin:.55rem 0 0;font-size:.8rem;color:var(--muted,#6b7d79)}
.tier-surcharges {list-style:none;margin:.8rem 0 0;padding:.7rem 0 0;border-top:1px dashed var(--line,#e6ddcd);
  font-size:.8rem;color:var(--muted,#6b7d79)}
.tier-surcharges li {display:flex;justify-content:space-between;gap:.6rem;padding:.15rem 0}
.tier-surcharges li span {opacity:.75;text-align:right}
.calc-disclose {margin-top:1.5rem;padding-top:1.2rem;border-top:1px solid var(--line,#e6ddcd)}
.calc-disclose h4 {margin:0 0 .35rem;font-size:.95rem;color:var(--teal-deep,#22262C)}
.calc-disclose > p {margin:0 0 .9rem;font-size:.84rem;color:var(--muted,#6b7d79);line-height:1.55}
.calc-disclose dl {margin:0;display:grid;gap:.65rem}
.calc-disclose dt {font-size:.86rem;font-weight:600;color:var(--teal-deep,#22262C)}
.calc-disclose dd {margin:.1rem 0 0;font-size:.82rem;color:var(--muted,#6b7d79);line-height:1.55}
/* A tier that exists here but not at this weight: visible, explained, inert. */
.tier-off {opacity:.62;background:#faf7f1;border-style:dashed;cursor:not-allowed}
.tier-off h3 {color:var(--muted,#6b7d79)}
.tier-tag-off {background:#8a8172;font-weight:600;letter-spacing:.03em;text-transform:none;font-size:.7rem}
.tier-off-note {margin:.7rem 0 0;font-size:.82rem;color:var(--muted,#6b7d79);line-height:1.5;
  padding-top:.7rem;border-top:1px dashed var(--line,#e6ddcd)}
.calc-foot { font-size: .86rem; color: var(--gray-500); margin: 1rem 0 0; }
.page-lede { color: var(--gray-500); margin: -6px 0 18px; max-width: 70ch; }

/* --- In-app policies, prohibited items and support ----------------------- */
/* These pages render the same words the public site publishes; only the
   chrome differs. See policies.php and prohibited.php. */

.policy-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.policy-tabs a { padding: .55rem .8rem; border-radius: 999px; font-size: 15.2px;
  font-weight: 600; color: var(--gray-700); text-decoration: none;
  transition: background .16s ease, color .16s ease; }
.policy-tabs a:hover { background: var(--primary-tint); color: var(--primary-dark); }
.policy-tabs a.active { background: var(--primary-blue); color: var(--white); }

.policy-updated { color: var(--gray-500); font-size: .88rem; margin: 0 0 20px; }
.policy-doc h2.policy-title { font-size: 1.25rem; margin: 0 0 6px; }
/* The document bodies use <h2> for their own sections (7-11 of them each).
   Inside the card those sit under the document title, so they are stepped
   down visually while staying <h2> in the markup, exactly as published. */
.policy-doc h2 { font-size: 1rem; margin: 22px 0 6px; color: var(--primary-dark); }
.policy-doc h3 { font-size: .95rem; margin: 18px 0 6px; color: var(--primary-dark); }
.policy-doc p, .policy-doc li { color: var(--gray-700); font-size: .92rem; line-height: 1.75; }
.policy-doc ul, .policy-doc ol { padding-left: 20px; margin: 0 0 14px; }
.policy-doc > *:first-child { margin-top: 0; }

.restrict-list { margin: 0; padding-left: 20px; line-height: 1.85; color: var(--gray-700); font-size: .92rem; }
.restrict-list li { margin-bottom: 2px; }
.restrict-no li::marker { color: var(--danger); }
.restrict-maybe li::marker { color: var(--warning); }

.restrict-countries { display: flex; flex-wrap: wrap; gap: .4rem; }
.restrict-countries a { padding: .45rem .75rem; border-radius: 999px; font-size: .88rem;
  font-weight: 600; text-decoration: none; color: var(--gray-700);
  background: var(--bg-light); border: 1px solid var(--gray-200);
  transition: background .16s ease, color .16s ease, border-color .16s ease; }
.restrict-countries a:hover { background: var(--primary-tint); color: var(--primary-dark);
  border-color: var(--primary-tint); }

/* --- Promo code on a quoted request -------------------------------------- */
.promo-box { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--gray-300);
  border-radius: var(--radius); background: var(--bg-light); }
.promo-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.promo-row { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-row input { flex: 1 1 200px; min-width: 0; }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.promo-applied small { color: var(--success); font-weight: 600; }
.promo-code-chip { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-blue); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; }
.promo-was { color: var(--gray-500); font-weight: 400; text-decoration: line-through; font-size: .8rem; }

/* ===== Dashboard two-column layout =====
   The address card and the checkout guide are reference material: a customer
   reads them properly once, copies the address, and after that only glances at
   them. Parcels and activity are what changes between visits, so they get the
   wide column and the top of the page.

   minmax(0, 1fr) rather than 1fr on the main column: a grid track's default
   minimum is its content, so one wide table in Recent Parcels would push the
   column past its share and squeeze the sidebar instead of scrolling itself. */
/* Four cards across, stated rather than left to auto-fit.
   The shared rule's minmax(220px, 1fr) decides the count from whatever width
   is going, and the dashboard column -- full width minus a 360px sidebar --
   lands close enough to the boundary that the same page is 4-up on one laptop
   and 2x2 on the next. Fixed counts instead, with the breakpoints scoped to
   .dash-main so they beat the generic .stats-grid rules further down the file
   (which are less specific and would otherwise never apply here). */
.dash-main .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
    .dash-main .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    /* Two per row on phones too: one per row made four short numbers take a
       whole screen. Slightly tighter boxes so the labels still fit. */
    .dash-main .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dash-main .stat-card { padding: 18px 10px; }
}

/* Dashboard: the action cards sit at the top of the main column, level with
   the address card. Three across where the column is wide enough; stacked as
   compact rows on narrower laptops, where three would be squeezed. */
.dash-main .action-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1239px) and (min-width: 1025px) {
    .dash-main .action-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .dash-main .action-card { padding: 14px 16px; align-items: center; }
}
@media (max-width: 1024px) {
    .dash-main .action-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

/* The sidebar follows the page rather than floating with it. Sticky would keep
   the address in view while scrolling parcels, which sounds helpful until the
   card is taller than the viewport and the bottom of it becomes unreachable. */
.dash-side > .va-card:last-child,
.dash-side > .card:last-child { margin-bottom: 0; }

/* The checkout guide is a two-column table in a 360px column, which is too
   narrow for it. Stacked label-above-value instead: same content, same source,
   no horizontal scrollbar inside a sidebar. */
.dash-side .table-wrapper table,
.dash-side .table-wrapper tbody,
.dash-side .table-wrapper tr,
.dash-side .table-wrapper td { display: block; width: 100%; }
.dash-side .table-wrapper thead { display: none; }
.dash-side .table-wrapper tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.dash-side .table-wrapper tr:last-child { border-bottom: none; }
.dash-side .table-wrapper td { border: none; padding: 0; }
.dash-side .table-wrapper td:first-child {
    color: var(--gray-500);
    font-size: .82rem;
    margin-bottom: 2px;
}
.dash-side .table-wrapper td:last-child { font-size: .95rem; }

.dash-empty { border-left: 3px solid var(--accent-orange); }

/* One column under 1024px. The main column leads, because parcels and activity
   are the reason to open the page -- except for a customer who has never had a
   parcel, whose main column is empty and for whom the address IS the page. */
@media (max-width: 1024px) {
    /* minmax(0, ...) here too, and for the same reason as the desktop rule: a
       plain 1fr has a min-content minimum, so the stat cards' 220px columns and
       the four-column parcels table stretch the track and the whole PAGE
       scrolls sideways instead of each scrolling inside its own box. */
    .dash-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .dash-grid-new .dash-main { order: 2; }
    .dash-grid-new .dash-side { order: 1; }
    /* The table goes back to being a table once it has the full width. */
    .dash-side .table-wrapper table { display: table; }
    .dash-side .table-wrapper thead { display: table-header-group; }
    .dash-side .table-wrapper tbody { display: table-row-group; }
    .dash-side .table-wrapper tr { display: table-row; padding: 0; border-bottom: none; }
    .dash-side .table-wrapper td { display: table-cell; padding: 12px 16px; }
    .dash-side .table-wrapper td:first-child { font-size: inherit; margin-bottom: 0; color: inherit; }
}

/* The checkout guide, collapsed. Open for a customer who has never had a
   parcel -- for them it is the instruction that makes the service work -- and
   shut for everybody else, who read it once and copied the address. */
.dash-howto > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dash-howto > summary::-webkit-details-marker { display: none; }
.dash-howto > summary::after {
    content: '\25BE';
    color: var(--gray-500);
    font-size: .8rem;
    transition: transform var(--transition);
}
.dash-howto[open] > summary::after { transform: rotate(180deg); }
.dash-howto > summary h3 { margin: 0; }
.dash-howto:not([open]) > summary { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }


/* Show/hide password toggle (replaces the confirm-password field on signup) */
.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { flex: 1; padding-right: 4.5rem; }
.password-toggle {
    position: absolute; right: .5rem;
    background: none; border: 0; padding: .35rem .5rem;
    font: inherit; font-size: 12px; font-weight: 700;
    color: #6E7480; cursor: pointer;
}
.password-toggle:hover { color: #DC3A28; }
.password-toggle:focus-visible { outline: 2px solid #DC3A28; outline-offset: 2px; border-radius: 4px; }

/* Clickable table rows (dashboard → parcels). The row carries the click for
   the pointer, but every row still contains a real <a>: that is what keeps
   middle-click, cmd-click, the keyboard and a screen reader working. Styling
   only signals the affordance. */
tr.row-link { cursor: pointer; }
tr.row-link:hover { background: #FBF8F2; }
tr.row-link:focus-within { outline: 2px solid var(--primary-blue); outline-offset: -2px; }

/* The dashboard counters are links now: each one opens the parcels it counted.
   .stat-card already carries the lift on hover, so this only has to stop the
   anchor looking like body text and make the keyboard focus visible. */
a.stat-card { display: block; text-decoration: none; color: inherit; }
a.stat-card:hover { text-decoration: none; }
a.stat-card:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }

/* Visually hidden, still read aloud — the tracking box labels its input
   without printing a label beside a field whose placeholder already says it. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Changing service before paying. Quiet: it is an option, not a prompt --
   the customer already chose once and most will not want to choose again. */
.tier-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed var(--gray-300, #d1d5db);
    border-radius: 10px;
    background: var(--gray-50, #f9fafb);
}

.tier-switch strong { display: block; font-size: .92rem; color: var(--gray-900, #22262c); }
.tier-switch span   { font-size: .85rem; color: var(--gray-500, #6b7280); }
.tier-switch form   { margin: 0; flex: 0 0 auto; }

/* One line of explanation under a form field. Matches .tier-note's size and
   colour so the portal keeps one voice for secondary text. */
.field-hint{margin:.35rem 0 0;font-size:.82rem;color:#6c757d;line-height:1.5}

/* === Floating WhatsApp button ========================================== */
/* The same rule as in site.css -- the public site and the portal load one
   stylesheet each and neither loads the other, so it lives in both. Change
   both. z-index 90 keeps it under the portal's overlays (1000) so a modal
   always covers it, and over ordinary page content. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .42);
  transition: transform .25s ease, box-shadow .25s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .55);
}

.wa-float:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover,
  .wa-float:focus-visible { transform: none; }
}

@media print { .wa-float { display: none; } }

/* === Medicine: check the destination before ordering ==================== */
/* Shown when the medicine switch is on. Two mechanisms on purpose: portal.js
   toggles the hidden attribute, and the :has() rule does the same job with no
   JavaScript at all. A customer who ships a medicine the destination refuses
   loses the medicine, the postage and the time -- this is not a message that
   should depend on a script having loaded. */
.med-check {
  display: none;
  margin: .8rem 0 0;
  padding: .75rem .9rem;
  border-left: 3px solid #e0a800;
  border-radius: 0 6px 6px 0;
  background: #fffdf5;
  color: #6b5a1f;
  font-size: .88rem;
  line-height: 1.5;
}

.med-check strong { color: #5a4a12; }
.med-check a { color: #b3651d; text-decoration: underline; }

/* Hidden by default, revealed two independent ways.
   :has() needs no JavaScript at all. .is-on is what portal.js toggles, and
   covers a browser too old for :has(). Both out-specify the rule above, so
   whichever fires wins; with neither, the note simply does not appear, which
   is where this page was yesterday rather than something broken. */
.ship-medicine:has(#shipMedicine:checked) .med-check,
.calc-switch:has(#calcMedicine:checked) .med-check,
.med-check.is-on { display: block; }

/* === Parcel photo viewer =============================================== */
/* Opened by portal.js when a thumbnail is clicked. Hidden by a class rather
   than the hidden attribute -- [hidden] is display:none !important in the
   browser's own stylesheet and cannot be overridden from here. */
.pv {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;                 /* over the portal's own overlays (1000) */
  background: rgba(20, 22, 26, .92);
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 4px;
}

.pv.is-open { display: flex; }

/* Stops the page behind scrolling under the viewer on a phone. */
body.pv-lock { overflow: hidden; }

.pv-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pv-img {
  max-width: 100%;
  /* Room for the caption and a comfortable thumb gap underneath. */
  max-height: calc(100vh - 128px);
  object-fit: contain;
  border-radius: 8px;
  background: #0d0f12;
  /* The photo is the thing being examined -- taps on it must not dismiss. */
  touch-action: pan-y;
}

.pv-cap {
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  letter-spacing: .3px;
  min-height: 1em;
}

.pv-close,
.pv-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background .15s ease, opacity .15s ease;
}

.pv-close:hover,
.pv-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }

.pv-close:focus-visible,
.pv-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.pv-close {
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  font-size: 1.6rem;
}

.pv-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  font-size: 1.8rem;
}

.pv-prev { left: 14px; }
.pv-next { right: 14px; }

/* Kept in place rather than removed at the ends, so the controls do not jump
   about as you move through a set. */
.pv-nav:disabled { opacity: .28; cursor: default; }

@media (max-width: 640px) {
  /* The bottom padding reserves the strip the arrows sit in, so the photo
     centres in what is left rather than in the whole screen and then gets
     nudged by a caption margin. Padding on the flex container is part of the
     centring; padding on the caption fights it. */
  .pv { padding: 8px 8px 84px; }
  .pv-img { max-height: calc(100vh - 150px); }
  /* Thumb-reachable on a phone, and clear of the photo. */
  .pv-nav { top: auto; bottom: 16px; transform: none; width: 52px; height: 52px; }
  .pv-prev { left: 20px; }
  .pv-next { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-close, .pv-nav { transition: none; }
}

/* === "View as customer" bar ============================================= */
/* Staff-only chrome. Deliberately not in the product's palette -- a dark
   system bar cannot be mistaken for something a customer is being shown, and
   it stays on screen while scrolling, which is when you would otherwise
   forget whose account you are in. Its height is fixed so the sticky nav can
   be offset by exactly that much. */
:root { --va-h: 40px; }

.view-as-bar {
    position: sticky;
    top: 0;
    z-index: 1300;
    height: var(--va-h);
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 16px;
    background: #22262C;
    color: #fff;
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.view-as-bar strong { font-weight: 600; }
.view-as-bar .va-sep { opacity: .4; }
.view-as-bar .va-suite { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .85; }
.view-as-bar .va-ro { opacity: .7; }

.view-as-bar .va-dot {
    width: 8px; height: 8px; flex: 0 0 8px;
    border-radius: 50%;
    background: #DC3A28;
    box-shadow: 0 0 0 0 rgba(220, 58, 40, .7);
    animation: vaPulse 2s infinite;
}

@keyframes vaPulse {
    70%  { box-shadow: 0 0 0 7px rgba(220, 58, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 58, 40, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .view-as-bar .va-dot { animation: none; }
}

.view-as-bar .va-exit {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .28rem .8rem;
}

.view-as-bar .va-exit:hover { background: #fff; color: #22262C; }

/* The nav sticks below the bar rather than under it. */
.is-view-as .portal-nav { top: var(--va-h); }

@media (max-width: 720px) {
    /* The read-only wording is the first thing to go; the name, the suite
       code and the way out all stay. */
    .view-as-bar .va-ro { display: none; }
}

/* A box that has arrived is a different kind of good news from one that has
   left, so it does not share the "shipped" green. */
.stat-card.delivered { border-top-color: #1E7F5C; }

/* A pill, not an underlined word. It sits next to a status badge in a narrow
   cell, so it has to read as the thing you press without shouting louder than
   the status itself -- outlined rather than filled. */
.btn-track {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-left: .45rem;
    padding: .22rem .62rem;
    border: 1px solid var(--gray-300, #d8d2c8);
    border-radius: 999px;
    background: var(--white, #fff);
    color: var(--gray-700, #4a4f58);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.btn-track svg { flex: 0 0 auto; }

.btn-track:hover,
.btn-track:focus-visible {
    border-color: var(--brand, #DC3A28);
    color: var(--brand, #DC3A28);
    background: var(--primary-tint, #fdeceb);
}

@media (max-width: 600px) {
    /* The cell gets tight; drop it under the badge rather than squeezing both. */
    .btn-track { margin-left: 0; margin-top: .4rem; }
}

/* ===== Weigh-in narrative (request-view Price card) =====================
   The estimate is parcels weighed loose on arrival; the quote is the packed
   box. These rules carry that story: a sub-line under each weight, the old
   estimate demoted once the real number exists, and a note that names the
   movement in both directions.

   Declared here, past the .card/.panel/.stat-card surface reset above, so the
   3px top borders survive it -- that reset's `border` shorthand is exactly
   what silently flattened .stat-card.accent. */
.stat-card.weight-final { border-top: 3px solid var(--success, #1E7F5C); }
.stat-card.accent       { border-top: 3px solid var(--primary-blue); }
.stat-card.weight-prior .stat-value { color: var(--gray-400, #A39889); }

.stat-sub {
    display: block;
    margin-top: 3px;
    font-size: .74rem;
    font-weight: 400;
    color: var(--gray-400, #A39889);
    letter-spacing: .01em;
}

.weight-note {
    margin: -6px 0 20px;
    padding: 15px 17px;
    border-radius: var(--radius);
    background: var(--cream, #FBF7F2);
    border: 1px solid var(--gray-200);
    font-size: .9rem;
    line-height: 1.6;
    color: var(--gray-600, #534B43);
}
.weight-note p        { margin: 0; }
.weight-note p + p    { margin-top: 8px; }
.weight-note strong   { color: var(--primary-dark); font-weight: 600; }

.wn-head {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}
.wn-head strong { font-size: .97rem; }

.wn-delta {
    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.wn-delta.up   { background: #FDEDEA; color: #B4301F; border: 1px solid #F6D3CC; }
.wn-delta.down { background: #E8F5EF; color: #166B4C; border: 1px solid #CBE8DB; }

.wn-billed {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--gray-200);
    font-size: .84rem;
    color: var(--gray-500);
}
.wn-billed b { color: var(--primary-dark); font-weight: 600; }

/* ===== Documents the destination wants (migration 055) ===================
   Not KYC. KYC says who is sending, once, for Indian customs; these say who
   is receiving, per shipment, for the destination's. The customer should
   never have to work that out, so the card says it in words and these rules
   only carry the states. */
.doc-req {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 18px;
    background: var(--cream, #FBF7F2);
    margin-bottom: 12px;
}
.doc-req.is-review { background: #FFFDF4; border-color: #EFE2B8; }
.doc-req.is-done   { background: #F3F8F5; border-color: #D6E8DE; }

.doc-top  { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.doc-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem;
            color: var(--primary-dark); margin: 0; }
.doc-why  { margin: 7px 0 0; font-size: .9rem; line-height: 1.55; color: var(--gray-600, #534B43); }
.doc-meta { margin-top: 9px; font-size: .78rem; color: var(--gray-400, #A39889); }

.doc-up {
    margin-top: 13px; padding-top: 13px;
    border-top: 1px dashed var(--gray-200);
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.doc-up input[type="file"] { flex: 1 1 240px; min-width: 0; font-size: .86rem; }

.doc-have   { margin-top: 11px; font-size: .88rem; color: var(--gray-600, #534B43); }
.doc-have a { color: var(--primary-blue); font-weight: 600; }

/* The standing box under the KYC form on the profile page. Quiet by default;
   it is the same element that carries a live request, because the customer's
   instinct is to look for documents where they uploaded the last one. */
.extra-doc {
    margin-top: 20px;
    border-radius: var(--radius);
    padding: 16px 18px;
    background: var(--cream, #FBF7F2);
    border: 1px solid var(--gray-200);
    font-size: .9rem; line-height: 1.6; color: var(--gray-600, #534B43);
}
.extra-doc h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700;
                color: var(--primary-dark); margin: 0 0 7px; }
.extra-doc p  { margin: 0; }
.extra-doc p + p { margin-top: 8px; }
.extra-doc.is-open { background: #FFF8E8; border-color: #EBD9A8; }

.ed-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.ed-item { background: var(--white); border: 1px solid #EBD9A8; border-radius: 9px;
           padding: 12px 14px; margin-top: 11px; }
.ed-name { font-family: var(--font-display); font-weight: 700; color: var(--primary-dark); font-size: .95rem; }
.ed-for  { font-size: .8rem; color: var(--gray-400, #A39889); margin-top: 2px; }
.ed-why  { margin-top: 7px; font-size: .87rem; color: var(--gray-600, #534B43); }
.ed-act  { margin-top: 11px; }
.ed-foot { color: var(--gray-400, #A39889); font-size: .85rem; margin-top: 12px; }

/* ---------- Shipping preferences (shipping-preferences.php, ship-request) ----
   Rows reuse the medicine switch (.ship-medicine) so there is one switch look.
   .pref-row undoes the .form-group label styling (uppercase, small, block)
   that the switch label would otherwise inherit on the ship-request form. */
.pref-row{margin:0;padding:.85rem 0;border-bottom:1px solid #e6e2da}
.pref-row:last-child{border-bottom:none}
.pref-row .switch{text-transform:none;letter-spacing:normal;font-size:inherit;font-weight:400;color:inherit;margin:0}
.pref-group{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--gray-500);margin:18px 0 2px}
.pref-intro{margin:0 0 6px;color:var(--gray-500);font-size:.9rem}
.pref-group-note{margin:2px 0 6px;font-size:.82rem;font-style:italic;color:var(--gray-500)}
.pref-lead{margin:8px 0 4px;font-size:.92rem}
.pref-actions{margin:16px 0 0}
.pref-block-title{display:block;font-size:.8rem;font-weight:600;color:var(--gray-700);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.pref-block-sub{margin:0 0 4px;font-size:.85rem;color:var(--gray-500)}

/* Saved addresses: phone numbers under the recipient's name. */
.addr-phone{display:block;font-size:.85rem;color:var(--gray-700);margin-top:3px;white-space:nowrap}
.addr-phone small{color:var(--gray-500);font-size:.75rem;margin-right:4px}

/* KYC: "Why do we need this?" button and its popup (profile.php). */
.kyc-why-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--gray-300);border-radius:999px;
  background:#fff;font:600 .82rem var(--font-body);color:var(--primary-blue);cursor:pointer}
.kyc-why-btn:hover{border-color:var(--primary-blue)}
/* margin:auto puts back the browser's centring, which the * { margin:0 } reset removes. */
.kyc-dialog{margin:auto;border:none;border-radius:14px;max-width:480px;width:calc(100% - 32px);padding:24px 24px 20px;box-shadow:0 20px 50px rgba(0,0,0,.25);color:var(--primary-dark)}
.kyc-dialog::backdrop{background:rgba(34,38,44,.45)}
.kyc-dialog h3{margin:0 0 4px;font-size:1.15rem}
.kyc-dialog-sub{margin:0 0 14px;color:var(--gray-500);font-size:.88rem}
.kyc-points{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.kyc-points li{display:flex;gap:12px;align-items:flex-start;font-size:.9rem;line-height:1.5;color:var(--gray-500)}
.kyc-points strong{display:block;font-size:.92rem;color:var(--primary-dark)}
.kyc-ico{flex:none;width:34px;height:34px;border-radius:9px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:17px}
.kyc-dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 0}
.kyc-dialog-foot a{font-size:.85rem}
/* Estimated weight: "Check how" under the card, and the scale vs box-size popup */
.wv-how{display:inline-block;margin-top:6px;padding:0;border:0;background:none;font:600 .8rem var(--font-body);color:var(--primary-blue);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.wv-how:hover{text-decoration-thickness:2px}
.wv-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.wv-box{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--gray-200);border-radius:10px;text-align:left}
.wv-box.is-counted{border-color:var(--primary-blue);background:var(--primary-tint)}
.wv-k{font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--gray-500)}
.wv-v{font:700 1.3rem var(--font-display);color:var(--primary-dark)}
.wv-s{font-size:.78rem;color:var(--gray-500)}
.wv-flag{align-self:flex-start;margin-top:6px;padding:2px 8px;border-radius:999px;background:var(--primary-blue);color:#fff;font-size:.7rem;font-weight:700}
.wv-parcels{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.wv-parcels li{display:flex;flex-direction:column;gap:1px;padding:10px 12px;border-radius:9px;background:var(--gray-100);font-size:.84rem;color:var(--gray-500)}
.wv-parcels strong{color:var(--primary-dark);font-size:.88rem}
.wv-parcels em{font-style:normal;font-weight:600;color:var(--primary-dark)}
.wv-good{margin:0;font-size:.88rem;line-height:1.5;color:var(--gray-500)}
.wv-good strong{color:var(--primary-dark)}
.wv-foot{justify-content:flex-end}
@media (max-width:420px){.wv-compare{grid-template-columns:1fr}}

/* ===== Buy for Me, wallet, invite friends ===== */
.muted{color:var(--gray-500)}
.btn-link{background:none;border:0;padding:0;font:inherit;font-size:.86rem;color:var(--primary-blue);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.feature-hero{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;align-items:center}
.feature-hero-sm{grid-template-columns:140px minmax(0,1fr);padding-top:14px;padding-bottom:14px}
.feature-hero-img{width:100%;height:auto;display:block}
.feature-hero-title{font-size:1.25rem;line-height:1.3;margin:0 0 8px;color:var(--primary-dark)}
.feature-hero p{margin:0 0 10px;line-height:1.6;color:var(--gray-700)}
.feature-hero-fine{font-size:.84rem;line-height:1.55;color:var(--gray-500)!important;margin-top:8px}
.feature-steps{display:flex;gap:10px;flex-wrap:wrap;list-style:none;counter-reset:fs;margin:12px 0}
.feature-steps li{counter-increment:fs;flex:1 1 150px;background:var(--gray-100);border-radius:var(--radius-sm);padding:10px 12px 10px 40px;position:relative;font-size:.88rem;line-height:1.45}
.feature-steps li::before{content:counter(fs);position:absolute;left:12px;top:10px;width:20px;height:20px;border-radius:50%;background:var(--primary-blue);color:#fff;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.feature-steps-wide li{flex-basis:200px}
@media (max-width:640px){.feature-hero,.feature-hero-sm{grid-template-columns:1fr}.feature-hero-img{max-width:180px;margin:0 auto}}

.bfm-store{display:inline-block;font-size:.72rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--gray-500);margin-right:6px}
.bfm-items td{vertical-align:top}
.bfm-row-actions{white-space:nowrap}
.bfm-edit{display:inline-block;margin-right:6px}
.bfm-edit summary{list-style:none;display:inline-block}
.bfm-edit summary::-webkit-details-marker{display:none}
.bfm-edit[open]{display:block;margin-bottom:8px}
/* Edit an item: a full-width row under it, built from the same .form-group /
   .form-grid pieces as "Add another item". Sticky on the left so it stays in
   view when the table scrolls sideways on a phone. */
.bfm-edit-row>td{padding:0 0 14px;border-bottom:1px solid var(--gray-200)}
.bfm-edit-form{position:sticky;left:0;max-width:min(680px,calc(100vw - 96px));padding:16px;background:var(--gray-100);border-radius:var(--radius-sm);white-space:normal}
.bfm-edit-form .form-group{margin-bottom:12px}
.bfm-edit-form .form-grid{gap:0 14px}
.bfm-edit-title{margin:0 0 12px;font-size:.95rem}
.bfm-edit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
/* A store's delivery charge, under its last item in the list (migration 069).
   Orange edge while it is still missing: nothing sends until every store has one. */
.bfm-delivery-row>td{padding:8px 0 14px;border-bottom:1px solid var(--gray-200)}
.bfm-delivery{position:sticky;left:0;max-width:min(680px,calc(100vw - 96px));display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 14px;background:var(--gray-100);border-radius:var(--radius-sm);border-left:3px solid var(--gray-300);white-space:normal}
.bfm-delivery-row.is-missing .bfm-delivery{border-left-color:var(--primary-blue);background:var(--accent-tint)}
.bfm-delivery label{font-weight:600;font-size:.9rem}
.bfm-delivery-field{display:inline-flex;align-items:center;gap:6px}
.bfm-delivery-field input{width:110px}
.bfm-delivery-help{flex-basis:100%;color:var(--gray-500);font-size:.8rem;line-height:1.45}
.bfm-delivery-help strong{color:var(--primary-blue)}
.bfm-hint-missing{border-left:3px solid var(--primary-blue)}
.bfm-add{margin-top:16px;padding-top:16px;border-top:1px solid var(--gray-200)}
.bfm-add:first-child{border-top:0;padding-top:0;margin-top:0}
.bfm-add-title{margin:0 0 12px;font-size:1rem}
.bfm-sum{display:grid;gap:6px;max-width:420px;margin:0 0 16px}
.bfm-sum>div{display:flex;justify-content:space-between;gap:12px}
.bfm-sum-total{font-weight:700;font-size:1.05rem;border-top:1px solid var(--gray-200);padding-top:8px;margin-top:2px}
.bfm-choice{border:0;margin:0 0 14px;padding:0;display:grid;gap:6px}
.bfm-choice legend{font-weight:600;margin-bottom:6px;font-size:.92rem}
.bfm-choice label{display:flex;gap:8px;align-items:flex-start;font-size:.9rem;line-height:1.45}
.bfm-hint{background:var(--accent-tint);border-radius:var(--radius-sm);padding:10px 14px;font-size:.88rem;line-height:1.5}
.bfm-secondary-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.bfm-attention{border-left:4px solid var(--primary-blue)}
.bfm-status-line{margin:8px 0 0}
.bfm-due{color:var(--warning);font-weight:600}
.bfm-good{color:var(--success)}
.bfm-tag{display:inline-block;margin-top:4px;font-size:.74rem;font-weight:600;color:var(--primary-blue);background:var(--primary-tint);border-radius:999px;padding:2px 9px;text-decoration:none}
.bfm-item-list{display:grid;gap:10px}
.bfm-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:12px 14px;border:1px solid var(--gray-200);border-radius:var(--radius-sm)}
.bfm-item-name{font-weight:600;color:var(--primary-dark)}
.bfm-item-meta{font-size:.84rem;color:var(--gray-500);margin-top:2px}
.bfm-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.bfm-item-total{font-weight:600}
.bfm-item-dropped,.bfm-item-cancelled,.bfm-item-returned{opacity:.7}
.bfm-ask,.bfm-item-actions{grid-column:1/-1}
.bfm-ask{background:var(--accent-tint);border-radius:var(--radius-sm);padding:10px 12px}
.bfm-ask p{margin:0 0 6px}
.bfm-ask-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.bfm-return form{display:grid;gap:8px;margin-top:8px;max-width:520px}
.bfm-return label{display:grid;gap:4px;font-size:.85rem}
.bfm-return summary{list-style:none;display:inline}
.bfm-return summary::-webkit-details-marker{display:none}
.bfm-history summary{cursor:pointer}
.bfm-timeline{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;font-size:.88rem}
.bfm-timeline time{display:inline-block;min-width:96px;color:var(--gray-500)}
.bfm-badge{background:var(--gray-200);color:var(--gray-700)}
.bfm-badge-enquiry,.bfm-badge-awaiting_payment,.bfm-ibadge-needs_ok,.bfm-ibadge-return_requested{background:#ffe8cc;color:#a25b00}
.bfm-badge-paid,.bfm-badge-buying,.bfm-ibadge-pending,.bfm-ibadge-approved{background:#fff3cd;color:#856404}
.bfm-badge-bought,.bfm-ibadge-bought,.bfm-ibadge-returning{background:var(--primary-tint);color:var(--primary-blue)}
.bfm-badge-completed,.bfm-ibadge-arrived{background:#d4edda;color:#155724}
@media (max-width:600px){.bfm-item{grid-template-columns:1fr}.bfm-item-side{flex-direction:row;justify-content:space-between;align-items:center}}

.wallet-use{display:flex;gap:10px;align-items:flex-start;background:var(--gray-100);border-radius:var(--radius-sm);padding:10px 14px;margin:12px 0;font-size:.9rem;line-height:1.5;cursor:pointer}
.wallet-use input{margin-top:4px}
.wallet-use small{display:block;color:var(--gray-500)}
.wallet-note{font-size:.9rem;color:var(--gray-700);margin:0 0 12px}
.wallet-total-label{margin:0!important;font-size:.85rem;color:var(--gray-500)!important}
.wallet-total{font-size:2.2rem;font-weight:700;color:var(--primary-dark)!important;margin:0 0 10px!important;line-height:1.1}
.wallet-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:440px}
.wallet-split>div{background:var(--gray-100);border-radius:var(--radius-sm);padding:10px 12px;display:grid;gap:2px}
.wallet-split span{font-size:.8rem;color:var(--gray-500)}
.wallet-split small{font-size:.76rem;color:var(--gray-500)}
.wallet-how{margin:0 0 12px 18px;display:grid;gap:8px;line-height:1.55;font-size:.92rem}
.wallet-tag{display:inline-block;margin-left:6px;font-size:.7rem;font-weight:600;background:var(--gray-200);color:var(--gray-700);border-radius:999px;padding:1px 7px;vertical-align:middle}
.wallet-in{color:var(--success);font-weight:600;white-space:nowrap}
.wallet-out{color:var(--gray-700);white-space:nowrap}

.invite-link{display:flex;gap:8px;margin:12px 0 8px;max-width:520px}
.invite-link input{flex:1;min-width:0;font-size:.9rem;padding:8px 10px;border:1px solid var(--gray-300);border-radius:var(--radius-sm);background:#fff}
.invite-share{display:flex;gap:8px;flex-wrap:wrap}
.invite-banner{text-align:left;font-size:.9rem;line-height:1.5}

.shop-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.shop-strip-item{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:10px 12px;text-decoration:none;color:var(--primary-dark);box-shadow:var(--shadow);transition:transform var(--transition)}
.shop-strip-item:hover{transform:translateY(-1px)}
.shop-strip-item img{width:64px;height:auto;flex:0 0 64px}
.shop-strip-item strong{display:block;font-size:.92rem}
.shop-strip-item small{display:block;font-size:.78rem;color:var(--gray-500);line-height:1.35}
@media (max-width:760px){.shop-strip{grid-template-columns:1fr}}

/* Refunds waiting for the customer: wallet or card */
.refund-choices{border-left:4px solid var(--primary-blue)}
.refund-choices-intro{margin:0 0 12px;font-size:.9rem;line-height:1.55;color:var(--gray-700)}
.refund-choice{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center;padding:12px 0;border-top:1px solid var(--gray-200)}
.refund-choice-what{display:grid;gap:2px}
.refund-choice-what strong{font-size:1.1rem}
.refund-choice-what span{font-size:.88rem;color:var(--gray-700)}
.refund-choice-fail{color:var(--danger)!important}
.refund-choice-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.refund-choice-fee{flex-basis:100%;text-align:right;color:var(--gray-500);font-size:.78rem}
@media (max-width:600px){.refund-choice-fee{text-align:left}}

/* Parcel photo request: a short note on what to photograph */
.photo-req{display:inline-block}
.photo-req summary{list-style:none;display:inline-block;cursor:pointer}
.photo-req summary::-webkit-details-marker{display:none}
.photo-req[open]{display:block;flex-basis:100%}
.photo-req form{display:grid;gap:6px;margin-top:8px;max-width:420px}
.photo-req label{font-size:.85rem;font-weight:600}
.photo-req-note{color:var(--gray-500);font-size:.78rem;line-height:1.4}

/* Buy for Me: a similar item offered (8 Nov 2026) */
.bfm-offer-card{background:var(--white,#fff);border:1px solid var(--gray-200);border-radius:var(--radius-sm);padding:10px 12px;margin:0 0 8px}
.bfm-offer-card .bfm-item-name{display:block;margin:2px 0}
.bfm-offer-past{font-style:italic}
.bfm-dash-offer{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:inherit;margin-top:12px}
.bfm-dash-offer strong{color:var(--accent-dark,var(--accent))}

/* Free storage meter, My Parcels (8 Nov 2026): up to 25 kg free a customer. */
.stor-meter{margin:0 0 1rem;padding:.85rem 1rem;border:1px solid var(--gray-200, #EAE3DA);border-radius:10px;background:#fff;font-size:.9rem}
.stor-meter-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem .9rem;align-items:baseline}
.stor-meter-note{font-size:.78rem;color:#6c757d}
.stor-meter-bar{height:8px;margin:.55rem 0 0;border-radius:99px;background:#F4EEE6;overflow:hidden}
.stor-meter-bar span{display:block;height:100%;border-radius:99px;background:#2F6F62}
.stor-meter p{margin:.6rem 0 0;font-size:.86rem;line-height:1.55}
.stor-meter-over{background:#FFF6E8;border-color:#F3D9A8;color:#7a5410}
.stor-meter-over .stor-meter-bar span{background:#B4741A}

/* Quote breakdown: shipping, each storage/photo fee, removed fees (9 Nov 2026). */
.fee-break{margin:1rem 0 0;padding:1rem 1.1rem;border:1px solid var(--gray-200, #EAE3DA);border-radius:12px;background:#fff}
.fee-break h3{margin:0 0 .4rem;font-size:1rem}
.fee-break-row{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-top:1px solid #EAE3DA}
.fee-break-row:nth-of-type(1){border-top:0}
.fee-break-row > span:last-child{white-space:nowrap;text-align:right}
.fee-break-row small{display:block;color:#6c757d;font-size:.84rem;margin-top:.15rem}
.fee-break-row.is-removed{color:#2F6F62}
.fee-break-row.is-removed s{color:#2F6F62}
.fee-break-total{border-top:2px solid #EAE3DA;font-size:1.05rem}
.fee-break-total .fee-break-saved{color:#2F6F62}

/* Buy for Me item photos (15 Nov 2026). Thumbnails reuse .parcel-photos. */
.bfm-photos { margin-top: 6px; }
.bfm-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-200, #e5e1da); }
.bfm-photo-field input[type=file] { display: block; margin-top: 4px; }
.bfm-photo-keep { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 6px 0; font-weight: 400; }
.bfm-photo-keep img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.bfm-photo-keep input { width: auto; }

/* Buy for Me orders: when bought items are expected at our warehouse (17 Nov 2026). */
tr.bfm-eta-row td { padding-top: 0; border-top: 0; }
.bfm-eta { position: sticky; left: 0; max-width: calc(100vw - 64px); padding: 8px 12px; border-radius: 8px; background: var(--gray-100); font-size: .82rem; color: var(--gray-500); }
.bfm-eta-head { display: block; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.bfm-eta ul { list-style: none; margin: 0 0 2px; padding: 0; display: grid; gap: 2px; }
.bfm-eta strong { white-space: nowrap; color: var(--primary-dark); font-weight: 600; }
/* The clipped file input (drag-and-drop field) is absolutely positioned; in
   the Buy for Me photo fields it had no positioned parent and sat past the
   right edge, making the whole page scroll sideways. Pin it inside its field. */
.bfm-photo-field { position: relative; }
.bfm-photo-field .file-input-clipped { left: 0; top: 0; }
.bfm-badge-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bfm-eta-date { font-size: .8rem; font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
@media (max-width:600px) { .bfm-badge-wrap { align-items: flex-start; } }

/* Buy for Me: gift cards and codes (19 Nov 2026). Same tokens as the rest. */
.bfm-tabs{display:flex;gap:4px;margin:0 0 16px;border-bottom:1px solid var(--gray-200);flex-wrap:wrap}
.bfm-tabs a{padding:9px 14px;font-weight:600;font-size:.92rem;color:var(--gray-500);text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px}
.bfm-tabs a:hover{color:var(--ink)}
.bfm-tabs a.is-active{color:var(--ink);border-bottom-color:var(--primary-blue)}
.bfm-tag-digital{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--accent-tint);color:var(--primary-blue);font-size:.72rem;font-weight:600;vertical-align:middle}
.bfm-confirm{display:flex;gap:8px;align-items:flex-start;font-size:.9rem;line-height:1.45;margin:0 0 12px}
.bfm-confirm input{margin-top:3px;flex:0 0 auto}
.bfm-digital-estimate{font-size:.88rem;margin:0 0 12px}
.bfm-code{grid-column:1/-1;margin-top:10px;padding:12px 14px;border-radius:var(--radius-sm);background:var(--gray-100);font-size:.9rem;line-height:1.5}
.bfm-code p{margin:0 0 8px}
.bfm-code p:last-child{margin-bottom:0}
.bfm-code-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:8px}
.bfm-code-list li{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bfm-code-label{font-weight:600;min-width:52px}
.bfm-code-value{font-size:1rem;font-weight:600;letter-spacing:.04em;padding:4px 10px;border-radius:6px;background:var(--white);border:1px solid var(--gray-300);word-break:break-all}
.bfm-code-pin code{padding:2px 8px;border-radius:6px;background:var(--white);border:1px solid var(--gray-300)}

/* Personal shoppers (084): customers, tags, splits, packing list */
.psc-tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.03em;padding:2px 8px;border-radius:999px;background:var(--primary-tint);color:var(--primary-blue);margin-right:6px;white-space:nowrap}
.psc-how{margin:0;padding-left:20px;display:grid;gap:6px}
.psc-list{display:grid;gap:12px}
.psc-row{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:12px;border:1px solid var(--gray-200);border-radius:var(--radius-sm);background:var(--white)}
.psc-main{min-width:0}
.psc-note{font-size:.85rem;margin-top:2px}
.psc-meta{font-size:.85rem;margin-top:4px}
.psc-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start;justify-content:flex-end}
.psc-addr{grid-column:1/-1;margin:0;padding:8px 10px;font-family:inherit;font-size:.8rem;line-height:1.5;white-space:pre-wrap;word-break:break-word;background:var(--bg-light);border-radius:6px;color:var(--gray-700)}
.psc-edit{grid-column:1/-1;border-top:1px solid var(--gray-200);padding-top:10px}
.psc-who{margin:8px 0;padding:8px 10px;border-radius:var(--radius-sm);background:var(--bg-light);font-size:.88rem}
.psc-who-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.psc-who ul{margin:4px 0 0;padding-left:18px}
.psc-inline{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.psc-inline select{max-width:100%;min-width:0;flex:0 1 280px}
.psc-split{margin-top:6px}
.psc-split summary{cursor:pointer;font-weight:600;color:var(--primary-blue)}
.psc-split-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:6px;margin-top:6px}
.psc-split-row select,.psc-split-row input{min-width:0;width:100%}
.psc-pending{display:inline-block;font-size:.72rem;font-weight:600;padding:1px 8px;border-radius:999px;background:#FBF0DC;color:var(--warning)}
.psc-pack-group{padding:10px 0;border-top:1px solid var(--gray-200)}
.psc-pack-group:first-of-type{border-top:0}
.psc-pack-group ul{margin:6px 0 0;padding-left:20px}
@media (max-width:600px){
  .psc-row{grid-template-columns:1fr}
  .psc-actions{justify-content:flex-start}
  .psc-split-row{grid-template-columns:1fr}
}
.psc-addrs{margin-top:6px;font-size:.85rem;display:grid;gap:3px}
.psc-addr-line{overflow-wrap:anywhere}
.psc-addr-line a,.psc-addr-new{font-weight:600}
.psc-addr-add{margin:4px 0 14px;padding:10px 12px;border:1px dashed var(--gray-300);border-radius:var(--radius-sm)}
.psc-addr-add summary{cursor:pointer;font-weight:600;color:var(--primary-blue)}
.psc-addr-add[open] summary{margin-bottom:8px}
.psc-addr-cap{grid-column:1/-1;font-size:.78rem;margin-bottom:-4px}
/* Split a parcel: how many customers, then a row each with tap-to-pick photos (087) */
.psc-split-form{display:grid;gap:10px;margin-top:8px}
.psc-split-form p{margin:0}
.psc-split-count{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:600;font-size:.9rem}
.psc-split-count select{width:auto;min-width:70px}
fieldset.psc-split-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px;margin:0;padding:10px 12px;border:1px solid var(--gray-200);border-radius:var(--radius-sm);background:var(--white)}
fieldset.psc-split-row legend{padding:0 4px;font-size:.78rem;font-weight:700;color:var(--gray-500);text-transform:uppercase;letter-spacing:.04em}
fieldset.psc-split-row.is-drop{outline:2px dashed var(--primary-blue);outline-offset:2px}
.psc-ph-pick{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.psc-ph{position:relative;display:block;width:64px;height:64px;cursor:pointer;margin:0}
.psc-ph input{position:absolute;opacity:0;width:1px;height:1px}
.psc-ph img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:2px solid var(--gray-200);opacity:.55;transition:opacity .15s,border-color .15s}
.psc-ph input:checked + img{opacity:1;border-color:var(--primary-blue)}
.psc-ph input:focus-visible + img{outline:2px solid var(--primary-blue);outline-offset:2px}
.psc-ph-tick{display:none;position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;background:var(--primary-blue);color:#fff;font-size:12px;font-weight:700;align-items:center;justify-content:center}
.psc-ph input:checked ~ .psc-ph-tick{display:flex}
.psc-ph-tray{display:none;flex-wrap:wrap;align-items:center;gap:8px;font-size:.85rem}
.psc-ph-tray img{width:56px;height:56px;object-fit:cover;border-radius:8px;border:1px solid var(--gray-300);cursor:grab}
@media (hover:hover) and (pointer:fine){.psc-ph-tray{display:flex}}
.psc-ph-mini{display:inline-flex;gap:4px;vertical-align:middle;margin-left:6px}
.psc-ph-mini img{width:28px;height:28px;object-fit:cover;border-radius:4px}
@media (max-width:600px){fieldset.psc-split-row{grid-template-columns:1fr}.psc-ph,.psc-ph img{width:72px;height:72px}}
.alert-moved{margin:0 0 12px}
.psc-ph.is-taken{cursor:not-allowed}
.psc-ph.is-taken img{opacity:.2;filter:grayscale(1)}
.psc-ph.is-taken::after{content:"taken";position:absolute;left:0;right:0;bottom:4px;text-align:center;font-size:.66rem;font-weight:700;color:var(--gray-700)}
/* A fourth action card (My Customers, 084): two by two where three were across. */
@media (min-width: 1240px) {
    .dash-main .action-cards:has(> .action-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === Personal shoppers on My Parcels, for non-technical shoppers (21 Nov 2026) === */
.psc-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;margin:-4px 0 12px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.psc-chips a{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--gray-300);background:var(--white);color:var(--gray-700);font-size:.85rem;font-weight:600;text-decoration:none;white-space:nowrap}
.psc-chips a span{min-width:18px;padding:0 6px;border-radius:999px;background:var(--gray-100);font-size:.75rem;text-align:center}
.psc-chips a.is-on{background:var(--primary-blue);border-color:var(--primary-blue);color:#fff}
.psc-chips a.is-on span{background:rgba(255,255,255,.25)}
.psc-chips a.psc-chip-none:not(.is-on){border-color:var(--warning);color:var(--warning)}
.psc-for{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.psc-for-label{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--gray-500)}
.psc-change{flex-basis:100%}
.psc-for .psc-change{flex-basis:auto}
.psc-for .psc-change[open]{flex-basis:100%}
.psc-change summary{cursor:pointer;list-style:none}
.psc-change summary::-webkit-details-marker{display:none}
.psc-ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.psc-ask > strong{flex-basis:100%;font-size:.95rem}
.psc-ask .psc-choice{flex:0 0 auto}
.psc-ask .psc-choice[open]{flex-basis:100%;order:5}
.psc-ask .psc-choice > summary{list-style:none}
.psc-ask .psc-choice > summary::-webkit-details-marker{display:none}
.psc-ask .psc-choice[open] > summary{background:var(--primary-blue);border-color:var(--primary-blue);color:#fff}
.psc-change .psc-inline select{flex:1 1 200px}
.ship-bar{position:fixed;left:0;right:0;bottom:0;z-index:95;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--gray-200);box-shadow:0 -6px 20px -8px rgba(27,31,36,.25)}
.ship-bar[hidden]{display:none}
.ship-bar span{font-weight:600}
body.has-ship-bar{padding-bottom:76px}
/* The bar runs the full width of the screen; on a computer its contents line
   up with the page, and the chat and WhatsApp buttons step up above it so
   nothing is stacked on top of anything (Nithin, 21 Nov 2026). */
@media (min-width:900px){
  .ship-bar{padding-left:max(24px, calc((100vw - 1280px) / 2 + 24px));padding-right:max(24px, calc((100vw - 1280px) / 2 + 24px))}
}
body.has-ship-bar .wa-float{bottom:96px}
body.has-ship-bar .ck-launch{bottom:164px}
body.has-ship-bar .ck-hint{bottom:174px}
/* On a phone three floating things are too many: while the bar shows, the
   WhatsApp button steps aside (WhatsApp is still in the chat and the footer)
   and the chat button sits just above the bar. */
@media (max-width:640px){
  body.has-ship-bar .wa-float{display:none}
  body.has-ship-bar .ck-launch{bottom:84px}
  body.has-ship-bar .ck-hint{bottom:92px}
}
@media (max-width:640px){.wa-float{width:44px;height:44px;right:10px;bottom:10px;opacity:.92}.wa-float svg{width:24px;height:24px}}
/* My customers, compact rows (21 Nov 2026) */
.psc-how-card > summary{cursor:pointer;list-style:none}
.psc-how-card > summary::-webkit-details-marker{display:none}
.psc-how-card > summary h3::after{content:" ▾";font-size:.8em;color:var(--gray-500)}
.psc-how-card:not([open]) > summary{border-bottom:0;margin-bottom:0;padding-bottom:0}
.psc-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.psc-search{width:100%;margin:0 0 12px}
.psc-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:1.02rem}
.psc-order-addr{grid-column:1/-1}
.psc-order-addr > summary{list-style:none;display:inline-flex}
.psc-order-addr > summary::-webkit-details-marker{display:none}
.psc-order-addr[open] > summary{background:var(--white);color:var(--primary-blue)}
.psc-va{box-shadow:none;border:1px solid var(--gray-200);margin:0;padding:6px 12px}
.psc-va .va-line{gap:8px}
.psc-va .va-value{overflow-wrap:anywhere}
.ship-declare{border:2px solid var(--warning)}
.ship-declare-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;padding:10px 0;border-bottom:1px solid var(--gray-200)}
.ship-declare-row label{flex:1 1 220px;margin:0;font-weight:600}
.ship-declare-input{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.ship-declare-input input{width:140px}
.ship-declare form > .btn{margin-top:12px}
/* Order address on My customers: label above its value, so a long line
   ("India Rabbit, IR-10500-C1") never squeezes into a column of letters. */
.psc-va .va-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center}
.psc-va .va-line .va-label{grid-column:1/-1;min-width:0}
.psc-va .va-line .va-value{grid-column:1;word-break:normal;overflow-wrap:anywhere}
.psc-va .va-line .btn-copy{grid-column:2;grid-row:2}
.psc-va .va-line:last-child{display:flex}

/* ===== Tables as cards on a phone (review #1, 21 Nov 2026) =====
   A wide table on a phone hid its last columns (status, price, the Pay
   button) off the right edge, with nothing telling the customer to swipe.
   Tables marked .stack-sm turn into one card per row below 640px: each cell
   on its own line with its column name beside it (data-label, filled in by
   portal.js from the table's headings). The first cell is the card's title;
   a cell under an empty heading (the button column) runs full width. On a
   laptop the table is unchanged. */
@media (max-width: 640px) {
    .table-wrapper:has(> table.stack-sm) { overflow: visible; }
    table.stack-sm,
    table.stack-sm tbody,
    table.stack-sm tr,
    table.stack-sm td { display: block; width: 100%; }
    table.stack-sm thead { display: none; }
    table.stack-sm tr {
        border: 1px solid var(--gray-200, #e9e1d4);
        border-radius: 12px;
        padding: 10px 14px;
        margin: 0 0 12px;
        background: var(--white, #fff);
    }
    table.stack-sm tbody tr:hover { background: var(--white, #fff); }
    /* Block, with the column name floated left: a cell holding several
       pieces (an amount, a line break, "refunded") keeps them together on
       the right instead of being spread across the row. */
    table.stack-sm td {
        display: block;
        padding: 5px 0;
        border: 0;
        text-align: right;
        white-space: normal;
        overflow: hidden;
    }
    table.stack-sm td::before {
        content: attr(data-label);
        float: left;
        margin-right: 14px;
        padding-top: 2px;
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--gray-500, #6c757d);
        text-align: left;
    }
    table.stack-sm td:first-child {
        text-align: left;
        font-size: 1rem;
        padding-bottom: 6px;
    }
    table.stack-sm td:first-child::before,
    table.stack-sm td[data-label=""]::before { content: none; }
    table.stack-sm td[data-label=""] { display: block; text-align: left; padding-top: 8px; }
    table.stack-sm td[data-label=""] .btn { width: 100%; justify-content: center; text-align: center; }
    table.stack-sm td[data-label=""]:empty { display: none; }
}

/* Payments: what is waiting to be paid (review #2). */
.pay-due-list { display: flex; flex-direction: column; gap: 12px; }
.pay-due-item {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    border: 1px solid #f3c9c2; background: #fff6f4; border-radius: 12px; padding: 14px 18px;
}
.pay-due-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-due-text span { color: var(--gray-500, #6c757d); font-size: .9rem; }
.pay-due-amt { font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 640px) {
    .pay-due-item { flex-direction: column; align-items: stretch; gap: 8px; }
    .pay-due-text { flex: none; }
    .pay-due-item .btn { width: 100%; justify-content: center; text-align: center; }
}

/* A switch inside a form group (Request Shipping: "This shipment contains
   medicine") was picking up the field-label style: small capitals in bold
   for a whole sentence (review #7). Switches read as normal text. */
.form-group label.switch,
.form-group label.switch .switch-label,
.form-group label.switch .switch-label * { text-transform: none; letter-spacing: normal; }
.form-group label.switch .switch-label span { font-weight: 400; }
.form-group label.switch .switch-label strong { font-weight: 700; }

/* Just signed up: "Check your inbox" (review #17). */
.inbox-panel { text-align: center; padding: 4px 0 6px; }
.inbox-icon { display: block; margin: 6px auto 10px; }
.inbox-panel h2 { margin: 0 0 8px; font-size: 1.45rem; }
.inbox-panel p { margin: 0 0 14px; color: var(--gray-700, #495057); line-height: 1.55; }
.inbox-panel p.inbox-email { margin-top: -10px; font-weight: 700; color: inherit; word-break: break-all; }
.inbox-buttons { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.inbox-buttons .btn { width: 100%; justify-content: center; }
.inbox-panel p.inbox-foot { font-size: .88rem; color: var(--gray-500, #6c757d); margin: 0 0 12px; line-height: 1.6; }

/* Sign-up: the Terms line under Create Account (review #23). */
.signup-terms { font-size: .85rem; color: var(--gray-500, #6c757d); text-align: center; margin: 10px 0 0; line-height: 1.5; }

/* Anchored sections clear the sticky header (review #20: "Upload your ID"
   lands on My Profile's ID section). */
#kyc, #shopper, #due { scroll-margin-top: 84px; }

/* Phone menu: the account links listed in full under the main links
   (review #26; portal.js opens the menu with the hamburger). */
@media (max-width: 768px) {
    .nav-links.open ~ .nav-user { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; }
    .nav-links.open ~ .nav-user details.user-menu { width: 100%; }
    .nav-links.open ~ .nav-user details.user-menu > summary { cursor: default; }
    .nav-links.open ~ .nav-user details.user-menu .user-caret { display: none; }
    .nav-links.open ~ .nav-user .user-menu-dropdown {
        position: static; display: flex; flex-direction: column; width: 100%;
        border: 0; box-shadow: none; background: transparent; padding: 4px 0 0; min-width: 0;
    }
    .nav-links.open ~ .nav-user .user-menu-dropdown a { padding: 12px 16px; font-size: 1rem; }
}

/* Zara checkout example: the Arabic label under each field, as the Zara app shows it. */
.dash-howto .howto-ar { display: block; color: var(--gray-500); font-size: .85rem; text-align: left; unicode-bidi: plaintext; }

/* ── A parcel we can't ship (migration 091) ─────────────────────────────── */
/* Dashboard: the first thing on the page until it is sorted. Same reds as
   .alert-danger and .pc-storage-alert-late, so it reads as the site's own. */
.dash-prohibited{margin:0 0 18px;padding:16px 18px;border-radius:10px;background:#FDECEA;
  border:1px solid #F3B9B2;border-left:5px solid #c0392b;color:#8a2a1c;line-height:1.55}
.dash-prohibited h2{margin:0 0 8px;font-size:1.08rem;color:#8a2a1c}
.dash-prohibited p{margin:8px 0}
.dash-prohibited ul{margin:6px 0 6px 20px;padding:0}
.dash-prohibited li{margin:3px 0}
.dash-prohibited-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.dash-prohibited-wa{background:#25D366;border-color:#25D366;color:#fff}
.dash-prohibited-wa:hover{background:#1ebe5a;border-color:#1ebe5a;color:#fff}
.dash-prohibited-note{font-size:.85rem;opacity:.85;margin-bottom:0}
/* My Parcels: on the parcel's own card. */
.pc-prohibited{margin:.9rem 0 0;padding:.8rem 1rem;border-radius:9px;font-size:.88rem;line-height:1.55;
  background:#FDECEA;border:1px solid #F3B9B2;color:#8a2a1c}
.pc-prohibited-btn{display:inline-block;margin-top:8px;background:#25D366;border-color:#25D366;color:#fff}
.pc-prohibited-btn:hover{background:#1ebe5a;color:#fff}
.pc-prohibited-done{background:#F3F4F6;border-color:#E5E7EB;color:#374151}
/* An address saved before the phone was required (26 Nov 2026). */
.addr-phone-missing{color:#b42318;font-weight:600}

/* "Someone else paying?" payment links (29 Nov 2026): the box on a shipment
   or Buy for Me order, and the public /pay/<token> page. */
.pay-link-small{font-size:.85rem;color:var(--gray-500);line-height:1.5}
.pay-link-box .pay-link-form{margin-top:12px}
.pay-link-url input{width:100%;font-size:.9rem;padding:10px 12px;border:1px solid #E5E7EB;border-radius:var(--radius-sm);background:var(--gray-100);color:var(--gray-700)}
.pay-link-actions,.pay-link-secondary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.pay-link-secondary form{margin:0}
.pay-link-email{margin:8px 0 12px}
.pay-link-email summary{cursor:pointer;font-weight:600;font-size:.9rem}
.pay-link-email form{margin-top:10px}
.pay-link-page{background:var(--gray-100);min-height:100vh}
.pay-link-wrap{max-width:520px;margin:0 auto;padding:24px 16px 40px}
.pay-link-brand{text-align:center;margin:8px 0 18px}
.pay-link-brand img{height:auto;max-width:170px}
.pay-link-wrap h1{font-size:1.4rem;margin:2px 0 6px;line-height:1.3}
.pay-link-kicker{margin:0;color:var(--gray-500);font-size:.9rem}
.pay-link-sum{margin:16px 0}
.pay-link-btn{width:100%;margin-top:4px;justify-content:center;text-align:center}
.pay-link-foot{text-align:center;margin-top:16px}

/* Buy for Me: the store's price went up (3 Dec 2026). Same amber as the
   "needs your OK" badges. */
.bfm-price-banner{background:#ffe8cc;color:#7a4300;border-left:4px solid var(--warning);border-radius:8px;padding:10px 14px;margin:0 0 12px;font-size:.92rem}
.bfm-price-up{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:8px;padding:8px 10px;background:#fff8ec;border:1px solid #f3d3a3;border-radius:8px;font-size:.88rem}
.bfm-price-up-tag{display:inline-block;background:#ffe8cc;color:#a25b00;font-weight:700;font-size:.72rem;letter-spacing:.02em;text-transform:uppercase;border-radius:999px;padding:2px 8px}
.bfm-price-up s{color:var(--gray-500)}
.bfm-price-up-diff{color:#a25b00;font-weight:600}
.bfm-price-up small{flex-basis:100%;color:var(--gray-600,#6b7280)}
.bfm-price-up-use{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;flex-basis:100%;margin:2px 0 0}
