/*
 * LIV International — Shared Base CSS  v1.1
 * =========================================================
 * Aesthetic direction: Botanical Luxury
 * Primary: #5c7d62 (sage green) — organic, premium, grounded
 * =========================================================
 *
 * CRITICAL RULES (lessons from TacoTuesdayPayment):
 *  1. ZERO font-size declarations — DNN theme controls ALL sizing
 *  2. Use CSS keyword sizes (large, small) ONLY for relative scaling
 *  3. CSS only targets .liv- custom classes — never DNN/Bootstrap classes directly
 *  4. No absolute positioning inside table-based layouts — use flexbox
 *  5. No padding-left overrides on tel inputs (intl-tel-input manages internally)
 *  6. Module ID ALWAYS verified from live browser HTML — never from export file
 *  7. Tax = TotalCC - SubTotal - ShipAmt (NEVER read TotalTax field directly)
 *  8. Extract ALL inline <style> from HTML modules before testing
 *  9. Increment ?ver=X on EVERY CSS/JS deploy — DNN caches aggressively
 * 10. Sticky sidebar top must clear DNN nav (~60–80px depending on page)
 * 11. Mobile: replace sidebar with fixed bottom bar, add body padding-bottom: 72px
 *
 * Deploy path:  /Portals/0/livint/css/liv-int-base.css
 * Load order:   liv-int-base.css  →  liv-int-utils.js  →  [page-specific files]
 */

/* =====================================================================
   1. DESIGN TOKENS — Full Color System
   ===================================================================== */
:root {

    /* --- Primary: Sage Green #5c7d62 --- */
    --li-green:          #5c7d62;
    --li-green-mid:      #7a9e80;      /* lighter, for hover states */
    --li-green-dark:     #3d5441;      /* buttons pressed, deep accents */
    --li-green-deep:     #2a3b2e;      /* darkest — headings on dark bg */
    --li-green-light:    #e8f0ea;      /* tinted backgrounds */
    --li-green-xlight:   #f2f7f3;      /* very faint — alternate card bg */
    --li-green-glow:     rgba(92, 125, 98, 0.20);
    --li-green-glow-lg:  rgba(92, 125, 98, 0.35);

    /* --- Complementary: Antique Gold (membership / premium tier) --- */
    --li-gold:           #b8955a;      /* warm, not gaudy — antique finish */
    --li-gold-bright:    #d4aa6a;      /* hover/highlight */
    --li-gold-dark:      #8a6c38;      /* pressed / deep */
    --li-gold-light:     #f5edd8;      /* tinted bg for gold sections */
    --li-gold-xlight:    #faf5eb;      /* very faint gold tint */
    --li-gold-glow:      rgba(184, 149, 90, 0.22);

    /* --- Split-complementary: Slate Blue (info, links, secondary CTA) --- */
    --li-blue:           #5b7fa6;
    --li-blue-dark:      #3d5f82;
    --li-blue-light:     #e8eff6;
    --li-blue-glow:      rgba(91, 127, 166, 0.18);

    /* --- Triadic accent: Terracotta (warnings, out-of-stock, special callouts) --- */
    --li-terra:          #c4745a;
    --li-terra-dark:     #9e5640;
    --li-terra-light:    #faeae4;

    /* --- Danger / Error --- */
    --li-danger:         #dc4f4f;
    --li-danger-light:   #fef2f2;

    /* --- Success (same family as green but brighter) --- */
    --li-success:        #3a9e5f;
    --li-success-light:  #e6f7ed;

    /* --- Neutrals: warm-tinted (not cold gray) --- */
    --li-text:           #1e2b22;      /* near-black with green undertone */
    --li-text-muted:     #6b7a6e;      /* secondary text */
    --li-text-light:     #9aab9d;      /* placeholder, disabled */
    --li-text-inverse:   #ffffff;

    --li-border:         #d9e2da;      /* subtle sage-tinted border */
    --li-border-dark:    #bfcfc2;      /* stronger border / divider */
    --li-border-focus:   var(--li-green);

    /* Backgrounds — warm parchment tones, not cold gray */
    --li-bg:             #f4f6f4;      /* page background */
    --li-bg-warm:        #f8f5ef;      /* warm parchment — hero sections */
    --li-bg-alt:         #eef2ef;      /* alternate section bg */
    --li-card:           #ffffff;
    --li-card-alt:       #fafcfa;      /* slightly green-tinted card */

    /* Dark surfaces (for dark hero sections, nav overlays) */
    --li-dark:           #1a261d;      /* deepest dark */
    --li-dark-2:         #243029;      /* slightly lighter */
    --li-dark-3:         #2f3d33;      /* card on dark bg */

    /* --- Shadows --- */
    --li-shadow-xs:      0 1px 4px  rgba(30, 43, 34, 0.06);
    --li-shadow-sm:      0 2px 8px  rgba(30, 43, 34, 0.08);
    --li-shadow:         0 4px 20px rgba(30, 43, 34, 0.10);
    --li-shadow-lg:      0 12px 48px rgba(30, 43, 34, 0.14);
    --li-shadow-xl:      0 24px 64px rgba(30, 43, 34, 0.18);
    --li-shadow-green:   0 8px 28px  rgba(92, 125, 98, 0.28);
    --li-shadow-green-lg:0 16px 48px rgba(92, 125, 98, 0.35);
    --li-shadow-gold:    0 8px 28px  rgba(184, 149, 90, 0.28);
    --li-shadow-inset:   inset 0 2px 6px rgba(30, 43, 34, 0.06);

    /* --- Shape --- */
    --li-radius-xs:      4px;
    --li-radius-sm:      8px;
    --li-radius:         14px;
    --li-radius-lg:      20px;
    --li-radius-xl:      28px;
    --li-radius-pill:    999px;

    /* --- Motion --- */
    --li-ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --li-ease-out:       cubic-bezier(0.0, 0, 0.2, 1);
    --li-ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --li-ease-spring:    cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --li-transition:     all 0.25s var(--li-ease);
    --li-transition-fast:all 0.15s var(--li-ease);
    --li-transition-slow:all 0.4s  var(--li-ease-out);

    /* --- Spacing scale --- */
    --li-space-xs:   4px;
    --li-space-sm:   8px;
    --li-space-md:   16px;
    --li-space-lg:   24px;
    --li-space-xl:   40px;
    --li-space-2xl:  64px;

    /* --- DNN nav clearance (sticky positioning) --- */
    --li-nav-height: 70px;   /* adjust per page if nav is taller */
}


/* =====================================================================
   2. KEYFRAME ANIMATIONS
   ===================================================================== */

/* Entrance — slides up and fades in */
@keyframes liv-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Gold shimmer sweep — for featured card and membership badge */
@keyframes liv-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

/* Soft pulse — for "new" badge */
@keyframes liv-pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 149, 90, 0.75), 0 4px 16px rgba(184, 149, 90, 0.50); }
    50%       { box-shadow: 0 0 0 14px rgba(184, 149, 90, 0),  0 4px 16px rgba(184, 149, 90, 0.25); }
}

/* Gentle float — for featured product card */
@keyframes liv-float {
    0%, 100% { transform: translateY(-4px); }
    50%       { transform: translateY(-8px); }
}

/* Spin — for loading states */
@keyframes liv-spin {
    to { transform: rotate(360deg); }
}

/* Scale in — for modals, toasts */
@keyframes liv-scale-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}


/* =====================================================================
   3. FEATURED PRODUCT — Monthly Highlight  (.liv-featured)
   =====================================================================
   To activate for a product: add class "liv-featured" in DNN admin.
   Remove/add manually each month — zero code changes required.
   The badge text ("NEW") can be overridden per-product with a
   custom data attribute: data-featured-label="HOT"
   ===================================================================== */
.liv-featured {
    border: 2px solid var(--li-gold-bright) !important;
    box-shadow:
        var(--li-shadow-gold),
        0 0 0 4px rgba(184, 149, 90, 0.22),
        0 0 36px rgba(184, 149, 90, 0.28) !important;
    position: relative !important;
    transform: translateY(-4px) !important;
    transition: var(--li-transition) !important;
    z-index: 2;
}

.liv-featured:hover {
    transform: translateY(-8px) !important;
    box-shadow:
        0 20px 60px rgba(184, 149, 90, 0.42),
        0 0 0 5px rgba(184, 149, 90, 0.28),
        0 0 50px rgba(184, 149, 90, 0.32) !important;
}

/* "NEW" badge chip — top center */
.liv-featured::before {
    content: attr(data-featured-label, "NEW");
    position: absolute;
    top: -18px;
    left: 16px;
    transform: none;
    background: linear-gradient(135deg, #e8b86d 0%, var(--li-gold-bright) 40%, var(--li-gold) 100%);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 24px;
    border-radius: var(--li-radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--li-shadow-gold), 0 2px 8px rgba(0,0,0,0.18);
    z-index: 10;
    white-space: nowrap;
    animation: liv-pulse-soft 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .liv-featured::before { animation: none; }
}

/* Gold shimmer overlay on featured card background */
.liv-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(184, 149, 90, 0.06) 40%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(184, 149, 90, 0.06) 60%,
        transparent 100%
    );
    background-size: 200% auto;
    animation: liv-shimmer 4s linear infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* Optional: add .liv-featured-float for floating animation */
.liv-featured.liv-featured-float {
    animation: liv-float 4s ease-in-out infinite;
}


/* =====================================================================
   4. CARD COMPONENTS
   ===================================================================== */

/* Base card */
.liv-card {
    background: var(--li-card);
    border-radius: var(--li-radius);
    box-shadow: var(--li-shadow);
    border: 1px solid var(--li-border);
    overflow: hidden;
    transition: var(--li-transition);
}

.liv-card:hover {
    box-shadow: var(--li-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--li-border-dark);
}

/* Product card — used in product listing grid */
.liv-product-card {
    background: var(--li-card);
    border-radius: var(--li-radius-lg);
    box-shadow: var(--li-shadow-sm);
    border: 1px solid var(--li-border);
    overflow: visible;           /* allows .liv-featured badge to overflow */
    transition: var(--li-transition);
    display: flex;
    flex-direction: column;
}

.liv-product-card:hover {
    box-shadow: var(--li-shadow);
    transform: translateY(-4px);
    border-color: var(--li-green-mid);
}

.liv-product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--li-radius-lg) var(--li-radius-lg) 0 0;
    display: block;
}

.liv-product-card-body {
    padding: var(--li-space-md) var(--li-space-md) var(--li-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--li-space-sm);
    flex: 1;
}

.liv-product-card-footer {
    padding: var(--li-space-sm) var(--li-space-md) var(--li-space-md);
    border-top: 1px solid var(--li-border);
    display: flex;
    align-items: center;
    gap: var(--li-space-sm);
}

/* Dark card variant — for hero/dark section overlays */
.liv-card-dark {
    background: var(--li-dark-3);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--li-text-inverse);
}


/* =====================================================================
   5. BUTTONS
   ===================================================================== */

/* --- Primary: Sage Green gradient --- */
.liv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--li-radius-pill);
    background: linear-gradient(135deg, var(--li-green-mid) 0%, var(--li-green) 50%, var(--li-green-dark) 100%);
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--li-transition);
    box-shadow: var(--li-shadow-green);
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.liv-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: var(--li-transition-fast);
}

.liv-btn-primary:hover {
    background: linear-gradient(135deg, var(--li-green) 0%, var(--li-green-dark) 50%, var(--li-green-deep) 100%);
    transform: translateY(-2px);
    box-shadow: var(--li-shadow-green-lg);
    color: #ffffff !important;
    text-decoration: none !important;
}

.liv-btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--li-shadow-green);
}

/* --- Gold: Membership / Premium CTA --- */
.liv-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--li-radius-pill);
    background: linear-gradient(135deg, var(--li-gold-bright) 0%, var(--li-gold) 60%, var(--li-gold-dark) 100%);
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--li-transition);
    box-shadow: var(--li-shadow-gold);
    text-decoration: none !important;
    white-space: nowrap;
}

.liv-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(184, 149, 90, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* --- Ghost / Secondary --- */
.liv-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: var(--li-radius-pill);
    background: transparent;
    color: var(--li-text) !important;
    font-weight: 700;
    border: 2px solid var(--li-border-dark);
    cursor: pointer;
    transition: var(--li-transition);
    text-decoration: none !important;
    white-space: nowrap;
}

.liv-btn-ghost:hover {
    border-color: var(--li-green);
    color: var(--li-green) !important;
    background: var(--li-green-xlight);
    text-decoration: none !important;
}

/* --- Outline Green --- */
.liv-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: var(--li-radius-pill);
    background: transparent;
    color: var(--li-green) !important;
    font-weight: 700;
    border: 2px solid var(--li-green);
    cursor: pointer;
    transition: var(--li-transition);
    text-decoration: none !important;
}

.liv-btn-outline:hover {
    background: var(--li-green);
    color: #ffffff !important;
    box-shadow: var(--li-shadow-green);
    text-decoration: none !important;
}

/* --- Size modifiers --- */
.liv-btn-sm {
    padding: 8px 20px !important;
    letter-spacing: 0.5px !important;
}

.liv-btn-lg {
    padding: 16px 44px !important;
    letter-spacing: 1px !important;
}

.liv-btn-full {
    width: 100% !important;
}


/* =====================================================================
   6. FLAVOR SELECTOR BUTTONS
   Two-button row for product flavor/variant selection.
   JS adds .active class on click. No font-size — DNN theme controls.
   ===================================================================== */
.liv-flavor-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--li-space-sm);
    margin: var(--li-space-sm) 0;
}

.liv-flavor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: 2px solid var(--li-border-dark);
    border-radius: var(--li-radius-pill);
    background: var(--li-card);
    color: var(--li-text) !important;
    font-weight: 700;
    cursor: pointer;
    transition: var(--li-transition);
    user-select: none;
    text-decoration: none !important;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.liv-flavor-btn:hover {
    border-color: var(--li-green);
    color: var(--li-green) !important;
    background: var(--li-green-xlight);
}

.liv-flavor-btn.active,
.liv-flavor-btn.selected,
.liv-flavor-btn[aria-pressed="true"] {
    border-color: var(--li-green);
    background: linear-gradient(135deg, var(--li-green-mid) 0%, var(--li-green) 100%);
    color: #ffffff !important;
    box-shadow: var(--li-shadow-green);
}


/* =====================================================================
   7. BADGE / PILL COMPONENTS
   ===================================================================== */
.liv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--li-radius-pill);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.4;
}

.liv-badge-green   { background: var(--li-green-light);  color: var(--li-green-deep); }
.liv-badge-gold    { background: var(--li-gold-light);   color: var(--li-gold-dark);  }
.liv-badge-blue    { background: var(--li-blue-light);   color: var(--li-blue-dark);  }
.liv-badge-terra   { background: var(--li-terra-light);  color: var(--li-terra-dark); }
.liv-badge-dark    { background: var(--li-dark-3);       color: rgba(255,255,255,0.9);}
.liv-badge-success { background: var(--li-success-light);color: var(--li-success);    }
.liv-badge-danger  { background: var(--li-danger-light); color: var(--li-danger);     }

/* Membership tier badge (gold, animated) */
.liv-badge-member {
    background: linear-gradient(135deg, var(--li-gold-bright), var(--li-gold));
    color: #ffffff;
    box-shadow: var(--li-shadow-gold);
    animation: liv-pulse-soft 3s ease-in-out infinite;
}

/* PV / points badge */
.liv-badge-pv {
    background: var(--li-green-deep);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 900;
    letter-spacing: 1px;
}


/* =====================================================================
   8. SECTION HEADERS — with green accent bar
   ===================================================================== */
.liv-section-header {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: var(--li-text) !important;
    padding: 20px 20px 10px 28px !important;
    margin: 0 !important;
    position: relative !important;
    letter-spacing: 0.5px;
}

.liv-section-header::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, var(--li-green-mid), var(--li-green));
    border-radius: 4px;
}

/* Dark variant — for sections on dark backgrounds */
.liv-section-header-light {
    color: rgba(255, 255, 255, 0.95) !important;
}

.liv-section-header-light::before {
    background: linear-gradient(to bottom, var(--li-gold-bright), var(--li-gold));
}

/* Decorative section divider */
.liv-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--li-border-dark), transparent);
    border: none;
    margin: var(--li-space-lg) 0;
}

.liv-divider-green {
    background: linear-gradient(to right, transparent, var(--li-green-light), transparent);
}


/* =====================================================================
   9. FORM ELEMENTS (inputs, selects, labels)
   Targets only .liv- classes — never DNN/Bootstrap classes directly.
   ===================================================================== */
.liv-label {
    font-weight: 700 !important;
    color: var(--li-text) !important;
    margin-bottom: var(--li-space-xs) !important;
    display: block !important;
}

.liv-field {
    height: 50px !important;
    border: 1.5px solid var(--li-border) !important;
    border-radius: var(--li-radius-sm) !important;
    background: var(--li-bg-alt) !important;
    color: var(--li-text) !important;
    transition: var(--li-transition-fast) !important;
    width: 100% !important;
    /* NO padding-left override — intl-tel-input manages its own padding */
}

.liv-field:focus {
    outline: none !important;
    border-color: var(--li-green) !important;
    background: var(--li-card) !important;
    box-shadow: 0 0 0 3px var(--li-green-glow) !important;
}

.liv-field::placeholder {
    color: var(--li-text-light) !important;
}

/* Select field */
.liv-select {
    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 d='M1 1l5 5 5-5' stroke='%235c7d62' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 38px !important;
}

.liv-form-row {
    margin-bottom: var(--li-space-md) !important;
}

/* Tel input — allow full width, DO NOT touch padding-left */
.liv-tel-wrap .iti {
    width: 100% !important;
    display: block !important;
}

.liv-tel-wrap .iti__flag-container {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}


/* =====================================================================
   10. SIDEBAR / ORDER SUMMARY
   Same pattern as TacoTuesdayPayment — injected by JS as flex sibling.
   Sticky with top offset = --li-nav-height.
   ===================================================================== */
.liv-checkout-layout {
    display: flex;
    align-items: flex-start;
    gap: var(--li-space-xl);
}

.liv-checkout-form {
    flex: 1;
    min-width: 0;
}

#liv-order-sidebar,
.liv-order-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: var(--li-nav-height);
    max-height: calc(100vh - var(--li-nav-height) - 20px);
    overflow-y: auto;
    background: var(--li-card);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius-lg);
    box-shadow: var(--li-shadow-lg);
    overflow: hidden;
    animation: liv-rise 0.4s var(--li-ease-out);
}

.liv-sb-header {
    background: linear-gradient(135deg, var(--li-green-deep) 0%, var(--li-dark-2) 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: var(--li-space-md) var(--li-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--li-space-sm);
}

.liv-sb-edit-link {
    color: var(--li-gold-bright) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--li-transition-fast);
}

.liv-sb-edit-link:hover {
    color: var(--li-gold-light) !important;
}

.liv-sb-items,
.liv-sb-totals {
    padding: var(--li-space-md) var(--li-space-lg);
    border-bottom: 1px solid var(--li-border);
}

.liv-sb-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--li-space-sm);
}

.liv-sb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--li-space-xs) 0;
}

.liv-sb-label { color: var(--li-text-muted); }
.liv-sb-value { font-weight: 700; color: var(--li-text); }

.liv-sb-total-row {
    padding: var(--li-space-md) var(--li-space-lg);
    background: var(--li-green-xlight);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--li-border);
}

.liv-sb-total-label  { font-weight: 700; color: var(--li-text-muted); text-transform: uppercase; letter-spacing: 1px; }
.liv-sb-total-amount { font-weight: 900; color: var(--li-green-dark); }

.liv-sb-member {
    padding: var(--li-space-sm) var(--li-space-lg);
    background: var(--li-gold-xlight);
    border-bottom: 1px solid var(--li-border);
}

.liv-sb-member-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--li-gold-dark);
    font-weight: 700;
}

.liv-sb-footer {
    padding: var(--li-space-sm) var(--li-space-lg);
    color: var(--li-text-light);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Hide full sidebar on mobile */
@media (max-width: 991px) {
    #liv-order-sidebar,
    .liv-order-sidebar {
        display: none !important;
    }
}


/* =====================================================================
   11. MOBILE STICKY BOTTOM BAR
   Replaces full sidebar on mobile — stays fixed to viewport bottom.
   JS injects this into document.body.
   Rule: body gets padding-bottom: 72px on mobile to prevent
   the submit button from hiding behind the bar.
   ===================================================================== */
#liv-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--li-dark);
    border-top: 3px solid var(--li-green);
    padding: 10px var(--li-space-md);
    align-items: center;
    justify-content: space-between;
    gap: var(--li-space-md);
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.32);
}

@media (max-width: 991px) {
    #liv-mobile-bar { display: flex; }

    /* CRITICAL: prevent submit button hiding behind bar */
    body { padding-bottom: 72px !important; }
}

.liv-mb-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.liv-mb-items    { color: rgba(255,255,255,0.80); font-weight: 700; white-space: nowrap; }
.liv-mb-breakdown{ color: rgba(255,255,255,0.50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liv-mb-right    { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 1px; }
.liv-mb-total-label  { color: rgba(255,255,255,0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.liv-mb-total-amount { color: var(--li-green-mid); font-weight: 900; line-height: 1.1; }


/* =====================================================================
   12. MEMBERSHIP SELECTOR (CartSummary-specific)
   Action Form buttons that switch pricing tier.
   ===================================================================== */
.liv-membership-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--li-space-sm);
    margin: var(--li-space-md) 0;
}

.liv-membership-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--li-space-md) var(--li-space-lg);
    border: 2px solid var(--li-border-dark);
    border-radius: var(--li-radius);
    background: var(--li-card);
    color: var(--li-text) !important;
    font-weight: 700;
    cursor: pointer;
    transition: var(--li-transition);
    text-decoration: none !important;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.liv-membership-btn:hover {
    border-color: var(--li-gold);
    background: var(--li-gold-xlight);
    color: var(--li-gold-dark) !important;
}

.liv-membership-btn.active,
.liv-membership-btn.selected {
    border-color: var(--li-gold);
    background: linear-gradient(135deg, var(--li-gold-xlight), var(--li-gold-light));
    color: var(--li-gold-dark) !important;
    box-shadow: var(--li-shadow-gold);
}

.liv-membership-btn .liv-mb-label {
    font-weight: 900;
    letter-spacing: 0.5px;
}

.liv-membership-btn .liv-mb-sub {
    color: var(--li-text-muted);
    font-weight: 500;
}

.liv-membership-btn.active .liv-mb-sub {
    color: var(--li-gold);
}

/* Membership callout card (confirms selected tier) */
.liv-membership-card {
    background: linear-gradient(135deg, var(--li-gold-xlight) 0%, var(--li-gold-light) 100%);
    border: 1.5px solid var(--li-gold);
    border-radius: var(--li-radius);
    padding: var(--li-space-md) var(--li-space-lg);
    display: flex;
    align-items: center;
    gap: var(--li-space-md);
    margin: var(--li-space-md) 0;
    position: relative;
    overflow: hidden;
}

.liv-membership-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    background-size: 200% auto;
    animation: liv-shimmer 3s linear infinite;
    pointer-events: none;
}


/* =====================================================================
   13. FLOATING CART GRID (Action Grid — "Buy Now" display)
   Same floating panel pattern as TacoTuesdayPayment.
   IMPORTANT: Get module ID from live HTML — Action Grid export IDs are unreliable.
   DO NOT use absolute positioning inside table cells — use flexbox.
   ===================================================================== */
.liv-cart-panel {
    background: var(--li-card);
    border: 1.5px solid var(--li-border);
    border-radius: var(--li-radius-lg);
    box-shadow: var(--li-shadow-xl);
    overflow: hidden;
    animation: liv-scale-in 0.3s var(--li-ease-bounce);
}

.liv-cart-panel-header {
    background: linear-gradient(135deg, var(--li-green-deep) 0%, var(--li-dark-2) 100%);
    color: #ffffff;
    padding: var(--li-space-md) var(--li-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Table cells inside the cart grid — use flexbox, NOT absolute positioning */
.liv-cart-panel td {
    vertical-align: middle;
}

.liv-cart-cell-flex {
    display: flex;
    align-items: center;
    gap: var(--li-space-sm);
}


/* =====================================================================
   14. HERO SECTION
   ===================================================================== */
.liv-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--li-dark) 0%, var(--li-dark-2) 60%, var(--li-green-deep) 100%);
    color: #ffffff;
}

.liv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 38, 29, 0.85) 0%,
        rgba(26, 38, 29, 0.40) 60%,
        rgba(92, 125, 98, 0.20) 100%
    );
    z-index: 1;
}

.liv-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--li-space-2xl) var(--li-space-xl);
}

.liv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--li-radius-pill);
    color: rgba(255, 255, 255, 0.90);
    padding: 6px 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--li-space-md);
}

.liv-hero-headline {
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin-bottom: var(--li-space-md) !important;
}

.liv-hero-sub {
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: var(--li-space-lg) !important;
    line-height: 1.6 !important;
}

/* Step chip (like TacoTuesdayPayment "Step 1 of 2") */
.liv-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--li-radius-pill);
    color: rgba(255, 255, 255, 0.90);
    padding: 5px 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.liv-step-chip-num {
    background: var(--li-green);
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}


/* =====================================================================
   15. LOADING / SKELETON STATES
   ===================================================================== */
@keyframes liv-skeleton {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

.liv-skeleton {
    background: linear-gradient(
        90deg,
        var(--li-border) 0%,
        var(--li-bg-alt) 50%,
        var(--li-border) 100%
    );
    background-size: 200% auto;
    animation: liv-skeleton 1.5s linear infinite;
    border-radius: var(--li-radius-sm);
    color: transparent !important;
    pointer-events: none;
}

.liv-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--li-border-dark);
    border-top-color: var(--li-green);
    border-radius: 50%;
    animation: liv-spin 0.8s linear infinite;
    display: inline-block;
}


/* =====================================================================
   16. UTILITY CLASSES
   ===================================================================== */
.liv-text-green  { color: var(--li-green) !important; }
.liv-text-gold   { color: var(--li-gold) !important; }
.liv-text-muted  { color: var(--li-text-muted) !important; }
.liv-text-light  { color: var(--li-text-light) !important; }
.liv-text-danger { color: var(--li-danger) !important; }
.liv-text-success{ color: var(--li-success) !important; }

.liv-fw-700 { font-weight: 700 !important; }
.liv-fw-800 { font-weight: 800 !important; }
.liv-fw-900 { font-weight: 900 !important; }

.liv-uppercase { text-transform: uppercase !important; letter-spacing: 0.5px; }

.liv-hidden { display: none !important; }
.liv-invisible { visibility: hidden !important; }

/* Summary / TotalHTML fields hidden everywhere (sidebar replaces them) */
.liv-summary-hidden { display: none !important; }

/* Entrance animation helper */
.liv-animate-rise {
    animation: liv-rise 0.4s var(--li-ease-out) both;
}

.liv-animate-rise-delay-1 { animation-delay: 0.08s; }
.liv-animate-rise-delay-2 { animation-delay: 0.16s; }
.liv-animate-rise-delay-3 { animation-delay: 0.24s; }
.liv-animate-rise-delay-4 { animation-delay: 0.32s; }


/* =====================================================================
   17. RESPONSIVE HELPERS
   ===================================================================== */
@media (max-width: 991px) {
    .liv-checkout-layout {
        flex-direction: column;
    }

    #liv-order-sidebar,
    .liv-order-sidebar {
        display: none !important;   /* mobile bar replaces it */
    }

    .liv-flavor-btn {
        flex: 1 1 calc(50% - var(--li-space-sm));
    }
}

@media (max-width: 767px) {
    .liv-membership-group {
        flex-direction: column;
    }
    .liv-membership-btn {
        min-width: unset;
    }
    .liv-btn-primary,
    .liv-btn-gold,
    .liv-btn-ghost,
    .liv-btn-outline {
        width: 100% !important;
        justify-content: center;
    }
}
