:root {
    --brand-yellow: #ffc928;
    --brand-yellow-soft: #fff7dd;
    --brand-dark: #1a1a1a;
    --brand-gray: #f5f5f5;
    --brand-border: #e5e5e5;
    --brand-muted: #6b7280;
    --brand-muted-2: #9ca3af;
    --brand-shadow: 0 10px 30px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-dark);
    background: #fff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   NAVBAR — responsive
   ========================================================================== */
.navbar {
    background: #fff;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--brand-border);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 12px;
}

.navbar a.active {
    color: var(--brand-yellow);
    font-weight: 700;
}

.navbar .logo {
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .logo::before {
    content: "🐝";
    font-size: 22px;
}

.navbar nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}

.navbar .actions {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}

/* Burger toggle (hidden by default, shown on mobile) */
.navbar-burger {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--brand-dark);
    order: 3;
}
.navbar-burger:hover {
    background: var(--brand-yellow-soft);
}

/* The wrapper that holds nav + actions on mobile */
.navbar-menu {
    display: contents; /* on desktop, unwrap so flex layout stays the same */
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    transition: transform .15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-dark);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-dark {
    background: var(--brand-dark);
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* Hero */
.hero {
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero h1 .yellow,
.hero h1 .accent {
    color: var(--brand-yellow);
}

.hero p {
    font-size: 16px;
    color: var(--brand-muted);
    margin: 20px 0 28px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badges .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Enroll card */
.enroll-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--brand-border);
}

.enroll-card .tag {
    color: var(--brand-yellow);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

.enroll-card h3 {
    font-size: 22px;
    margin: 4px 0 6px;
    font-weight: 800;
}

.enroll-card .open {
    float: right;
    font-size: 11px;
    background: #e6f7ec;
    color: #1c7c3f;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.enroll-steps {
    list-style: none;
    margin: 24px 0;
}

.enroll-steps li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-border);
    font-size: 14px;
}

.enroll-steps .num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-yellow);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enroll-steps .t {
    font-weight: 600;
}

.enroll-steps .d {
    color: var(--brand-muted);
    font-size: 13px;
}

.enroll-card .btn-dark {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* Section */
.section {
    padding: 80px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 14px;
}

.section h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 800px;
}

.section .lead {
    color: var(--brand-muted);
    margin-top: 16px;
    max-width: 620px;
    font-size: 15px;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 24px;
}

.feature .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff7dd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 16px;
}

.feature h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature p {
    font-size: 13px;
    color: var(--brand-muted);
}

/* Gray band */
.band {
    padding: 40px;
}

.band-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

/* Sidebar steps */
.steps-sidebar {
    background: var(--brand-dark);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
}

.steps-sidebar .eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 10px;
}

.steps-sidebar h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.steps-sidebar p {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.steps-sidebar ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps-sidebar li {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    align-items: center;
}

.steps-sidebar li.active {
    background: #fff;
    color: var(--brand-dark);
}

.steps-sidebar li .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.steps-sidebar li.active .num {
    background: var(--brand-yellow);
    color: var(--brand-dark);
}

/* Form card */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
}

.form-card .step-label {
    color: var(--brand-yellow);
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-card h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-card .sub {
    color: var(--brand-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--brand-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.form-group label .req {
    color: #dc2626;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--brand-yellow);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--brand-border);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.chip.active {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    font-weight: 600;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--brand-border);
}

.form-footer .draft {
    font-size: 13px;
    color: var(--brand-muted);
    font-weight: 600;
}

/* Yellow CTA band */
.cta-band {
    background: var(--brand-yellow);
    padding: 80px 40px;
    text-align: center;
}

.cta-band .eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-band h2 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 14px;
}

.cta-band p {
    font-size: 16px;
    margin-bottom: 28px;
}

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: #fff;
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.site-footer .brand {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer p.small {
    color: #9ca3af;
    font-size: 13px;
    max-width: 300px;
}

.site-footer h5 {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.site-footer ul a {
    color: #e5e7eb;
}

.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 12px;
}

/* ==========================================================================
   BROWSE SECTION — Swiggy/Uber-Eats style
   ========================================================================== */
.browse-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.browse-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.browse-head h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.browse-head .lead {
    color: var(--brand-muted);
    font-size: 15px;
    margin-top: 6px;
}

/* Category tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--brand-border);
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--brand-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
    font-family: inherit;
}

.category-tab:hover {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow-soft);
}

.category-tab.active {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 700;
}

.category-tab .icon {
    font-size: 16px;
    line-height: 1;
}

.category-tab .count {
    font-size: 11px;
    background: rgba(0, 0, 0, .08);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.category-tab.active .count {
    background: rgba(0, 0, 0, .15);
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 200px;
    position: relative;
}

.product-grid.loading {
    opacity: .5;
    pointer-events: none;
}

.product-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow);
}

.product-card .thumb {
    height: 160px;
    background: var(--brand-gray);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .thumb.no-image::after {
    content: "🍽️";
    font-size: 42px;
    opacity: .35;
}

.product-card .thumb .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.product-card .body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card .cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b48a00;
    font-weight: 800;
}

.product-card .name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--brand-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-card .restaurant {
    font-size: 12px;
    color: var(--brand-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--brand-border);
}

.product-card .price {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-dark);
}

.product-card .price::before {
    content: "$";
    font-size: 13px;
    margin-right: 1px;
}

.product-card .add-btn {
    background: var(--brand-yellow);
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-dark);
    cursor: pointer;
    transition: transform .15s ease;
}

.product-card .add-btn:hover {
    transform: scale(1.05);
}

/* Empty state */
.product-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--brand-muted);
    font-size: 15px;
}

.product-empty .em {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: .4;
}

.product-card .thumb {
    position: relative;
    overflow: hidden;
    background: var(--brand-gray);
}
.product-card .thumb .thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity .25s ease;
}
.product-card .thumb .thumb-img.is-loaded {
    opacity: 1;
}

/* ==========================================================================
   NAVBAR CART BUTTON
   ========================================================================== */
.navbar-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--brand-border);
    color: var(--brand-dark);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    margin-right: 8px;
}
.navbar-cart:hover {
    background: var(--brand-yellow-soft);
    border-color: var(--brand-yellow);
    transform: translateY(-1px);
}
.navbar-cart svg { display: block; }

.navbar-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
body.cart-drawer-open { overflow: hidden; }

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 90;
    opacity: 0;
    transition: opacity .2s ease;
}
.cart-drawer-backdrop:not([hidden]) { opacity: 1; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 420px;
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--brand-border);
}
.cart-drawer-head h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.cart-drawer-sub {
    font-size: 12px;
    color: var(--brand-muted);
    margin-top: 4px;
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
    flex-shrink: 0;
}
.cart-drawer-close:hover { background: var(--brand-gray); }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}
.cart-drawer-body .cart-items {
    max-height: none;
    padding-right: 0;
}

.cart-drawer-foot {
    padding: 16px 22px 22px;
    border-top: 1px solid var(--brand-border);
    background: #fff;
}
.cart-drawer-foot .cart-summary {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.cart-drawer-loading,
.cart-drawer-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--brand-muted);
    font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    /* On mobile, cart icon sits inside the drawer menu next to the burger */
    .navbar-cart {
        width: 38px;
        height: 38px;
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }
    .cart-drawer-head { padding: 16px 18px 14px; }
    .cart-drawer-body { padding: 12px 18px; }
    .cart-drawer-foot { padding: 12px 18px 18px; }
}

/* ==========================================================================
   CART DRAWER — LOADING & BUSY STATES
   ========================================================================== */

/* ---------- Branded spinner ---------- */
.cart-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--brand-yellow-soft);
    border-top-color: var(--brand-yellow);
    animation: cart-spin .7s linear infinite;
    will-change: transform;
}

/* Small variant used inside buttons */
.cart-spinner--sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

@keyframes cart-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Drawer-level loading (initial load / after actions) ---------- */
.cart-drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 20px;
    color: var(--brand-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cart-drawer-loading-text {
    letter-spacing: 0.3px;
}

/* Busy overlay — while any action is in flight, dim the drawer body
   and block further clicks so a double-tap can't fire twice. */
.cart-drawer.is-busy .cart-drawer-body,
.cart-drawer.is-busy .cart-drawer-foot {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* When busy, also make the head non-interactive except the close button */
.cart-drawer.is-busy .cart-drawer-head {
    opacity: 0.7;
}

/* ---------- Inline loading on a specific control ---------- */
/* Quantity buttons, remove (×), and clear-cart buttons */
.cart-drawer .ci-btn,
.cart-drawer .ci-remove,
.cart-drawer .cart-clear {
    position: relative;
    transition: opacity .15s ease, transform .12s ease;
}

.cart-drawer .is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* For the round qty buttons — hide the +/− and show spinner in its place */
.cart-drawer .ci-btn.is-loading {
    color: transparent;
}
.cart-drawer .ci-btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 12px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid var(--brand-yellow-soft);
    border-top-color: var(--brand-yellow);
    animation: cart-spin .7s linear infinite;
}

/* For the × remove button — swap glyph for spinner */
.cart-drawer .ci-remove.is-loading {
    color: transparent;
}
.cart-drawer .ci-remove.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid var(--brand-yellow-soft);
    border-top-color: var(--brand-yellow);
    animation: cart-spin .7s linear infinite;
}

/* For the "Clear cart" text button — keep label but dim + add inline spinner */
.cart-drawer .cart-clear.is-loading {
    color: transparent;
}
.cart-drawer .cart-clear.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--brand-dark);
    animation: cart-spin .7s linear infinite;
}

/* Small vertical rhythm so the loading text isn't cramped */
@media (max-width: 480px) {
    .cart-drawer-loading { padding: 60px 16px; }
}

/* ==========================================================================
   RESTAURANTS SECTION
   ========================================================================== */
.restaurants-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 40px 80px;
}

.restaurants-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.restaurants-head h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.restaurants-head .lead {
    color: var(--brand-muted);
    font-size: 15px;
    margin-top: 6px;
}

.restaurants-head .see-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: underline;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.restaurant-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow);
}

.restaurant-card .r-thumb {
    height: 150px;
    background: var(--brand-gray);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant-card .r-thumb.no-logo::after {
    content: "🍽️";
    font-size: 42px;
    opacity: .35;
}

.restaurant-card .r-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .3px;
}

.restaurant-card .r-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.restaurant-card .r-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--brand-dark);
}

.restaurant-card .r-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--brand-muted);
}

.restaurant-card .r-meta .r-city,
.restaurant-card .r-meta .r-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   RESTAURANT PAGE
   ========================================================================== */
.restaurant-hero {
    background: linear-gradient(135deg, #fff7dd 0%, #ffffff 70%);
    padding: 40px;
}
.restaurant-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: center;
}
.r-hero-thumb {
    width: 120px; height: 120px;
    border-radius: 18px;
    background: var(--brand-gray);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.r-hero-thumb.no-logo::after { content: "🏪"; font-size: 48px; opacity: .35; }
.r-hero-info h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.r-hero-meta { font-size: 13px; color: var(--brand-muted); margin-top: 8px; display: flex; gap: 18px; flex-wrap: wrap; }

.restaurant-menu {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.menu-category { margin-bottom: 40px; }
.menu-category h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.menu-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    transition: transform .15s, box-shadow .2s;
}
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow); }
.menu-thumb {
    width: 100px;
    background: var(--brand-gray);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.menu-thumb.no-image::after { content: "🍽️"; font-size: 28px; opacity: .35; }
.menu-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.menu-name { font-size: 15px; font-weight: 700; }
.menu-desc { font-size: 12px; color: var(--brand-muted); line-height: 1.4; }
.menu-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.menu-price { font-size: 15px; font-weight: 800; }
.menu-price::before { content: "$"; font-size: 12px; margin-right: 1px; }
.add-to-cart-btn {
    background: var(--brand-yellow);
    border: none;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s;
}
.add-to-cart-btn:hover:not(:disabled) { transform: scale(1.05); }
.add-to-cart-btn:disabled { opacity: .6; cursor: wait; }

/* ============================================================
   BUTTON LOADING SPINNERS
   ============================================================ */
.add-btn.is-loading,
.qty-btn.is-loading {
    position: relative;
    color: transparent !important; /* Hide text */
    pointer-events: none;
    opacity: 0.7;
}

.add-btn.is-loading::after,
.qty-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -9px 0 0 -9px; /* Center it */
    border: 2px solid rgba(26, 26, 26, 0.2); /* Faint brand dark border */
    border-top-color: var(--brand-dark); /* Solid brand dark top border */
    border-radius: 50%;
    animation: cart-spin 0.6s linear infinite;
}

@keyframes cart-spin {
    to {
        transform: rotate(360deg);
    }
}

.menu-empty { grid-column: 1 / -1; text-align: center; color: var(--brand-muted); padding: 40px; }

/* CART PANEL */
.menu-cart { position: sticky; top: 90px; }
.cart-box {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 20px;
}
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-head h3 { font-size: 18px; font-weight: 800; }
.cart-badge {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}
.cart-empty { text-align: center; padding: 30px 0; color: var(--brand-muted); }
.cart-empty-icon { font-size: 40px; opacity: .4; margin-bottom: 10px; }
.cart-empty-sub { font-size: 12px; margin-top: 4px; }

.cart-restaurant {
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--brand-border);
    margin-bottom: 14px;
    font-size: 13px;
}
.cart-r-label { color: var(--brand-muted); margin-right: 6px; }
.cart-r-name { font-weight: 700; }

.cart-items { list-style: none; display: flex; flex-direction: column; gap: 14px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

/* ==========================================================================
   CART PANEL — LOADING & BUSY STATES
   ========================================================================== */

/* Small brand-coloured spinner for inline use */
.cart-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid var(--brand-yellow-soft);
    border-top-color: var(--brand-yellow);
    animation: cart-spin .7s linear infinite;
}
@keyframes cart-spin { to { transform: rotate(360deg); } }

/* Panel-level busy: dim + block clicks so the user can't double-fire */
.menu-cart.is-busy,
#cartPanel.is-busy {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity .15s ease;
}
/* Keep the close-area (if any) and layout stable — but the whole panel dims */

/* Individual button loading states */
#cartPanel .ci-btn,
#cartPanel .ci-remove,
#cartPanel .cart-clear {
    position: relative;
    transition: opacity .15s ease, transform .12s ease;
}

#cartPanel .is-loading {
    pointer-events: none;
    opacity: 0.75;
}

/* Quantity − and + buttons: hide the glyph and show a small spinner */
#cartPanel .ci-btn.is-loading {
    color: transparent;
}
#cartPanel .ci-btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 12px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid var(--brand-yellow-soft);
    border-top-color: var(--brand-yellow);
    animation: cart-spin .7s linear infinite;
}

/* × remove button */
#cartPanel .ci-remove.is-loading {
    color: transparent;
}
#cartPanel .ci-remove.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 12px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid var(--brand-yellow-soft);
    border-top-color: var(--brand-yellow);
    animation: cart-spin .7s linear infinite;
}

/* Clear-cart text button: hide label, show spinner in place */
#cartPanel .cart-clear.is-loading {
    color: transparent;
}
#cartPanel .cart-clear.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--brand-dark);
    animation: cart-spin .7s linear infinite;
}

/* Add-to-cart buttons on menu cards get their own inline spinner state */
.menu-card .add-to-cart-btn.is-loading,
.product-card .add-btn.is-loading {
    color: transparent;
    position: relative;
    pointer-events: none;
    opacity: .75;
}
.menu-card .add-to-cart-btn.is-loading::after,
.product-card .add-btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 12px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--brand-dark);
    animation: cart-spin .7s linear infinite;
}

/* Keep the checkout button non-spinning since it isn't wired yet */
.cart-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   CART TOAST + CONFLICT DIALOG
   ========================================================================== */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand-dark);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 200;
}
.cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cart-toast--success { background: var(--brand-dark); }
.cart-toast--error   { background: #b91c1c; }

.cart-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 20px;
}
.cart-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.cart-dialog h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.cart-dialog p {
    font-size: 14px;
    color: var(--brand-muted);
    margin-bottom: 22px;
    line-height: 1.55;
}
.cart-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
/* ==========================================================================
   PRODUCT CARD QUANTITY STEPPER
   ========================================================================== */
.cart-control {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 92px;
}

.cart-control .is-hidden {
    display: none !important;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-yellow);
    border-radius: 999px;
    padding: 4px 6px;
    font-weight: 800;
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.qty-stepper .qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--brand-dark);
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, background .15s ease;
}
.qty-stepper .qty-btn:hover {
    transform: scale(1.08);
    background: #fffbe8;
}
.qty-stepper .qty-btn:disabled {
    opacity: .5;
    cursor: wait;
}

.qty-stepper .qty-value {
    min-width: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}
.ci-info { display: flex; flex-direction: column; }
.ci-name { font-weight: 600; }
.ci-price { font-size: 11px; color: var(--brand-muted); }
.ci-controls { display: inline-flex; align-items: center; gap: 6px; }
.ci-btn {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ci-btn:hover { background: var(--brand-yellow-soft); border-color: var(--brand-yellow); }
.ci-qty { font-weight: 700; min-width: 18px; text-align: center; }
.ci-total { font-weight: 700; font-size: 13px; }
.ci-remove {
    background: transparent;
    border: none;
    color: var(--brand-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.ci-remove:hover { color: #dc2626; }

.cart-summary { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--brand-border); }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.cart-checkout { width: 100%; text-align: center; }
.cart-clear {
    background: transparent;
    border: none;
    color: var(--brand-muted);
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    text-decoration: underline;
}
.cart-clear:hover { color: #dc2626; }

@media (max-width: 1024px) {
    .restaurant-menu { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .menu-cart { position: static; }
}
@media (max-width: 768px) {
    .restaurant-hero { padding: 24px 20px; }
    .r-hero-thumb { width: 80px; height: 80px; border-radius: 14px; }
    .r-hero-info h1 { font-size: 24px; }
    .restaurant-menu { padding: 20px; }
}

/* Responsive — restaurant grid */
@media (max-width: 1024px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .restaurants-section {
        padding: 20px 20px 60px;
    }

    .restaurants-head h2 {
        font-size: 26px;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .restaurant-card .r-thumb {
        height: 130px;
    }
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile (navbar collapses here)
   ========================================================================== */
@media (max-width: 900px) {
    .navbar {
        padding: 12px 20px;
        align-items: center;
    }

    /* Show burger */
    .navbar-burger {
        display: inline-flex;
    }

    /* Collapse nav + actions into a dropdown drawer */
    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        padding: 16px 4px 4px;
        border-top: 1px solid var(--brand-border);
        order: 4;
    }

    .navbar.open .navbar-menu {
        display: flex;
    }

    /* Restyle nav links inside drawer */
    .navbar-menu nav {
        flex-direction: column;
        gap: 8px;
        font-size: 15px;
    }

    .navbar-menu nav a {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .navbar-menu nav a:hover,
    .navbar-menu nav a.active {
        background: var(--brand-yellow-soft);
        color: var(--brand-dark);
    }

    /* Restyle actions inside drawer */
    .navbar-menu .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        font-size: 15px;
    }

    /* .navbar-menu .actions a,
    .navbar-menu .actions button,
    .navbar-menu .actions form {
        width: 100%;
    } */

    .navbar-menu .actions .btn-primary,
    .navbar-menu .actions .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Sections below navbar adapt */
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

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

    .band-inner {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .section h2 {
        font-size: 28px;
    }

    .cta-band h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .browse-section {
        padding: 40px 20px 60px;
    }

    .browse-head h2 {
        font-size: 26px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card .thumb {
        height: 130px;
    }

    .product-card .name {
        font-size: 14px;
        min-height: 38px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .yellow-banner,
    .steps-section,
    .cta-band {
        padding-left: 20px;
        padding-right: 20px;
    }

    .yellow-banner-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

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

/* ==========================================================================
   CHECKOUT PAGE — customer
   ========================================================================== */

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.checkout-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-card-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
    color: var(--brand-dark);
}

/* --- Payment method options --- */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.payment-option:hover {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow-soft);
}

.payment-option input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--brand-yellow);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.payment-option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-option-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
}

.payment-option-hint {
    font-size: 12px;
    color: var(--brand-muted);
}

/* Highlight selected option using :has() when supported */
.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow-soft);
}

/* --- Order summary card --- */
.checkout-summary {
    position: sticky;
    top: 90px;
}

.checkout-restaurant {
    font-size: 13px;
    color: var(--brand-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--brand-border);
}
.checkout-restaurant strong {
    color: var(--brand-dark);
}

.checkout-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--brand-border);
}

.checkout-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
}

.checkout-item .ci-qty-x {
    font-weight: 700;
    color: var(--brand-dark);
    min-width: 26px;
}

.checkout-item .ci-name {
    color: var(--brand-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item .ci-price {
    font-weight: 700;
    color: var(--brand-dark);
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.checkout-totals .cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--brand-muted);
}

.checkout-totals .cart-row strong {
    color: var(--brand-dark);
    font-weight: 700;
}

.checkout-totals .cart-row-total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--brand-border);
    font-size: 16px;
    color: var(--brand-dark);
    font-weight: 800;
}
.checkout-totals .cart-row-total span,
.checkout-totals .cart-row-total strong {
    color: var(--brand-dark);
    font-weight: 800;
}

.checkout-summary .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.checkout-back {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--brand-muted);
    text-decoration: underline;
}
.checkout-back:hover {
    color: var(--brand-dark);
}

/* --- Checkout responsive --- */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .checkout-card {
        padding: 18px;
        border-radius: 14px;
    }
    .checkout-card-title {
        font-size: 15px;
        margin-bottom: 14px;
    }
    .payment-option {
        padding: 12px 14px;
    }
    .checkout-summary .btn-primary {
        padding: 12px;
        font-size: 14px;
    }
}

/* ==========================================================================
   CUSTOMER ORDER DETAIL PAGE
   ========================================================================== */

.order-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.order-detail-head h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

/* ---------- Timeline ---------- */
.order-timeline {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 32px;
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
}

.timeline-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-muted);
    transition: background .2s ease, transform .2s ease;
}
.timeline-step.is-done .timeline-dot {
    background: var(--brand-yellow);
    color: var(--brand-dark);
}
.timeline-step.is-current .timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px var(--brand-yellow-soft);
}

.timeline-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-muted);
}
.timeline-step.is-done .timeline-label {
    color: var(--brand-dark);
}

.timeline-time {
    font-size: 11px;
    color: var(--brand-muted);
}

.timeline-line {
    flex: 1;
    height: 3px;
    background: var(--brand-border);
    border-radius: 999px;
    margin-top: 22px;
    min-width: 24px;
}
.timeline-line.is-done {
    background: var(--brand-yellow);
}

/* Cancelled banner */
.order-cancelled-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 18px 20px;
    color: #991b1b;
}
.order-cancelled-banner .ocb-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.order-cancelled-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.order-cancelled-banner p {
    font-size: 13px;
    margin: 0;
    opacity: .85;
}

/* ---------- Two-column layout ---------- */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* ---------- Cards ---------- */
.order-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 16px;
}
.order-card:last-child { margin-bottom: 0; }

.order-card-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

/* ---------- Items list ---------- */
.order-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 18px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed var(--brand-border);
    font-size: 14px;
}
.order-item:last-child { border-bottom: none; }

.oi-name {
    color: var(--brand-dark);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
}
.oi-qty {
    font-weight: 700;
    color: var(--brand-yellow);
    min-width: 28px;
}
.oi-price {
    font-weight: 700;
    color: var(--brand-dark);
}

/* ---------- Totals ---------- */
.order-totals {
    padding-top: 16px;
    border-top: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.order-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--brand-muted);
}
.order-total-row strong {
    color: var(--brand-dark);
    font-weight: 700;
}
.order-total-row--grand {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--brand-border);
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-dark);
}
.order-total-row--grand strong {
    font-size: 18px;
    font-weight: 800;
}

/* ---------- Restaurant card ---------- */
.order-meta-row { display: flex; align-items: center; }

.order-restaurant {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-restaurant-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-gray);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-restaurant-logo.no-logo::after {
    content: "🏪";
    font-size: 22px;
    opacity: .4;
}

.order-restaurant-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--brand-dark);
}
.order-restaurant-phone {
    font-size: 12px;
    color: var(--brand-muted);
    margin-top: 2px;
}

/* ---------- Address card ---------- */
.order-address {
    font-size: 14px;
    color: var(--brand-dark);
    line-height: 1.6;
}
.order-address p { margin: 0; }
.order-address-phone {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--brand-border);
    font-size: 13px;
    color: var(--brand-muted);
}

/* ---------- Payment card ---------- */
.order-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
}
.opr-label {
    color: var(--brand-muted);
}
.opr-value {
    font-weight: 700;
    color: var(--brand-dark);
}

.order-payment-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.order-payment-pill.is-paid {
    background: #dcfce7;
    color: #166534;
}
.order-payment-pill.is-pending {
    background: #fef3c7;
    color: #92400e;
}

/* ---------- Support card ---------- */
.order-support p {
    font-size: 13px;
    color: var(--brand-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}
.order-support-btn {
    display: inline-block;
    font-size: 13px;
    padding: 10px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    .order-detail-head h2 { font-size: 26px; }
    .timeline {
        flex-wrap: wrap;
        gap: 12px;
    }
    .timeline-line {
        display: none;
    }
    .timeline-step {
        flex-basis: calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .order-card { padding: 18px 18px; border-radius: 14px; }
    .order-detail-head { flex-direction: column; align-items: flex-start; }
    .timeline-step { flex-basis: 100%; }
    .order-detail-head .btn-outline { width: 100%; text-align: center; }
}

/* ==========================================================================
   ORDER STATUS BADGES
   ========================================================================== */

.order-status-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.order-status-label {
    font-size: 13px;
    color: var(--brand-muted);
    font-weight: 600;
}

.order-status-badge,
.badge-pending,
.badge-preparing,
.badge-dispatched,
.badge-delivered,
.badge-cancelled,
.badge-default {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-preparing  { background: #dbeafe; color: #1e40af; }
.badge-dispatched { background: #e0e7ff; color: #3730a3; }
.badge-delivered  { background: #dcfce7; color: #166534; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-default    { background: var(--brand-gray); color: var(--brand-dark); }

/* ==========================================================================
   PAGINATION — customer side
   ========================================================================== */

/* Wrapper — Laravel renders <nav> with these Tailwind-ish classes */
.section nav[role="navigation"] {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Hide mobile-only bits by default; we'll show them under 640px */
.section nav[role="navigation"] > div:first-child {
    display: none;
}

.section nav[role="navigation"] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Individual buttons and links */
.section nav[role="navigation"] a,
.section nav[role="navigation"] span[aria-current="page"] > span,
.section nav[role="navigation"] span[aria-disabled="true"] > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--brand-border);
    background: #fff;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    font-family: inherit;
    line-height: 1;
}

.section nav[role="navigation"] a:hover {
    background: var(--brand-yellow-soft);
    border-color: var(--brand-yellow);
    transform: translateY(-1px);
}

/* Current page */
.section nav[role="navigation"] span[aria-current="page"] > span {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 800;
}

/* Disabled previous/next */
.section nav[role="navigation"] span[aria-disabled="true"] > span {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Prev / Next labels need a bit more horizontal room */
.section nav[role="navigation"] a[rel="prev"],
.section nav[role="navigation"] a[rel="next"] {
    padding: 0 16px;
}

/* Dots (...) between page number clusters */
.section nav[role="navigation"] span[aria-disabled="true"]:not([aria-current]) > span {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
    color: var(--brand-muted);
}

/* Small screens: hide page numbers, show prev/next only */
@media (max-width: 640px) {
    .section nav[role="navigation"] > div:first-child {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .section nav[role="navigation"] > div:last-child {
        display: none;
    }

    .section nav[role="navigation"] > div:first-child a,
    .section nav[role="navigation"] > div:first-child span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        border-radius: 10px;
        border: 1px solid var(--brand-border);
        background: #fff;
        color: var(--brand-dark);
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }
    .section nav[role="navigation"] > div:first-child a:hover {
        background: var(--brand-yellow-soft);
        border-color: var(--brand-yellow);
    }
}

/* ============================================================
   CUSTOMER WALLET
   ============================================================ */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.wallet-balance-card::after {
    content: "🐝";
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 140px;
    opacity: 0.05;
    transform: rotate(-15deg);
}
.wb-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-yellow);
    margin-bottom: 12px;
}
.wb-amount {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}
.wb-amount .currency {
    font-size: 28px;
    color: rgba(255,255,255,.6);
    vertical-align: top;
    margin-right: 4px;
}
.wb-sub {
    font-size: 14px;
    color: rgba(255,255,255,.6);
}

/* Transactions */
.wallet-tx-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wallet-tx-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--brand-border);
}
.wallet-tx-item:last-child {
    border-bottom: none;
}
/* ============================================================
   WALLET ADD BALANCE BUTTON
   ============================================================ */
.wallet-add-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.wallet-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: var(--brand-dark);
}

/* Ensure the balance card has enough top padding so the button doesn't overlap the label */
.wallet-balance-card {
    padding-top: 48px !important; 
}
.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}
.tx-icon.is-credit {
    background: #dcfce7;
    color: #166534;
}
.tx-icon.is-debit {
    background: #fee2e2;
    color: #991b1b;
}
.tx-info {
    flex: 1;
}
.tx-desc {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 4px;
}
.tx-date {
    font-size: 12px;
    color: var(--brand-muted);
}
.tx-amount {
    font-size: 16px;
    font-weight: 800;
}
.tx-amount.is-credit {
    color: #166534;
}
.tx-amount.is-debit {
    color: #991b1b;
}

/* ============================================================
   ORDER LISTING LAYOUT
   ============================================================ */

.order-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.order-list-left {
    display: flex;
    flex-direction: column;
}

.order-list-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

.order-list-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.order-list-total {
    text-align: right;
    min-width: 100px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .order-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .order-list-right {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding-top: 16px;
        border-top: 1px dashed var(--brand-border);
    }

    .order-list-badges {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        min-width: unset;
    }
    
    .order-list-total {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================================
   LOCATION BANNER (when location is set)
   ============================================================ */
.location-banner {
    background: #fff7dd;
    border-bottom: 1px solid #ffe58a;
    padding: 10px 20px;
}
.location-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--brand-dark);
    flex-wrap: wrap;
}
.location-banner-dot { font-size: 16px; }
.location-banner-text { flex: 1; font-weight: 500; }
.location-banner-clear button {
    background: transparent;
    border: 1px solid var(--brand-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    color: var(--brand-dark);
}
.location-banner-clear button:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* ============================================================
   LOCATION PROMPT (when no location yet)
   ============================================================ */
.location-prompt-section {
    max-width: 640px;
    margin: 60px auto 20px;
    padding: 0 20px;
}
.location-prompt {
    text-align: center;
    background: #fff7dd;
    border: 1px solid #ffe58a;
    border-radius: 20px;
    padding: 48px 32px;
}
.location-prompt-icon { font-size: 56px; margin-bottom: 16px; }
.location-prompt h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.location-prompt p {
    color: var(--brand-muted);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.location-prompt-hint {
    font-size: 13px;
    color: var(--brand-muted);
    margin-top: 16px;
    margin-bottom: 0;
    font-style: italic;
}

/* ============================================================
   NO RESULTS STATE
   ============================================================ */
.no-results-section {
    max-width: 640px;
    margin: 40px auto 80px;
    padding: 0 20px;
}
.no-results {
    text-align: center;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: 48px 32px;
}
.no-results-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; }
.no-results h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}
.no-results p {
    color: var(--brand-muted);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================================
   RESTAURANT CARD — distance label
   ============================================================ */
.restaurant-card .r-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-dark);
    font-weight: 600;
}

/* Location banner — prompt variant (when no location set) */
.location-banner--prompt {
    background: #fff7dd;
    border-bottom: 1px solid #ffe58a;
}
.location-banner--prompt .location-banner-inner {
    color: var(--brand-dark);
}
.location-banner-cta {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease;
    font-family: inherit;
}
.location-banner-cta:hover { transform: translateY(-1px); }
.location-banner-cta:disabled { opacity: .6; cursor: wait; }

/* ============================================================
   Modifier selection dialog
   ============================================================ */
.cart-dialog-backdrop--modifier {
    z-index: 1000;
    padding: 16px;
}
.cart-dialog--modifier {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cart-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: 12px;
}
.cart-dialog-head h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0;
}
.cart-dialog-sub {
    font-size: 0.875rem;
    color: var(--brand-muted);
    margin: 2px 0 0;
}
.cart-dialog-close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--brand-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.cart-dialog-close:hover {
    background: var(--brand-gray);
    color: var(--brand-dark);
}
.modifier-dialog-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 4px;
    flex: 1;
}
.modifier-group {
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}
.modifier-group.has-error {
    border-color: #f87171;
    background: #fef2f2;
}
.modifier-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.modifier-group-title {
    font-weight: 700;
    color: var(--brand-dark);
}
.modifier-group-rule {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin-top: 2px;
}
.modifier-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--brand-gray);
    color: var(--brand-muted);
    white-space: nowrap;
}
.modifier-badge--required {
    background: var(--brand-yellow-soft);
    color: #a06e00;
}
.modifier-group-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modifier-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.modifier-option:hover {
    border-color: #d4d4d4;
    background: #fafafa;
}
.modifier-option input {
    accent-color: var(--brand-yellow);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
.modifier-option input:checked ~ .modifier-name {
    font-weight: 700;
}
.modifier-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--brand-dark);
}
.modifier-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
}
.modifier-group-error {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}
.modifier-dialog-footer {
    border-top: 1px solid var(--brand-border);
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.modifier-dialog-total {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.modifier-dialog-total strong {
    font-size: 1.125rem;
    color: var(--brand-dark);
    letter-spacing: 0;
    text-transform: none;
}
@media (max-width: 480px) {
    .modifier-dialog-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .modifier-dialog-footer .cart-dialog-actions {
        width: 100%;
    }
}

/* Modifier chips inside cart items */
.ci-modifiers {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ci-modifier {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.75rem;
    color: var(--brand-muted);
    padding: 1px 0 1px 8px;
    border-left: 2px solid var(--brand-yellow);
    margin-left: 2px;
}
.ci-modifier-name {
    line-height: 1.3;
}
.ci-modifier-price {
    color: var(--brand-dark);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 6px;
}

.checkout-item .ci-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.checkout-item .ci-modifiers {
    margin-top: 2px;
}
.checkout-item .ci-modifier {
    font-size: 0.75rem;
}

.order-item .oi-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.order-item .ci-modifiers {
    margin-top: 2px;
}

.btn-primary.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-primary.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}