/* ================================================================
   Superspeed Booking — design system (v2 / world-class pass)

   Loaded after style.css / booking.css. Establishes a coherent
   visual language inspired by best-in-class booking experiences
   (Apple, Uber, Lyft) — bold typography, generous whitespace,
   refined neutrals, physical micro-interactions. Targets the
   existing markup classes so no view rewrites are required.
   ================================================================ */

/* ---------------- Design tokens ---------------- */
:root {
    /* Brand */
    --ss-primary:        #E63926;
    --ss-primary-dark:   #B22817;
    --ss-primary-soft:   #FEF1EE;
    --ss-primary-glow:   rgba(230, 57, 38, 0.18);
    --ss-primary-ring:   rgba(230, 57, 38, 0.12);

    /* Neutrals — warm, refined, not cold gray */
    --ss-ink:            #0A0A0A;
    --ss-text:           #18181B;
    --ss-text-muted:     #52525B;
    --ss-text-soft:      #A1A1AA;
    --ss-text-faint:     #D4D4D8;

    /* Surfaces */
    --ss-surface:        #FFFFFF;
    --ss-surface-alt:    #FAFAF9;
    --ss-surface-tint:   #F5F5F4;
    --ss-surface-dark:   #18181B;

    /* Borders */
    --ss-border-faint:   #F4F4F5;
    --ss-border:         #E4E4E7;
    --ss-border-strong:  #D4D4D8;

    /* Status */
    --ss-success:        #16A34A;
    --ss-success-dark:   #15803D;
    --ss-success-soft:   #F0FDF4;
    --ss-warning:        #F59E0B;
    --ss-danger:         #DC2626;

    /* Radius scale */
    --ss-r-xs:           6px;
    --ss-r-sm:           10px;
    --ss-r-md:           14px;
    --ss-r-lg:           20px;
    --ss-r-xl:           28px;
    --ss-r-pill:         999px;

    /* Shadows — soft, layered, never heavy */
    --ss-shadow-xs:      0 1px 2px rgba(10, 10, 10, 0.04);
    --ss-shadow-sm:      0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(10, 10, 10, 0.06);
    --ss-shadow-md:      0 4px 8px -2px rgba(10, 10, 10, 0.06), 0 2px 4px -2px rgba(10, 10, 10, 0.04);
    --ss-shadow-lg:      0 12px 24px -8px rgba(10, 10, 10, 0.12), 0 4px 8px -4px rgba(10, 10, 10, 0.06);
    --ss-shadow-xl:      0 24px 48px -12px rgba(10, 10, 10, 0.18);
    --ss-shadow-primary: 0 8px 24px -6px var(--ss-primary-glow);
    --ss-ring-primary:   0 0 0 4px var(--ss-primary-ring);

    /* Spacing scale — tightened per UX feedback (was clamp(4, 8vw, 8)) */
    --ss-space-section:  clamp(2.5rem, 5vw, 5rem);
    --ss-space-block:    clamp(1.75rem, 3vw, 3rem);

    /* Motion */
    --ss-ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --ss-ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --ss-ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --ss-fast:           120ms var(--ss-ease);
    --ss-base:           220ms var(--ss-ease);
    --ss-slow:           400ms var(--ss-ease-out);

    /* Type */
    --ss-font:           'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------------- Reset / base ---------------- */
body {
    font-family: var(--ss-font);
    color: var(--ss-text);
    background-color: var(--ss-surface-alt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

main { background-color: var(--ss-surface-alt); }

/* Override the old gray section backgrounds with the new refined neutrals */
.bg-light-grey       { background-color: var(--ss-surface-alt) !important; }
.text-darker-grey    { color: var(--ss-text) !important; }
.bg-white            { background-color: var(--ss-surface) !important; }

/* Section alternation matches the new flow order:
   car (white) → scheduling (alt) → add-ons (white) → driver info (alt) */
#carSelectionSection     { background: var(--ss-surface) !important; }
#schedulingSection       { background: var(--ss-surface-alt) !important; }
#globalOptionsSection    { background: var(--ss-surface) !important; }
#participantInfoSection  { background: var(--ss-surface-alt) !important; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ss-font);
    color: var(--ss-ink);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.text-ci-red  { color: var(--ss-primary) !important; }
.text-secondary { color: var(--ss-text-muted) !important; }
.text-darker-grey { color: var(--ss-text) !important; }

/* ---------------- Booking page header (the "Choose your SUPERCAR" block) ---------------- */
#bookingPageWrapper > header {
    background: linear-gradient(180deg, var(--ss-surface) 0%, var(--ss-surface-alt) 100%);
    border-bottom: 1px solid var(--ss-border-faint);
    padding: clamp(2rem, 5vw, 4rem) 1.5rem clamp(2rem, 5vw, 5rem) !important;
    margin-bottom: 0 !important;
    position: relative;
}
#bookingPageWrapper > header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--ss-primary);
    border-radius: var(--ss-r-pill);
}
#bookingPageTitle {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--ss-ink) !important;
    margin-bottom: 0.75rem !important;
}
#bookingPageSubtitle {
    color: var(--ss-text-muted) !important;
    font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
    font-weight: 500;
    max-width: 540px;
    margin: 0.5rem auto 0 !important;
}

/* BACK button refinement */
#bookingPageWrapper > header .btn-outline-secondary {
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* ---------------- Section pattern ---------------- */
#bookingPageWrapper section,
#selectedExperiencesContainer {
    padding: var(--ss-space-section) 1rem !important;
    position: relative;
}
@media (min-width: 768px) {
    #bookingPageWrapper section { padding: var(--ss-space-section) 2rem !important; }
}

/* The booking page sits on the body background. Remove the aside's
   extra top margin since the section above already provides spacing. */
#bookingPageWrapper > main > aside {
    margin-top: 0 !important;
    margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

/* And the booking-page header itself can lose the extra bottom padding now
   that section padding-top handles the gap. */
#bookingPageWrapper > header {
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* Section heading transformation: text-only h2 → step-indicator + huge title */
#globalOptionsSection > div > h2,
#schedulingSection    > div > h2,
#participantInfoSection > div > h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: var(--ss-ink) !important;
    text-align: center;
    margin: 0 auto var(--ss-space-block) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1;
    max-width: 780px;
    padding-top: 2.25rem; /* leaves room for the absolute-positioned "Next step" pill */
    position: relative;
}
#globalOptionsSection > div > h2::before,
#schedulingSection    > div > h2::before,
#participantInfoSection > div > h2::before {
    content: 'Next step';
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ss-primary-soft);
    color: var(--ss-primary);
    padding: 7px 16px;
    border-radius: var(--ss-r-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px var(--ss-primary-ring);
}

/* Selected Experiences sub-heading */
#selectedExperiencesContainer h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    text-align: center;
    margin-bottom: var(--ss-space-block) !important;
    letter-spacing: -0.025em !important;
}

/* Constrain wide section contents to a comfortable reading width */
#globalOptionsSection > div,
#schedulingSection > div,
#participantInfoSection > div,
#selectedExperiencesContainer > div,
#carSelectionSection > div {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------- Buttons — unified pill system ---------------- */
.btn {
    font-family: var(--ss-font) !important;
    font-weight: 700 !important;
    letter-spacing: 0.015em !important;
    padding: 14px 28px !important;
    border-radius: var(--ss-r-pill) !important;
    border: 2px solid transparent !important;
    transition: var(--ss-base) !important;
    line-height: 1 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn:focus-visible { box-shadow: var(--ss-ring-primary) !important; outline: none !important; }
.btn:active:not(:disabled):not(.disabled) { transform: scale(0.97); }
.btn-sm { padding: 9px 18px !important; font-size: 13px !important; }
.btn-lg { padding: 18px 36px !important; font-size: 17px !important; }

/* Primary (red CTA) */
.btn-danger, .btn-ci-red {
    background-color: var(--ss-primary) !important;
    border-color: var(--ss-primary) !important;
    color: #fff !important;
    box-shadow: var(--ss-shadow-primary) !important;
}
.btn-danger:hover, .btn-danger:focus,
.btn-ci-red:hover, .btn-ci-red:focus {
    background-color: var(--ss-primary-dark) !important;
    border-color: var(--ss-primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px -8px var(--ss-primary-glow), 0 4px 8px -2px rgba(10,10,10,0.06) !important;
    transform: translateY(-1px);
}

/* Outline primary */
.btn-outline-danger {
    background: transparent !important;
    border: 2px solid var(--ss-primary) !important;
    color: var(--ss-primary) !important;
}
.btn-outline-danger:hover, .btn-outline-danger:focus {
    background: var(--ss-primary) !important;
    color: #fff !important;
    box-shadow: var(--ss-shadow-primary) !important;
}

/* Secondary (subtle gray outline, e.g. BACK) */
.btn-outline-secondary {
    background: transparent !important;
    border: 2px solid var(--ss-border-strong) !important;
    color: var(--ss-text-muted) !important;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background: var(--ss-surface) !important;
    border-color: var(--ss-ink) !important;
    color: var(--ss-ink) !important;
    box-shadow: var(--ss-shadow-sm) !important;
}

/* Dark */
.btn-dark {
    background-color: var(--ss-ink) !important;
    border-color: var(--ss-ink) !important;
    color: #fff !important;
}
.btn-dark:hover { background-color: #000 !important; box-shadow: var(--ss-shadow-md) !important; }
.btn-outline-dark {
    background: transparent !important;
    border: 2px solid var(--ss-ink) !important;
    color: var(--ss-ink) !important;
}
.btn-outline-dark:hover {
    background: var(--ss-ink) !important;
    color: #fff !important;
    box-shadow: var(--ss-shadow-md) !important;
}

/* Success (checkout) — green primary */
.btn-ci-success {
    background-color: var(--ss-success) !important;
    border-color: var(--ss-success) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px -6px rgba(22, 163, 74, 0.30) !important;
}
.btn-ci-success:hover:not(:disabled) {
    background-color: var(--ss-success-dark) !important;
    border-color: var(--ss-success-dark) !important;
    box-shadow: 0 12px 28px -8px rgba(22, 163, 74, 0.40) !important;
    transform: translateY(-1px);
}
.btn-ci-success:disabled, .btn-ci-success.disabled {
    background-color: var(--ss-border) !important;
    border-color: var(--ss-border) !important;
    color: var(--ss-text-soft) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 1;
}

/* Light secondary */
.btn-secondary {
    background: var(--ss-surface) !important;
    border-color: var(--ss-border-strong) !important;
    color: var(--ss-text-muted) !important;
}
.btn-secondary:hover {
    background: var(--ss-surface-alt) !important;
    border-color: var(--ss-ink) !important;
    color: var(--ss-ink) !important;
}

/* Text-only link button */
.btn-link {
    color: var(--ss-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.btn-link:hover { color: var(--ss-primary-dark) !important; text-decoration: underline !important; }

/* ---------------- Cards (cars, addons, categories) ---------------- */
.car-card {
    background: var(--ss-surface) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-r-xl) !important;
    /* Resting elevation: shadow-xs was too faint on a near-white page —
       the cards lost their edge against --ss-surface-alt. Stepping to
       shadow-sm gives a clear-but-quiet lift. */
    box-shadow: var(--ss-shadow-sm) !important;
    transition: var(--ss-base) !important;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.car-card:hover {
    border-color: var(--ss-border-strong) !important;
    box-shadow: var(--ss-shadow-lg) !important;
    transform: translateY(-4px);
}
.car-card.border-danger,
.car-card.border-3 {
    border: 2px solid var(--ss-primary) !important;
    box-shadow: var(--ss-ring-primary), var(--ss-shadow-lg) !important;
    transform: translateY(-2px);
}
/* Selected badge — small checkmark in corner */
.car-card.border-danger::after,
.car-card.border-3::after {
    content: '✓';
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    background: var(--ss-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: var(--ss-shadow-primary);
    animation: ss-pop 220ms var(--ss-ease-spring);
    z-index: 2;
}
@keyframes ss-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.car-card h3, .car-card h6 { color: var(--ss-ink) !important; font-weight: 700; }
.car-card .text-danger { color: var(--ss-primary) !important; font-weight: 800; }
.car-card img:not(.addon-card-img) {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    /* Image zone gets a slightly cooler/darker tint than the body so
       the photo area is clearly demarcated from the white info area
       even when the cutout PNG leaves negative space showing. */
    background: #EFEFEC;
    border-bottom: 1px solid var(--ss-border-faint);
}

/* Add-on card image area */
.addon-card-img {
    background: var(--ss-surface-tint);
    border-bottom: 1px solid var(--ss-border-faint);
    aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: 1.25rem !important;
}

/* Category cards on the first page — bigger, more dramatic */
.category-card {
    background: var(--ss-surface) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-r-xl) !important;
    box-shadow: var(--ss-shadow-sm) !important;
    transition: var(--ss-base) !important;
    overflow: hidden;
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--ss-primary) !important;
    box-shadow: var(--ss-shadow-xl) !important;
    transform: translateY(-6px);
}
.category-card img {
    transition: transform 600ms var(--ss-ease-out);
}
.category-card:hover img {
    transform: scale(1.03);
}

/* ---------------- Forms ---------------- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    border: 1.5px solid var(--ss-border) !important;
    border-radius: var(--ss-r-md) !important;
    padding: 14px 18px !important;
    font-family: var(--ss-font) !important;
    font-size: 15px !important;
    background-color: var(--ss-surface) !important;
    color: var(--ss-ink) !important;
    transition: var(--ss-fast) !important;
    box-shadow: var(--ss-shadow-xs) !important;
}
.form-control:hover,
input:hover, textarea:hover, select:hover { border-color: var(--ss-border-strong) !important; }
.form-control:focus,
.form-select:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--ss-primary) !important;
    box-shadow: var(--ss-ring-primary), var(--ss-shadow-xs) !important;
    outline: none !important;
}
.form-control::placeholder { color: var(--ss-text-soft); }

.form-label {
    font-weight: 600 !important;
    color: var(--ss-ink) !important;
    font-size: 13px !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase;
}
.form-label .text-danger { color: var(--ss-primary) !important; }

.form-check-input {
    border: 2px solid var(--ss-border-strong) !important;
    border-radius: var(--ss-r-xs) !important;
    width: 1.15em !important;
    height: 1.15em !important;
    margin-top: 0.2em;
    cursor: pointer;
    transition: var(--ss-fast);
}
.form-check-input:hover { border-color: var(--ss-primary) !important; }
.form-check-input:checked {
    background-color: var(--ss-primary) !important;
    border-color: var(--ss-primary) !important;
    box-shadow: var(--ss-shadow-primary) !important;
}
.form-check-input:focus { box-shadow: var(--ss-ring-primary) !important; }
.form-check-label { color: var(--ss-text); font-weight: 500; cursor: pointer; }

/* Driver-info section: the dark gray slab becomes a clean white card with depth */
#participantInfoSection .bg-secondary {
    background-color: var(--ss-surface) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-r-xl) !important;
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    box-shadow: var(--ss-shadow-md) !important;
    max-width: 920px;
    margin: 0 auto;
}

/* ---------------- Order summary aside ---------------- */
#bookingPageWrapper > main > aside {
    max-width: 760px !important;
    margin: 2rem auto 3rem !important;
    padding: 0 1rem !important;
}
#bookingPageWrapper > main > aside > .bg-white {
    background: var(--ss-surface) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-r-xl) !important;
    box-shadow: var(--ss-shadow-lg) !important;
    padding: clamp(1.75rem, 4vw, 2.5rem) !important;
}
#requiredDetails {
    color: var(--ss-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* The big CTA at the bottom */
#checkoutButton {
    border-radius: var(--ss-r-pill) !important;
    font-size: 16px !important;
    padding: 20px 32px !important;
    letter-spacing: 0.04em !important;
    margin-top: 1.5rem !important;
}

/* ---------------- Calendar / time-slot wrapper card ---------------- */
#globalScheduleSelectorContainer .p-4.bg-white {
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-r-xl) !important;
    box-shadow: var(--ss-shadow-sm) !important;
    padding: clamp(1.5rem, 3vw, 2rem) !important;
}
#globalScheduleSelectorContainer h5,
#globalScheduleSelectorContainer h6 {
    color: var(--ss-ink) !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

/* Time slot buttons — make them feel tactile */
#timeSelectorWrapper .btn {
    padding: 12px 0 !important;
    font-size: 14px !important;
}

/* ---------------- Inline calendar ---------------- */
/* Override the universal .btn pill rules for day cells specifically.
   Without this, every day cell becomes a giant orange pill. */
.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
}
.calendar-day-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.calendar-day-cell .btn,
.calendar-day-cell .btn.btn-lg {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: var(--ss-r-md) !important;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    color: var(--ss-ink) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: var(--ss-fast) !important;
    position: relative;
}
.calendar-day-cell .btn .fs-5,
.calendar-day-cell .btn .fw-bold {
    font-size: 14px !important;
    font-weight: 600 !important;
}
.calendar-day-cell .btn:hover:not(:disabled) {
    background: var(--ss-primary-soft) !important;
    color: var(--ss-primary) !important;
    border-color: var(--ss-primary-soft) !important;
    transform: none !important;
    box-shadow: none !important;
}
/* Available (default) day */
.calendar-day-cell .btn-outline-danger {
    background: transparent !important;
    color: var(--ss-ink) !important;
    border-color: transparent !important;
}
.calendar-day-cell .btn-outline-danger::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ss-primary);
}
.calendar-day-cell .btn-outline-danger:hover {
    background: var(--ss-primary-soft) !important;
    color: var(--ss-primary) !important;
    border-color: var(--ss-primary-soft) !important;
}
/* Selected day */
.calendar-day-cell .btn-danger {
    background: var(--ss-primary) !important;
    color: #fff !important;
    border-color: var(--ss-primary) !important;
    box-shadow: var(--ss-shadow-primary) !important;
    transform: none !important;
}
.calendar-day-cell .btn-danger::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}
/* Past / fully booked */
.calendar-day-cell .date-fully-booked,
.calendar-day-cell .btn:disabled {
    background: transparent !important;
    color: var(--ss-text-soft) !important;
    border-color: transparent !important;
    text-decoration: line-through;
    cursor: not-allowed !important;
    opacity: 0.55;
    pointer-events: none;
}
.calendar-day-cell .date-fully-booked:hover {
    background: transparent !important;
    color: var(--ss-text-soft) !important;
    border-color: transparent !important;
    transform: none !important;
}

/* Month nav header (< Month YYYY >) — small icon buttons, not pills */
#globalScheduleSelectorContainer .d-flex.justify-content-between.align-items-center > .btn,
#globalScheduleSelectorContainer .d-flex.justify-content-between.align-items-center > .btn.btn-sm {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--ss-border) !important;
    background: var(--ss-surface) !important;
    color: var(--ss-text-muted) !important;
    font-size: 12px !important;
    flex: none;
    box-shadow: none !important;
}
#globalScheduleSelectorContainer .d-flex.justify-content-between.align-items-center > .btn:hover {
    background: var(--ss-primary-soft) !important;
    color: var(--ss-primary) !important;
    border-color: var(--ss-primary) !important;
    transform: none !important;
}

/* Month / year header */
#globalScheduleSelectorContainer .d-flex.justify-content-between.align-items-center > h6 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--ss-ink) !important;
    text-transform: none !important;
    letter-spacing: -0.005em !important;
    margin: 0 !important;
    text-align: center !important;
    flex: 1;
}

/* Day-of-week header row */
.calendar-grid.text-uppercase > div {
    padding: 8px 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--ss-text-soft) !important;
    letter-spacing: 0.1em !important;
}

/* The "Select a Date" / "Select a Time" panel headers */
#globalScheduleSelectorContainer .d-flex.flex-column.flex-md-row.justify-content-between.align-items-center h5,
#globalScheduleSelectorContainer .d-flex.flex-column.flex-md-row.justify-content-between.align-items-center h6 {
    font-size: 1rem !important;
    font-weight: 700 !important;
}
#globalScheduleSelectorContainer .text-danger {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}
#globalScheduleSelectorContainer .text-ci-success {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--ss-success) !important;
}

/* ---------------- Modals ---------------- */
.modal-content {
    border: none !important;
    border-radius: var(--ss-r-xl) !important;
    box-shadow: var(--ss-shadow-xl) !important;
}
.modal-header {
    border-bottom: 1px solid var(--ss-border-faint) !important;
    padding: 1.75rem 2rem !important;
}
.modal-header .modal-title {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.015em;
    color: var(--ss-ink);
}
.modal-body { padding: 1.5rem 2rem !important; }
.modal-footer {
    border-top: 1px solid var(--ss-border-faint) !important;
    padding: 1.5rem 2rem !important;
}
.btn-close {
    border-radius: var(--ss-r-pill) !important;
    padding: 0.5rem !important;
    background-color: var(--ss-surface-alt) !important;
}
.btn-close:hover { background-color: var(--ss-border) !important; }

/* ---------------- Alerts ---------------- */
.alert {
    border: none !important;
    border-radius: var(--ss-r-md) !important;
    padding: 1rem 1.25rem !important;
    font-weight: 500;
    box-shadow: var(--ss-shadow-xs);
}
.alert-warning {
    background-color: #FFF7ED !important;
    color: #9A3412 !important;
    border-left: 4px solid var(--ss-warning) !important;
}
.alert-danger {
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
    border-left: 4px solid var(--ss-danger) !important;
}
.alert-secondary {
    background-color: var(--ss-surface) !important;
    color: var(--ss-text) !important;
    border: 1px solid var(--ss-border) !important;
}
.alert-success {
    background-color: var(--ss-success-soft) !important;
    color: var(--ss-success-dark) !important;
    border-left: 4px solid var(--ss-success) !important;
}

/* Shopping cart badge */
#headerCartBubble {
    background-color: var(--ss-primary) !important;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 0 0 2px #fff;
    min-width: 18px;
}

/* Add-on compatibility warning */
#addonCompatibilityWarnings .alert {
    background: var(--ss-primary-soft) !important;
    color: var(--ss-primary-dark) !important;
    border-left: 4px solid var(--ss-primary) !important;
}

/* ---------------- Categories page (first screen) ---------------- */
#categoryPage #categoryHeaderImage {
    height: clamp(280px, 38vw, 460px) !important;
    object-fit: cover;
    filter: brightness(0.65);
}
#categoryPage #categoryTextContainer {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding-bottom: 0 !important;
}
#categoryHeader {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 16px rgba(0,0,0,0.45) !important;
    line-height: 1.05;
}
#categoryHeaderDescription {
    font-size: clamp(1rem, 1.4vw, 1.25rem) !important;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
    opacity: 0.95;
}

/* ---------------- Gift card page tweaks ---------------- */
#giftCardAmountButtons .btn {
    padding: 14px 0 !important;
    font-size: 15px !important;
}
.page-intro-text,
.page-intro-text-gift-card {
    font-size: 1.05rem;
    color: var(--ss-text-muted);
    line-height: 1.6;
}

/* ---------------- Footer ---------------- */
/* Matches the live WP main-site footer: light cream/white background,
   dark text, brand-color social icons, generous breathing room. */
.site-footer {
    background-color: var(--ss-surface) !important;
    color: var(--ss-text) !important;
    padding: clamp(3.5rem, 6vw, 6rem) 1rem clamp(2.5rem, 4vw, 4rem) !important;
    margin-top: clamp(3rem, 6vw, 6rem) !important;
    border-top: 1px solid var(--ss-border-faint);
}
.site-footer .container { max-width: 1280px; }
.site-footer h6 {
    color: var(--ss-ink) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 1.25rem !important;
    text-transform: uppercase;
}
.site-footer p,
.site-footer .text-grey {
    color: var(--ss-text) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500;
}
.site-footer p b,
.site-footer p strong { font-weight: 700; }

.site-footer a {
    color: var(--ss-text) !important;
    text-decoration: none;
    transition: color 0.15s var(--ss-ease);
}
.site-footer a:hover { color: var(--ss-primary) !important; }

.site-footer .logo-ss-footer {
    max-height: 70px;
    width: auto;
    opacity: 1;
    filter: none; /* keep the real-color logo on a light bg */
}
.site-footer img[alt*="Circuit"] {
    filter: none;
    opacity: 1;
    max-height: 60px !important;
}

/* Phone + envelope icons stay primary red, matching the WP marketing footer. */
.site-footer .fa-phone,
.site-footer .fa-envelope {
    color: var(--ss-primary) !important;
    width: 1.2em;
    margin-right: 4px;
}

/* Social icons keep brand colors — match the WP marketing footer exactly. */
.site-footer .fa-facebook {
    background-color: #1877F2 !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    margin-right: 6px;
    transition: var(--ss-fast);
}
.site-footer .fa-instagram {
    background-color: #0a0a0a !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    border: none !important;
    margin-right: 6px;
    transition: var(--ss-fast);
}
.site-footer .fa-facebook:hover,
.site-footer .fa-instagram:hover {
    transform: translateY(-2px);
    box-shadow: var(--ss-shadow-md);
}

/* Thin copyright bar under the footer — light to match the rest. */
.bottom-footer {
    background-color: var(--ss-surface-tint) !important;
    color: var(--ss-text-muted) !important;
    padding: 1.25rem 1rem !important;
    height: auto !important;
    min-height: auto !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-align: center !important;
    letter-spacing: 0.02em !important;
    border-top: 1px solid var(--ss-border-faint);
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 3rem 1rem 2.5rem !important;
        text-align: center;
    }
    .site-footer .logo-ss-footer { max-height: 60px; }
    .site-footer h6 { margin-top: 1.5rem !important; }
    .site-footer .fa-facebook,
    .site-footer .fa-instagram { margin: 4px; }
}

/* ---------------- Selection state of input-groups (quantity addons) ---------------- */
.input-group { border-radius: var(--ss-r-md) !important; overflow: hidden; }
.input-group .btn {
    padding: 10px 14px !important;
    border-radius: 0 !important;
    border-color: var(--ss-border-strong) !important;
}
.input-group .form-control {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* ---------------- Section-gated overlay refinement ---------------- */
.section-gated-card {
    border: none !important;
    background: var(--ss-surface) !important;
    box-shadow: var(--ss-shadow-xl), var(--ss-ring-primary) !important;
    border-radius: var(--ss-r-xl) !important;
    padding: 2rem 2.5rem !important;
}
.section-gated-icon {
    background: var(--ss-primary-soft) !important;
    box-shadow: 0 0 0 8px rgba(230, 57, 38, 0.05);
}
.section-gated-message {
    font-weight: 700;
    font-size: 1.15rem !important;
    letter-spacing: -0.015em;
    color: var(--ss-ink) !important;
}
.section-gated-sub { color: var(--ss-text-muted) !important; font-size: 0.9rem !important; }

/* ---------------- Selected experiences "your cars" list ---------------- */
#selectedExperiencesContainer .car-card {
    box-shadow: var(--ss-shadow-md) !important;
}

/* ---------------- Hide some legacy clutter ---------------- */
.bottom-footer { /* normalize legacy fixed-height that was clipping */
    position: relative !important;
}

/* ---------------- Small touches: smooth scroll, focus visibility ---------------- */
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--ss-primary); outline-offset: 2px; border-radius: 4px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 575.98px) {
    #bookingPageWrapper > header { padding: 1.75rem 1rem 2rem !important; }
    .modal-body, .modal-header, .modal-footer { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

/* ---------------- Print: clean receipt look ---------------- */
@media print {
    body { background: #fff !important; }
    .btn, .site-header, .bottom-footer { display: none !important; }
}

/* ---------------- Cart page + inline Stripe payment ---------------- */
#cartPage { background: var(--ss-surface-alt); }
#cartContent { border-radius: var(--ss-r-lg); }
#cartPage > header h1 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    color: var(--ss-ink) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.cart-summary-box {
    background: var(--ss-surface) !important;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-r-xl) !important;
    box-shadow: var(--ss-shadow-md) !important;
    padding: 1.75rem !important;
    color: var(--ss-ink) !important;
}
.cart-summary-box h2,
.cart-summary-box h4 {
    color: var(--ss-ink) !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em;
}
.cart-summary-box .text-white { color: var(--ss-ink) !important; }
.cart-summary-box .form-check-label.text-white { color: var(--ss-text) !important; }
.cart-summary-box .form-check-label a {
    color: var(--ss-primary) !important;
    font-weight: 700;
    text-decoration: underline;
}
.cart-summary-box .bg-light {
    background: var(--ss-surface-tint) !important;
    border-radius: var(--ss-r-md) !important;
    padding: 1.25rem !important;
}
.cart-summary-box .border-top    { border-top-color: var(--ss-border) !important; }
.cart-summary-box .border-bottom { border-bottom-color: var(--ss-border) !important; }

/* Inline Stripe payment mount area */
#stripe-payment-wrapper {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--ss-surface-tint);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-r-md);
}
.stripe-payment-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ss-ink);
    margin-bottom: 0.75rem;
}
.stripe-payment-element-mount {
    background: var(--ss-surface);
    border-radius: var(--ss-r-sm);
    padding: 0.5rem;
}
.stripe-payment-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 1.2em;
}
.stripe-payment-message-error { color: var(--ss-danger); }
.stripe-payment-message-info  { color: var(--ss-text-muted); }

/* ================================================================
   FULL time slot — make it unmistakable.
   Customer comment 5/20 re-asked for this. The slot stays visible
   so customers can SEE the time exists; it's just clearly marked
   as unavailable and not clickable.
   ================================================================ */
.time-slot-full,
button.time-slot-full {
    background-color: #FEF1EE !important;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 6px,
        rgba(230, 57, 38, 0.06) 6px,
        rgba(230, 57, 38, 0.06) 7px
    ) !important;
    border: 1px solid #F3C9C2 !important;
    color: var(--ss-text-soft) !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    border-radius: var(--ss-r-sm) !important;
    padding: 8px 4px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}
.time-slot-full:hover,
.time-slot-full:focus { transform: none !important; box-shadow: none !important; }
.time-slot-full .time-slot-time {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ss-text-soft) !important;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.time-slot-full .time-slot-full-label {
    display: inline-block;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--ss-primary);
    padding: 1px 7px;
    border-radius: var(--ss-r-pill);
    line-height: 1.4;
}

/* ================================================================
   Cart booking card — refined / luxury treatment.

   Overrides the markup that booking.js's renderCartPage() generates
   ($bg-white .p-3 .shadow). Inline font-sizes need !important to
   beat. Design intent: Bentley / McLaren configurator. Hairline
   borders, no shadow, generous internal padding, monochrome ink
   hierarchy, refined section labels, the brand red used only as
   a single accent line under the header.
   ================================================================ */
#cartContent > .bg-white.shadow,
#cartContent > .shadow {
    background: var(--ss-surface) !important;
    border: 1px solid var(--ss-border-faint) !important;
    border-radius: var(--ss-r-lg) !important;
    box-shadow: none !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 1rem !important;
    transition: border-color var(--ss-fast);
}
#cartContent > .bg-white.shadow:hover { border-color: var(--ss-border-strong) !important; }

/* Top row: "DRIVER #1" header + actions. Driver label becomes a tracked
   small-caps caption. A 24px primary-red hairline sits directly below. */
#cartContent .bg-white.shadow > .d-flex.justify-content-between.align-items-center:first-child {
    border-bottom: none !important;
    padding-bottom: 0.25rem !important;
    margin-bottom: 0 !important;
    position: relative;
}
#cartContent .bg-white.shadow > .d-flex.justify-content-between.align-items-center:first-child::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; bottom: -0.4rem;
    width: 28px;
    height: 2px;
    background: var(--ss-primary);
    border-radius: 2px;
}
#cartContent h3.h5 {
    color: var(--ss-text-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}
/* Edit / delete buttons — subtle icons, hover reveals brand color */
#cartContent .bg-white.shadow .btn-sm.btn-outline-danger {
    background: transparent !important;
    border: none !important;
    color: var(--ss-text-soft) !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: var(--ss-fast) !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
#cartContent .bg-white.shadow .btn-sm.btn-outline-danger:hover {
    background: var(--ss-surface-tint) !important;
    color: var(--ss-primary) !important;
    transform: none !important;
}

/* Driver / Date / Time meta row */
#cartContent .bg-white.shadow > .row {
    margin-top: 1.4rem !important;
    --bs-gutter-y: 0.5rem;
}
#cartContent .bg-white.shadow > .row p {
    font-size: 13.5px !important;
    color: var(--ss-text) !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.5;
    font-weight: 500;
}
#cartContent .bg-white.shadow > .row p strong {
    color: var(--ss-text-soft) !important;
    font-weight: 600 !important;
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    display: block;
    margin-bottom: 0.15rem;
}

/* The car-item row (image + name + price). Gives the image room to breathe. */
#cartContent .bg-white.shadow .position-relative.d-flex {
    border-top: 1px solid var(--ss-border-faint) !important;
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
    gap: 1.5rem !important;
    align-items: center !important;
}
#cartContent .cart-item-img {
    width: 180px !important;
    height: 110px !important;
    object-fit: contain !important; /* whole car visible, no crop — tint bg acts as letterbox */
    object-position: center !important;
    padding: 6px;
    border-radius: var(--ss-r-md) !important;
    background: var(--ss-surface-tint);
    flex-shrink: 0;
}
#cartContent .bg-white.shadow h4.h6 {
    color: var(--ss-ink) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
}
/* "Drive" / "Ride-along" tag — quiet tracked label, not a chunky gray pill */
#cartContent .badge.bg-grey,
#cartContent h4.h6 .badge {
    background: transparent !important;
    color: var(--ss-text-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    padding: 4px 0 !important;
    border: none !important;
    margin-top: 0 !important;
    display: inline-block;
}
#cartContent h4.h6 br + .badge { display: inline; margin-left: 0.5rem; }
#cartContent .bg-white.shadow p.text-secondary {
    color: var(--ss-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}
/* Per-item price — tabular figure, ink-color */
#cartContent .bg-white.shadow .text-end .fw-bold.text-dark {
    color: var(--ss-ink) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}

/* Per-item delete icon (top-right of the item row) — even more subtle */
#cartContent .position-relative > .btn-outline-danger.position-absolute {
    background: transparent !important;
    color: var(--ss-text-soft) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: var(--ss-fast);
}
#cartContent .position-relative > .btn-outline-danger.position-absolute:hover {
    background: var(--ss-surface-tint) !important;
    color: var(--ss-primary) !important;
}

/* Add-ons header + rows */
#cartContent .bg-white.shadow h5.h6 {
    color: var(--ss-text-soft) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.65rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid var(--ss-border-faint) !important;
}
#cartContent .bg-white.shadow .d-flex.gap-3.align-items-center.mt-2 p {
    color: var(--ss-text) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}
#cartContent .bg-white.shadow .d-flex.gap-3.align-items-center.mt-2 .fw-bold.text-dark {
    color: var(--ss-text) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}

/* Booking Total — calm, not red. Same baseline as everything else, just
   slightly larger weight + a hairline above. */
#cartContent .bg-white.shadow > .text-end.h5.fw-bolder.text-danger {
    color: var(--ss-ink) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid var(--ss-border-faint) !important;
    font-variant-numeric: tabular-nums;
}
/* Pull "Booking Total:" label apart from amount with tracking + caps */
#cartContent .bg-white.shadow > .text-end.h5.fw-bolder.text-danger {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* Multi-car discount panel — match the same refined treatment */
#cartContent .bg-white.shadow .d-flex.gap-3.align-items-center.mt-2 p.h6 {
    color: var(--ss-success) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Responsive: stack on mobile, smaller image */
@media (max-width: 575.98px) {
    #cartContent > .bg-white.shadow { padding: 1.35rem 1.25rem !important; }
    #cartContent .cart-item-img { width: 100% !important; height: 160px !important; }
    #cartContent .bg-white.shadow .position-relative.d-flex { flex-direction: column !important; align-items: stretch !important; }
}

/* ================================================================
   Checkout panel — the "Review Your Selections" right column.

   Design intent: quiet luxury. Tight, refined, confident.
   Think Hermès / Aston Martin / Patek Philippe checkout —
   intentional whitespace, small but well-set type, the brand red
   used sparingly as accent.
   ================================================================ */
.checkout-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}
.checkout-panel-inline { margin-top: 1rem; } /* legacy — no longer used */

/* Linear single-column checkout flow. Constrained max-width so it reads
   as a focused Apple Pay / Stripe Checkout, not a sprawling table. */
.checkout-flow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.checkout-flow-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
/* Cart items inside the linear flow follow the same hairline-border
   treatment as the cards — no separate width / shadow. */
.checkout-flow #cartContent > .bg-white.shadow {
    margin-bottom: 0 !important;
}
.checkout-flow .checkout-card {
    margin-bottom: 0;
}
.checkout-card {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border-faint);
    border-radius: var(--ss-r-md);
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
}
.checkout-card-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ss-text-soft);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.checkout-card-title-meta {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ss-text-soft);
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.checkout-card-title-meta i { color: var(--ss-success); font-size: 10px; }

/* Order Summary */
.checkout-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.checkout-bookings-list:empty { display: none; }

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--ss-border-faint);
    margin-bottom: 0.85rem;
}
.checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: var(--ss-text-muted);
    font-weight: 500;
}
.checkout-totals-row span:last-child {
    color: var(--ss-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.checkout-totals-sub {
    padding-top: 0.4rem;
    border-top: 1px dashed var(--ss-border-faint);
    color: var(--ss-text);
}
.checkout-totals-sub span:last-child { font-weight: 700; }
.checkout-totals-discount span:last-child { color: var(--ss-success) !important; }
.checkout-totals-aux:empty { display: none; }

/* Grand total — confident but quiet. */
.checkout-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
    padding-top: 0.15rem;
}
.checkout-grand-total-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ss-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.checkout-grand-total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ss-ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.checkout-add-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ss-primary) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding-top: 0.65rem;
    border-top: 1px solid var(--ss-border-faint);
    width: 100%;
    justify-content: center;
    transition: color var(--ss-fast);
}
.checkout-add-link:hover { color: var(--ss-primary-dark) !important; text-decoration: underline; }
.checkout-add-link i { font-size: 10px; }

/* Promo / gift card collapsible */
.checkout-promo { padding: 0; overflow: hidden; }
.checkout-promo summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--ss-text);
    font-size: 13px;
    transition: background var(--ss-fast);
}
.checkout-promo summary:hover { background: var(--ss-surface-tint); }
.checkout-promo summary::-webkit-details-marker { display: none; }
.checkout-promo summary i.fa-tag { color: var(--ss-primary); font-size: 12px; }
.checkout-promo-caret { transition: transform var(--ss-fast); color: var(--ss-text-soft); font-size: 11px; }
.checkout-promo[open] .checkout-promo-caret { transform: rotate(180deg); }
.checkout-promo-body {
    padding: 0.85rem 1.35rem 1.1rem;
    border-top: 1px solid var(--ss-border-faint);
}
.checkout-promo-body .form-control { font-size: 13px !important; padding: 10px 12px !important; }
.checkout-promo-body .btn { font-size: 12px !important; padding: 10px 16px !important; }

/* Your information — refine TEXT inputs to be smaller / less chunky.
   Critical: scope to text-like inputs only. Catching `input` broadly
   would also pad checkboxes/radios into giant ovals. */
.checkout-panel .form-control,
.checkout-panel input[type="text"],
.checkout-panel input[type="email"],
.checkout-panel input[type="tel"],
.checkout-panel input[type="number"],
.checkout-panel input[type="password"],
.checkout-panel input[type="search"],
.checkout-panel input[type="url"],
.checkout-panel select,
.checkout-panel textarea {
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-radius: var(--ss-r-sm) !important;
    border-width: 1px !important;
}
/* Checkbox styling — small rounded square, brand red when checked.
   Targets all .checkout-panel checkboxes so the "Same as Driver"
   one at the top + the three agreement checkboxes look uniform. */
.checkout-panel input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px !important;
    border: 1.5px solid var(--ss-border-strong) !important;
    padding: 0 !important;
    margin-top: 0.15em !important;
    cursor: pointer;
    transition: var(--ss-fast);
    flex-shrink: 0;
}
.checkout-panel input[type="checkbox"]:hover { border-color: var(--ss-primary) !important; }
.checkout-panel input[type="checkbox"]:checked {
    background-color: var(--ss-primary) !important;
    border-color: var(--ss-primary) !important;
}
.checkout-panel input[type="checkbox"]:focus {
    box-shadow: var(--ss-ring-primary) !important;
    outline: none !important;
}
.checkout-panel .form-label {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: var(--ss-text-muted) !important;
    margin-bottom: 0.4rem !important;
}
.checkout-info-note {
    margin-top: 0.85rem;
    margin-bottom: 0;
    font-size: 11.5px;
    color: var(--ss-text-soft);
    line-height: 1.5;
}

/* Payment card — placeholder + mount */
.checkout-payment-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 0.75rem;
    background: var(--ss-surface-tint);
    border: 1px dashed var(--ss-border-strong);
    border-radius: var(--ss-r-sm);
    color: var(--ss-text-soft);
    font-size: 12.5px;
    text-align: center;
    flex-wrap: wrap;
}
.checkout-payment-placeholder i { font-size: 1rem; color: var(--ss-text-soft); }

/* Agreements — compact, refined */
.checkout-agreements { padding: 1rem 1.35rem 1.15rem; }
.checkout-agreements .form-check {
    margin-bottom: 0.55rem;
    padding-left: 2em;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.checkout-agreements .form-check:last-of-type { margin-bottom: 0; }
.checkout-agreements .form-check-input {
    margin-left: -2em !important;
    margin-top: 0.15em !important;
}
.checkout-agreements .form-check-label {
    font-size: 12.5px;
    color: var(--ss-text);
    line-height: 1.45;
    font-weight: 500;
}
.checkout-agreements .form-check-label a {
    color: var(--ss-primary);
    font-weight: 600;
    text-decoration: underline;
}
.checkout-required-note {
    font-size: 11px;
    color: var(--ss-text-soft);
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

/* Pay button — confident, not screaming */
.checkout-pay-button {
    width: 100%;
    background: var(--ss-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--ss-r-pill) !important;
    padding: 13px 24px !important;
    font-family: var(--ss-font) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px var(--ss-primary-glow) !important;
    transition: var(--ss-base) !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}
.checkout-pay-button:hover:not(:disabled) {
    background: var(--ss-primary-dark) !important;
    box-shadow: 0 8px 20px -6px var(--ss-primary-glow), 0 2px 4px rgba(10,10,10,0.04) !important;
    transform: translateY(-1px);
}
.checkout-pay-button:active:not(:disabled) { transform: scale(0.98); }
.checkout-pay-button:disabled {
    background: var(--ss-surface-tint) !important;
    color: var(--ss-text-soft) !important;
    box-shadow: none !important;
    border: 1px solid var(--ss-border) !important;
    cursor: not-allowed;
    opacity: 1;
}

.checkout-trust {
    text-align: center;
    margin-top: 0.65rem;
    font-size: 11px;
    color: var(--ss-text-soft);
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.checkout-trust i { color: var(--ss-success); font-size: 10px; }

/* Sticky on desktop so the panel stays in view while scrolling cart items */
@media (min-width: 992px) {
    .checkout-panel {
        position: sticky;
        top: 1.5rem;
    }
}

/* Mobile: even tighter padding */
@media (max-width: 575.98px) {
    .checkout-card { padding: 1.1rem 1.15rem; }
    .checkout-promo summary { padding: 0.8rem 1.15rem; }
    .checkout-promo-body { padding: 0.85rem 1.15rem 1rem; }
    .checkout-grand-total-amount { font-size: 1.3rem; }
}

/* ---------------- Multi-car DRIVE discount promo block ----------------
   Owner feedback 6/12: the "Add Supercars and SAVE!" block was hard to
   read on mobile — the 18px paragraphs wrapped awkwardly in the narrow
   container ("DRIVE 2 Supercars and SAVE 10% on / both") and the inner
   border made it look cramped. Tighten the typography + center the
   tiers on mobile so each line reads as one clean unit. */
@media (max-width: 575.98px) {
    .div-multidiscount-promo {
        padding: 1rem 0.85rem !important;
    }
    .div-multidiscount-promo h5 {
        font-size: 1.05rem;
        margin-bottom: 0.55rem !important;
    }
    .div-multidiscount-promo .multibooking-paragraph {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 0.3rem !important;
        text-align: center;
    }
    .div-multidiscount-promo .multibooking-paragraph:last-child {
        margin-bottom: 0 !important;
    }
    .div-multidiscount-promo small {
        font-size: 11.5px;
        line-height: 1.4;
        display: block;
    }
}
