/**
 * Zero Latency Regular Sessions Booking Widget Styles
 * Popup/modal themed for regular VR session bookings
 * Updated: November 1, 2025
 */

/* Widget Overlay */
.regular-sessions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default - JS sets display:flex when opening */
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
    /* Prevent clicks passing through to page behind */
    touch-action: manipulation;
    pointer-events: auto;
    isolation: isolate;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* Package Options (Step 5) - Image-only grid */
.package-selection {
    width: 100%;
    padding: 25px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

#package-options,
.package-options {
    display: grid;
    grid-template-columns: 1fr; /* default; overridden for step 5 */
    gap: 14px;
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.package-option {
    border: 3px solid #333;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 16 / 9; /* default banner ratio (step 1 or generic) */
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    box-sizing: border-box;
}

.package-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when image missing */
.package-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e 60%, #0a0a0a);
    color: #00ffff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.pkg-initials {
    pointer-events: none;
}

/* Image wrapper to position overlay badges */
.pkg-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.pkg-img-wrap img.package-thumb {
    display: block;
}

/* Join line thumbnail styles (running sessions) */
.slot-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.slot-join-thumb {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
.slot-join-badge {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #00ffff;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
.slot-join-text {
    line-height: 1.2;
}

/* Difficulty badge */
.pkg-badge.pkg-difficulty {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1;
    padding: 7px 10px 6px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    user-select: none;
}

.pkg-badge .diff-label {
    margin-right: 8px;
    opacity: 0.95;
}
.pkg-badge .diff-stars {
    letter-spacing: 1px;
}
.pkg-badge .diff-stars .filled {
    color: #ffd700; /* gold */
}
.pkg-badge .diff-stars .empty {
    color: rgba(255, 255, 255, 0.25);
}

/* Placeholder variant with difficulty badge alignment */
.package-placeholder .pkg-badge.pkg-difficulty {
    position: absolute;
    left: 8px;
    bottom: 8px;
}

.package-option:hover {
    border-color: #00ffff; /* hover = cyan */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
}

.package-option.selected {
    border-color: #00ffff; /* selected = cyan */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Mobile: stack packages in a single column */
@media (max-width: 480px) {
    #package-options,
    .package-options {
        grid-template-columns: 1fr;
    }
}

/* Step 5: Games grid should be square 1:1 in two columns */
#widget-step-5 #package-options,
#widget-step-5 .package-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px; /* Prevent top games from being cut off */
}

#widget-step-5 .package-option {
    aspect-ratio: 1 / 1; /* square tiles for games */
}

/* Addon section: 2-column grid for 15 and 30-minute games */
#widget-step-6 .addon-section-15 .package-options,
#widget-step-6 .addon-section-30 .package-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px; /* Prevent top games from being cut off */
}

#widget-step-6 .addon-section-15 .package-option,
#widget-step-6 .addon-section-30 .package-option {
    aspect-ratio: 1 / 1; /* square tiles for addon games */
}

/* Ensure addon tiles only show the selected highlight when .selected is present */
#widget-step-6 .addon-package {
    border-color: #333;
    box-shadow: none;
}
#widget-step-6 .addon-package.selected {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Deposit selector (Step 7) */
#deposit-modal {
    padding: 20px 25px 25px 25px;
    margin: 10px !important;
}

#deposit-modal .deposit-tickets-input {
    appearance: none;
    height: 32px;
    width: 92px;
    margin: 0 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #00ffff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 8px;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.08);
    padding: 0 28px 0 10px;
    background-image:
        linear-gradient(45deg, transparent 50%, #00ffff 50%),
        linear-gradient(135deg, #00ffff 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 13px,
        calc(100% - 10px) 13px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

#deposit-modal .deposit-tickets-input:focus {
    border-color: rgba(0, 255, 255, 0.9);
    box-shadow:
        0 0 0 2px rgba(0, 255, 255, 0.18),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

/* Chrome/Safari/Edge spinner buttons */
#deposit-modal .deposit-tickets-input::-webkit-inner-spin-button,
#deposit-modal .deposit-tickets-input::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
    height: 28px;
    filter: invert(1) hue-rotate(160deg) saturate(6) brightness(1.2);
    cursor: pointer;
}

/* Firefox: keep a clean consistent look */
@-moz-document url-prefix() {
    #deposit-modal .deposit-tickets-input {
        -moz-appearance: textfield;
    }
}

/* Ensure mobile keeps 2 columns for step 5 as requested */
@media (max-width: 480px) {
    #widget-step-5 #package-options,
    #widget-step-5 .package-options {
        grid-template-columns: repeat(2, 1fr);
    }

    #widget-step-6 .addon-section-15 .package-options,
    #widget-step-6 .addon-section-30 .package-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Locked game selection notice */
#widget-step-5 .locked-note {
    margin: 8px 0 16px;
    padding: 10px 14px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    font-size: 0.85rem;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

/* Add-ons (Step 6) */
#widget-step-6 .addon-note {
    margin: 8px 0 16px;
    padding: 10px 12px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #b9f7ff;
    border-radius: 10px;
    font-size: 0.9rem;
}

#addon-options.addon-options,
#widget-step-6 .addon-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.addon-card {
    position: relative;
}

.addon-card-body {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    background: #0c0e14;
}

.addon-card-body:hover {
    border-color: #22d3ee;
}

.addon-thumb img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

.addon-thumb .pkg-initials {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #1b1e25;
    border-radius: 4px;
}

.addon-separator {
    height: 1px;
    background: #223;
    margin: 20px 0;
    width: 100%;
    opacity: 0.6;
}

/* Addon Section Styling */
.addon-section {
    margin-bottom: 20px;
}

.addon-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-price-badge {
    display: inline-block;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.4);
    text-transform: none;
    letter-spacing: 0;
}

.addon-discount-badge {
    display: inline-block;
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.4);
    text-transform: none;
    letter-spacing: 0;
}

.addon-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid #333;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
}
.addon-option input[type="radio"] {
    margin-right: 10px;
}
.addon-title {
    font-weight: 700;
    color: #fff;
}
.addon-meta {
    color: #aaa;
    font-size: 0.9rem;
}
.addon-option.disabled {
    opacity: 0.45;
    filter: grayscale(0.5);
}
.addon-option.disabled input[type="radio"] {
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* Main Widget Container */
.regular-sessions-widget {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 2px solid #00ffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px; /* original compact width */
    max-height: 90vh;
    /* Remove overflow:hidden so internal scroll areas (.widget-content, .cart-body) can scroll */
    box-shadow:
        0 0 50px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    animation: slideIn 0.4s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Ensure flex children can shrink for scroll */
    min-height: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Widget Header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
}

.widget-title {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.widget-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.widget-close:hover {
    background: rgba(255, 0, 128, 0.2);
    color: #00ffff;
    transform: scale(1.1);
}

/* Progress Indicator */
.widget-progress {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff0080);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-step {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.progress-step.active {
    color: #00ffff;
}

.progress-step.completed {
    color: #00ffff;
}

.progress-step.skipped {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Widget Content */
.widget-body-wrapper {
    display: flex;
    flex: 1 1 auto;
    position: relative;
    /* Allow children (.widget-content and .widget-cart) to scroll independently */
    min-height: 0;
    align-items: stretch; /* force equal-height columns */
    overflow: hidden; /* Prevent children from extending beyond wrapper */
}

.widget-content {
    flex: 1 1 auto; /* take remaining space after cart */
    overflow-y: auto;
    padding: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.5) rgba(0, 0, 0, 0.3);
    min-height: 0; /* critical for flex scroll */
    align-self: stretch;
}

.widget-content::-webkit-scrollbar {
    width: 6px;
}

.widget-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.widget-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.widget-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
}

/* Cart Sidebar */
.widget-cart {
    flex: 0 0 240px !important; /* cart width on desktop */
    width: 240px !important; /* fallback for older browsers */
    max-width: 260px !important;
    background: rgba(10, 10, 10, 0.95);
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* No scroll on wrapper - cart-body scrolls */
    height: auto;
    max-height: 100%;
    min-height: 0;
    align-self: stretch;
    border-bottom-right-radius: 18px; /* Match parent widget's rounded corner */
}

.cart-header {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.cart-header h4 {
    color: #00ffff;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.cart-icon {
    width: 20px;
    height: 20px;
    color: #00ffff;
}

.cart-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scroll area - flows with cart body */
.cart-scroll-area {
    flex: 0 0 auto;
}

.cart-items {
    padding: 15px;
}

.cart-empty {
    color: #666;
    text-align: center;
    padding: 30px 15px;
    font-size: 0.9rem;
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-addon .cart-item-name {
    color: #00ffff;
}

.cart-item-details {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.cart-item-price {
    color: #00ffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    flex-shrink: 0;
}

.cart-info {
    padding: 12px 15px;
    margin-bottom: 8px;
}

/* Avoid double line when .cart-info immediately follows a .cart-item (both would show a border) */
.cart-item + .cart-info {
    border-top: none;
    margin-top: 0;
}

.cart-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.cart-info-row:last-child {
    margin-bottom: 0;
}

.cart-info-icon {
    width: 16px;
    height: 16px;
    color: #00ffff;
    opacity: 0.7;
}

.cart-totals {
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #ccc;
    font-size: 0.9rem;
}

.cart-total-row span:last-child {
    font-weight: 600;
    color: #ffffff;
}

.cart-subtotal {
    padding-top: 0;
}

.cart-taxes-fees {
    border: none;
    margin: 0;
    padding: 0;
}

.cart-taxes-fees summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.cart-taxes-fees summary::-webkit-details-marker {
    display: none;
}

.cart-tax-summary {
    font-size: 0.9rem;
    position: relative;
}

.cart-tax-summary::after {
    content: "▼";
    position: absolute;
    left: -18px;
    font-size: 0.7rem;
    color: #6c6c6c;
    transition: transform 0.2s;
    margin-left: 8px;
    top: 10px;
}

.cart-taxes-fees[open] .cart-tax-summary::after {
    transform: rotate(180deg);
}

.cart-tax-breakdown {
    padding-left: 12px;
    margin-top: 4px;
}

.cart-tax-item {
    font-size: 0.8rem;
    opacity: 0.7;
    padding: 4px 0;
}

.cart-tax,
.cart-fee {
    font-size: 0.85rem;
    opacity: 0.8;
}

.cart-discount {
    color: #00ffff;
}

.cart-discount span:last-child {
    color: #00ffff;
}

.cart-grand-total {
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-grand-total span {
    color: #00ffff !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* Scrollbar styling for cart body */
.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.cart-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* Step Content */
.widget-step {
    color: white;
    display: none;
}

.widget-step.is-active {
    display: block;
}

.widget-step h3 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Session Options (Step 1) */
.session-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    visibility: visible !important;
}

.session-option {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 0; /* full-bleed image */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Session media (Step 1) */
.session-option .session-media {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3; /* shorter banner */
    max-height: 180px; /* clamp height on larger screens */
    overflow: hidden;
}
.session-option .session-media .session-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}
.session-option .session-media .session-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default, shown when image fails */
}
.session-option .session-media .session-fallback.active {
    display: block;
}
.session-option .session-media .session-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 35%,
        rgba(0, 0, 0, 0) 100%
    );
    padding: 14px 14px 12px;
    box-sizing: border-box;
    z-index: 1; /* keep overlay below brand icon */
}
.session-option .session-media .session-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.session-option .session-media .session-sub {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-top: 4px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.session-option .session-media .badge-coming-soon.overlay {
    align-self: flex-start;
    margin-bottom: 6px;
}
.session-option .session-media .session-brand-icon {
    position: absolute;
    right: 10px; /* consistent padding from edges */
    bottom: 10px;
    width: auto;
    max-width: 78px; /* fixed maximum width */
    max-height: 34px;
    height: auto;
    object-fit: contain;
    background: none;
    border: 0;
    padding: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    z-index: 2;
    pointer-events: none;
}
.session-option[data-session-id="vr-action-shooters"]
    .session-media
    .session-brand-icon {
    right: 8px;
    bottom: 8px;
}
.session-option:hover .session-media .session-brand-icon {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .session-option .session-media {
        aspect-ratio: 16 / 10; /* slightly shorter on mobile */
        max-height: 150px;
    }
    .session-option .session-media .session-brand-icon {
        max-width: 68px;
        max-height: 30px;
    }
}

.session-option:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
}

.session-option.selected {
    border-color: #ffffff; /* white selection border */
    background: rgba(255, 255, 255, 0.06); /* subtle lift without tint */
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.35),
        0 0 4px rgba(255, 255, 255, 0.5) inset;
    transform: scale(1.02);
}

/* Coming Soon Styles */
.session-option.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.session-option.coming-soon:hover {
    transform: none;
    border-color: #666;
}

.badge-coming-soon {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-coming-soon {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.5);
    color: #ffa500;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.session-header h4 {
    color: #00ffff;
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
    min-width: 150px;
}

.session-price {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.2rem;
}

.session-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.session-duration,
.session-players {
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.session-description {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Player Selection (Step 2) */
.player-selection {
    text-align: center;
}

.player-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #00ffff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.player-count {
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    min-width: 50px;
    text-align: center;
}

.player-info {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* Date & Time Selection (Step 3) */
.datetime-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-picker label {
    color: #00ffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Calendar Grid */
.calendar {
    width: 100%;
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cal-title {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
    font-size: 1.1rem;
}
.cal-nav {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    color: #00ffff;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cal-nav:hover:not([disabled]) {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}
.cal-nav[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}
.cal-weekday {
    color: #00ffff;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-cell {
    position: relative;
    aspect-ratio: 1/1;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
.cal-cell:hover:not(:disabled):not(.other) {
    border-color: #00ffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}
.cal-cell.selected {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.45);
    color: #fff;
    font-weight: 900;
    transform: scale(1.08);
}
.cal-cell.other {
    visibility: hidden;
}
.cal-cell:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cal-cell.has-tier {
    color: #f9fdff;
}
.cal-cell.has-tier:hover:not(:disabled) {
    border-color: #fff;
}
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}
.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.cal-legend-item:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
}
.cal-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    display: inline-block;
}

.cal-legend-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.cal-legend-label {
    color: #f5fdff;
    font-weight: 600;
}

.cal-legend-price {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
}

.time-slots label {
    color: #00ffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column */
    gap: 12px;
}

/* Escape rooms: 2-column layout like private events */
.time-grid.escape-room-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 18px 16px; /* wider box */
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left; /* align text left for wide boxes */
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

/* Escape rooms: left-align content within two-column grid */
.escape-room-grid .time-slot {
    text-align: left !important; /* ensure left alignment overrides other rules */
    padding: 15px;
}
.escape-room-grid .time-slot .slot-time,
.escape-room-grid .time-slot .slot-join-text,
.escape-room-grid .time-slot .slot-meta,
.escape-room-grid .time-slot .slot-game-name {
    display: block;
    text-align: left !important;
}

.time-slot:hover:not(:disabled) {
    border-color: #00ffff;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.06);
}

.time-slot.selected {
    background: linear-gradient(135deg, #00ffff, #ff0080);
    border-color: #00ffff;
    color: white;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.45);
}

.time-slot:disabled,
.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.4);
}

.slot-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.loading {
    text-align: center;
    color: #00ffff;
    padding: 20px;
    grid-column: 1 / -1;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
}

.booking-flow-hold-banner {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.28);
    border-radius: 10px;
    color: #d5fbff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.booking-flow-hold-banner strong {
    color: #00ffff;
    font-weight: 700;
}

/* Step 7: Contact Details & Discounts */
#widget-step-7 {
    padding: 25px;
    max-width: 100%;
    overflow-x: hidden;
}

#widget-step-7 .discounts {
    margin-bottom: 10px;
}

/* Side-by-side promo/gift codes */
#widget-step-7 .discounts .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

#widget-step-7 .discounts .form-row .discount-row {
    flex: 1;
    margin-bottom: 0;
}

#widget-step-7 .discount-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

#widget-step-7 .discount-row label {
    color: #00ffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

#widget-step-7 .discount-row input {
    padding: 10px 12px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid #333 !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 16px !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 44px !important;
}

#widget-step-7 .discount-row input.promo-code-locked,
#widget-step-7 .discount-row input:disabled {
    background: rgba(120, 120, 120, 0.22) !important;
    border-color: rgba(180, 180, 180, 0.45) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    cursor: not-allowed !important;
}

#widget-step-7 .discount-row input:focus {
    outline: none !important;
    color: #00ffff !important;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.3) !important;
}

#widget-step-7 .discount-row input::placeholder {
    color: #666 !important;
}

#widget-step-7 .discount-row .btn-secondary {
    display: none !important;
}

#widget-step-7 .discount-summary {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #00ffff;
}

#widget-step-7 .discount-summary:empty {
    display: none;
}

/* Hide empty booking summary on step 7 */
#widget-step-7 .booking-summary {
    display: none !important;
}

#widget-step-2 .player-promo-blurb {
    margin: 14px auto 0;
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

.cart-price-compare {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cart-price-compare .price-was {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: line-through;
}

.cart-price-compare .price-now {
    color: #7dffb3;
    font-weight: 700;
}

/* Contact & Booking Summary (Step 4) */
.booking-summary {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.summary-item .label {
    color: #ccc;
}

.summary-item .value {
    color: white;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: rgba(0, 255, 255, 0.3);
    margin: 15px 0;
}

.summary-item.total {
    font-size: 1.1rem;
    font-weight: bold;
    border-top: 2px solid #00ffff;
    padding-top: 10px;
    margin-top: 10px;
}

.summary-item.total .label {
    color: #00ffff;
}

.summary-item.total .value {
    color: #00ffff;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 5px;
    margin-bottom: 10px;
}

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

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

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

.form-group label {
    color: #00ffff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 44px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
}

/* Consent Section (Marketing + Terms Combined) */
.consent-section {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.consent-section .marketing-headline {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.consent-section .checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.consent-section input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    border: 2px solid #333 !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    position: relative !important;
}

.consent-section input[type="checkbox"]:hover {
    border-color: #00ffff;
}

.consent-section input[type="checkbox"]:checked {
    background: #00ffff !important;
    border-color: #00ffff !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

.consent-section input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    text-align: center;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
}

.consent-section .checkbox-text {
    color: #fff;
    font-weight: 400;
}

.consent-section .checkbox-text a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
}

.consent-section .checkbox-text a:hover {
    text-decoration: underline;
}

.consent-section .terms-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin: 5px 0 10px 0;
}

.consent-section .marketing-disclaimer {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 10px 0 0 0;
}

.consent-section .marketing-disclaimer a {
    color: #00ffff;
    text-decoration: none;
}

.consent-section .marketing-disclaimer a:hover {
    text-decoration: underline;
}

/* Legacy Marketing Opt-In Section (keeping for backward compatibility) */
.marketing-optin-section {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.marketing-optin-section .marketing-headline {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.marketing-optin-section .checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.marketing-optin-section input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    display: inline-block;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 2px solid #333;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.marketing-optin-section input[type="checkbox"]:hover {
    border-color: #00ffff;
}

.marketing-optin-section input[type="checkbox"]:checked {
    background: #00ffff;
    border-color: #00ffff;
    width: 20px !important;
    height: 20px !important;
}

.marketing-optin-section input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    text-align: center;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
}

.marketing-optin-section .checkbox-text {
    color: #fff;
    font-weight: 400;
}

.marketing-optin-section .marketing-disclaimer {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

.marketing-optin-section .marketing-disclaimer a {
    color: #00ffff;
    text-decoration: none;
}

.marketing-optin-section .marketing-disclaimer a:hover {
    text-decoration: underline;
}

/* Terms of Service Section */
.terms-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
}

.terms-section .checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.terms-section input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    display: inline-block;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 2px solid #333;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.terms-section input[type="checkbox"]:hover {
    border-color: #00ffff;
}

.terms-section input[type="checkbox"]:checked {
    background: #00ffff;
    border-color: #00ffff;
    width: 20px !important;
    height: 20px !important;
}

.terms-section input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    text-align: center;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
}

.terms-section .checkbox-text {
    color: #fff;
    font-weight: 400;
}

.terms-section .checkbox-text a {
    color: #00ffff;
    text-decoration: none;
}

.terms-section .checkbox-text a:hover {
    text-decoration: underline;
}

.terms-section .terms-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin: 5px 0 0 0;
}

/* Widget Footer */
.widget-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    background: #0a0a0a;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* Buttons - Matching main theme button style */
.btn-secondary,
.btn-primary {
    --btn-bg: var(--alpha, #42c1f0);
    align-items: center;
    background: var(--btn-bg);
    border: none;
    border-radius: 50px;
    color: var(--white, #fff);
    display: inline-flex;
    font-family: var(
        --title-font,
        "Montserrat",
        Georgia,
        Times,
        "Times New Roman",
        serif
    );
    font-size: 1.4rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 5rem;
    min-width: 14rem;
    overflow: hidden;
    padding: 1rem 2.5rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    width: auto;
    z-index: 0;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-secondary:before,
.btn-primary:before {
    animation: rotate 5s linear infinite;
    aspect-ratio: 1/1;
    background-image:
        linear-gradient(transparent, transparent),
        linear-gradient(to left, rgba(255, 255, 255, 0), var(--dark, #00222e)),
        linear-gradient(transparent, transparent),
        linear-gradient(to right, rgba(255, 255, 255, 0), var(--dark, #00222e));
    background-position:
        0 0,
        100% 0,
        100% 100%,
        0 100%;
    background-repeat: no-repeat;
    background-size: 50% 50%;
    content: "";
    height: auto;
    left: unset;
    margin: auto;
    position: absolute;
    top: unset;
    width: 100%;
    z-index: -2;
}

.btn-secondary:after,
.btn-primary:after {
    background: var(--alpha, #42c1f0);
    border-radius: 50px;
    content: "";
    height: calc(100% - 4px);
    left: 2px;
    position: absolute;
    top: 2px;
    width: calc(100% - 4px);
    z-index: -1;
}

.btn-secondary:hover,
.btn-primary:hover {
    color: var(--white, #fff);
}

.btn-secondary:hover:after,
.btn-primary:hover:after {
    background: var(--dark-light, #003447);
}

.btn-secondary {
    --btn-bg: transparent;
    background: transparent;
    border: 2px solid #333;
    color: #ccc;
}

.btn-secondary:before {
    display: none;
}

.btn-secondary:after {
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #666;
}

.btn-secondary:hover:after {
    background: transparent;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Vertical split for final step (Step 7) - single scroll area */
.regular-sessions-widget.vertical-final-layout .widget-body-wrapper {
    flex-direction: column !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.regular-sessions-widget.vertical-final-layout .widget-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto;
}

.regular-sessions-widget.vertical-final-layout .widget-cart {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-top: 2px solid rgba(0, 255, 255, 0.3) !important;
    order: 2 !important;
    margin-top: 20px;
    box-shadow: none !important;
    overflow: visible !important;
    flex: 0 0 auto;
    max-height: none !important;
}

.regular-sessions-widget.vertical-final-layout .cart-body {
    overflow: visible !important;
}

@keyframes rotate {
    to {
        transform: rotate(1turn);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .regular-sessions-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .regular-sessions-widget {
        max-width: 100%;
        max-height: calc(100vh - 40px);
        border-radius: 15px;
        margin-top: 0;
        overflow-x: hidden;
    }

    .widget-body-wrapper {
        flex-direction: column !important;
        overflow-x: hidden;
        max-width: 100%;
    }

    .widget-content {
        overflow-x: hidden;
        max-width: 100%;
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    .widget-cart {
        overflow-x: hidden;
        max-width: 100% !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        border-left: none !important;
        border-top: 2px solid rgba(0, 255, 255, 0.3);
    }

    .session-option,
    .session-option .session-media,
    .session-option .session-media img {
        max-width: 100%;
    }

    .widget-header {
        padding: 15px 20px;
    }

    .widget-title {
        font-size: 1.2rem;
    }

    .widget-content {
        padding: 20px;
    }

    .time-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Escape rooms: also 1 column on mobile */
    .time-grid.escape-room-grid {
        grid-template-columns: 1fr;
    }

    .time-slot {
        padding: 15px 12px;
        font-size: 0.9rem;
    }

    /* Footer styles moved to 900px media query for consistent mobile behavior */

    .btn-secondary,
    .btn-primary {
        width: 100%;
        min-width: auto;
        padding: 15px;
        font-size: 1rem;
    }

    .session-option {
        padding: 0;
    }

    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .session-price {
        align-self: flex-end;
        font-size: 1.1rem;
    }

    .session-details {
        gap: 8px;
        font-size: 0.8rem;
    }

    .session-duration,
    .session-players {
        padding: 3px 6px;
        font-size: 0.8rem;
    }

    .counter-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .player-count {
        font-size: 1.8rem;
    }

    .form-group input {
        padding: 15px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .date-input {
        padding: 15px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .regular-sessions-overlay {
        padding: 5px;
        padding-top: 10px;
    }

    .regular-sessions-widget {
        border-radius: 12px;
        max-height: calc(100vh - 20px);
    }

    .widget-progress {
        padding: 10px 15px;
    }

    .progress-steps {
        font-size: 0.7rem;
        gap: 5px;
    }

    .progress-step {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70px;
    }

    .counter-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .player-count {
        font-size: 1.6rem;
        min-width: 40px;
    }

    .session-details {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .widget-step h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .summary-item {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .summary-item.total {
        font-size: 1rem;
    }

    .widget-close {
        width: 35px;
        height: 35px;
        font-size: 1.6rem;
    }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    .session-option:hover {
        background: rgba(0, 0, 0, 0.6);
        border-color: #333;
        transform: none;
    }

    .time-slot:hover:not(:disabled) {
        background: rgba(0, 0, 0, 0.6);
        border-color: #333;
        color: #ccc;
    }

    .counter-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        border-color: #00ffff;
        color: #00ffff;
        transform: none;
    }

    /* Add active states for touch */
    .session-option:active {
        background: rgba(0, 255, 255, 0.05);
        border-color: #00ffff;
        transform: scale(0.98);
    }

    .time-slot:active:not(:disabled) {
        background: rgba(0, 255, 255, 0.05);
        border-color: #00ffff;
        transform: scale(0.98);
    }

    .counter-btn:active {
        background: rgba(0, 255, 255, 0.2);
        transform: scale(0.95);
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .btn-secondary:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.98);
    }
}

/* Landscape phone optimizations */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .regular-sessions-widget {
        max-height: 95vh;
        width: 90%;
        max-width: 600px;
    }

    .widget-content {
        padding: 15px 20px;
    }

    .widget-step h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .session-option {
        padding: 12px;
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .time-slot {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .player-counter {
        gap: 15px;
        margin-bottom: 10px;
    }

    .counter-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .player-count {
        font-size: 1.4rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .regular-sessions-widget {
        border-width: 1px;
    }

    .session-option {
        border-width: 1px;
    }

    .time-slot {
        border-width: 1px;
    }

    .counter-btn {
        border-width: 1px;
    }
}

/* Ensure proper scrolling on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .widget-content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.session-option:focus-visible,
.time-slot:focus-visible,
.counter-btn:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .regular-sessions-widget {
        animation: none;
    }

    .regular-sessions-overlay {
        animation: none;
    }

    .session-option,
    .time-slot,
    .counter-btn,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }

    .loading {
        animation: none;
    }
}
/* Responsive Cart Styles */
@media (max-width: 1024px) {
    .widget-cart {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
}

@media (max-width: 768px) {
    .widget-body-wrapper {
        flex-direction: column;
    }

    .widget-cart {
        flex: 1 1 auto;
        width: 100%;
        max-height: none;
        min-height: auto;
        border-left: none;
        border-top: 2px solid rgba(0, 255, 255, 0.3);
        order: 2;
        overflow-y: visible;
    }

    .widget-content {
        order: 1;
    }

    .cart-header {
        padding: 15px;
    }

    .cart-items {
        padding: 10px 15px;
        max-height: none;
        overflow-y: visible;
    }

    .cart-totals {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .cart-header h4 {
        font-size: 1rem;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-details,
    .cart-total-row {
        font-size: 0.8rem;
    }
}

/* Custom scrollbar for cart and widget */
.widget-cart,
.cart-body,
.cart-scroll-area {
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0, 0, 0, 0.3);
}

.widget-cart::-webkit-scrollbar,
.cart-body::-webkit-scrollbar,
.cart-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.widget-cart::-webkit-scrollbar-track,
.cart-body::-webkit-scrollbar-track,
.cart-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.widget-cart::-webkit-scrollbar-thumb,
.cart-body::-webkit-scrollbar-thumb,
.cart-scroll-area::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 3px;
}

.widget-cart::-webkit-scrollbar-thumb:hover,
.cart-body::-webkit-scrollbar-thumb:hover,
.cart-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
    opacity: 0.8;
}

/* Embedded Stripe Checkout Container */
#stripe-checkout-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

#stripe-embedded-checkout {
    width: 100% !important;
    min-height: 500px;
    background: #fff;
    border-radius: 12px;
}

#stripe-embedded-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
}

#stripe-embedded-checkout iframe {
    border-radius: 12px !important;
}

/* Custom scrollbar for checkout wrapper */
#stripe-checkout-wrapper::-webkit-scrollbar {
    width: 8px;
}

#stripe-checkout-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#stripe-checkout-wrapper::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

/* High-priority mobile fixes: force full-width stacking and eliminate horizontal overflow
   Targets larger phones (iPhone 17 Pro Max, etc.) and ensures cart/addons are full width
   Uses !important to override legacy desktop rules that use fixed widths. */
@media (max-width: 900px) {
    /* Prevent background page from scrolling when widget is open */
    html.widget-open,
    body.widget-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    .regular-sessions-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
        overflow: hidden !important;
        z-index: 999999 !important;
        padding: 0 !important;
        margin: 0 !important;
        /* display is controlled by JS - do NOT use !important here */
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .regular-sessions-widget {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height */
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    /* Header stays at top */
    .widget-header {
        flex: 0 0 auto !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Close button must be clickable on mobile */
    .widget-close {
        position: relative !important;
        z-index: 100 !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    /* Progress bar stays at top */
    .widget-progress {
        flex: 0 0 auto !important;
    }

    /* Body wrapper takes ONLY remaining space between header/progress and footer */
    .widget-body-wrapper {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Content area scrolls within body wrapper */
    .widget-content {
        flex: 1 !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .widget-cart {
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        border-top: 2px solid rgba(0, 255, 255, 0.3) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: 35vh !important; /* Limit cart height so it doesn't take over */
        min-height: 0 !important;
    }

    /* Footer ALWAYS visible at bottom - fixed position on mobile */
    .widget-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100 !important;
        background: #0a0a0a !important;
        border-top: 1px solid rgba(0, 255, 255, 0.3) !important;
        padding: 10px 15px !important;
        padding-bottom: calc(
            10px + env(safe-area-inset-bottom)
        ) !important; /* iPhone notch */
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Add padding to body wrapper so content doesn't hide behind fixed footer */
    .widget-body-wrapper {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
        padding-bottom: 70px !important; /* Space for fixed footer */
    }

    /* Compact buttons on mobile - side by side, never stacked */
    .widget-footer .btn-secondary,
    .widget-footer .btn-primary {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    /* Step 7 (Checkout) mobile layout - stack form and cart vertically */
    .regular-sessions-widget.vertical-final-layout .widget-body-wrapper {
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 70px !important;
    }

    .regular-sessions-widget.vertical-final-layout .widget-content {
        position: relative !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        z-index: 1 !important;
    }

    .regular-sessions-widget.vertical-final-layout .widget-cart {
        position: relative !important;
        width: 100% !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        z-index: 1 !important;
        margin-top: 15px !important;
    }

    /* Ensure cart doesn't have fixed positioning on step 7 */
    .regular-sessions-widget.vertical-final-layout .cart-body {
        overflow: visible !important;
        max-height: none !important;
    }

    /* Form fields need proper width on step 7 */
    #widget-step-7 .form-row,
    #widget-step-7 input,
    #widget-step-7 .discount-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #widget-step-7 .discounts .form-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #widget-step-7 .discount-row {
        width: 100% !important;
    }

    /* Step 6 addon grid - 3 columns on mobile */
    #widget-step-6 .addon-section .package-options,
    .addon-section-15 .package-options,
    .addon-section-30 .package-options {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    #widget-step-6 .package-option,
    .addon-section .package-option,
    .addon-package {
        width: 100% !important;
        min-width: 0 !important;
    }

    #widget-step-6 .pkg-img-wrap,
    .addon-section .pkg-img-wrap {
        width: 100% !important;
    }

    #widget-step-6 .package-thumb,
    .addon-section .package-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
    }

    #widget-step-6 .package-placeholder,
    .addon-section .package-placeholder {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
    }

    #widget-step-6 .pkg-initials,
    .addon-section .pkg-initials {
        font-size: 0.8rem !important;
    }

    /* Ensure addon tiles and session cards are full-bleed within container */
    .session-options,
    .session-option,
    .package-options,
    .package-option {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Session media should maintain aspect ratio but fit container */
    .session-option .session-media {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 140px !important;
    }

    /* Background images fill the media container */
    .session-option .session-media .session-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Brand icons smaller on mobile */
    .session-option .session-media .session-brand-icon {
        max-width: 70px !important;
        right: 6px !important;
        bottom: 6px !important;
    }

    /* Buttons and controls should not force overflow */
    .btn-secondary,
    .btn-primary {
        min-width: 0 !important;
    }

    /* ============================================
       MOBILE FONT SIZE BUMP - All text larger
       (Excludes footer buttons which stay as-is)
       ============================================ */

    /* Widget title/header */
    .widget-title {
        font-size: 1.4rem !important;
    }

    /* Step headings (h3) - "Choose Your Session", "How Many Players?", etc */
    .widget-step h3 {
        font-size: 1.4rem !important;
        font-weight: 600 !important;
    }

    /* Section titles like "15-Minute Add-ons", "30-Minute Games" */
    .addon-section-title {
        font-size: 1.2rem !important;
    }

    /* Session/package card titles */
    .session-title,
    .package-title {
        font-size: 1.05rem !important;
    }

    /* Session/package descriptions */
    .session-description,
    .package-description {
        font-size: 0.95rem !important;
    }

    /* Session meta info (duration, players, etc) - "1-8 players for this session" */
    .session-meta,
    .package-meta {
        font-size: 0.95rem !important;
    }

    /* Price badges - "From $34.99", "$39.99", etc */
    .session-price,
    .package-price,
    .price-badge,
    .session-option .session-price {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

    /* Player counter */
    .player-count {
        font-size: 1.8rem !important;
    }

    /* Player info text - "Maximum 8 players per session" */
    .player-info {
        font-size: 1rem !important;
    }

    /* Counter buttons */
    .counter-btn {
        font-size: 1.5rem !important;
    }

    /* Calendar text */
    .cal-day,
    .cal-weekday {
        font-size: 0.9rem !important;
    }

    .cal-month-year {
        font-size: 1rem !important;
    }

    /* Time slots */
    .time-slot {
        font-size: 0.95rem !important;
    }

    /* Cart text */
    .cart-title {
        font-size: 1.1rem !important;
    }

    .cart-item-name {
        font-size: 0.95rem !important;
    }

    .cart-item-details {
        font-size: 0.85rem !important;
    }

    .cart-item-price {
        font-size: 0.95rem !important;
    }

    .cart-total {
        font-size: 1.1rem !important;
    }

    /* Form inputs and labels */
    .form-row label,
    #widget-step-7 label {
        font-size: 0.9rem !important;
    }

    .form-row input,
    #widget-step-7 input,
    .discount-row input {
        font-size: 1rem !important;
    }

    /* Summary text */
    .summary-item,
    .summary-details {
        font-size: 0.9rem !important;
    }

    .summary-item.total {
        font-size: 1rem !important;
    }

    /* Progress step icons */
    .progress-icon {
        width: 20px !important;
        height: 20px !important;
    }

    /* Badges */
    .pkg-optimization-badge,
    .addon-price-badge,
    .addon-discount-badge {
        font-size: 0.75rem !important;
    }

    /* Discount/promo messages */
    #discount-summary {
        font-size: 0.9rem !important;
    }
}

/* ===========================================
   MOBILE CHECKBOX FIXES
   =========================================== */
@media (max-width: 600px) {
    /* Marketing opt-in checkbox - mobile fix */
    .marketing-optin-section .checkbox-label {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        text-align: left;
    }

    .marketing-optin-section input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .marketing-optin-section .checkbox-text {
        flex: 1;
        line-height: 1.4;
    }

    .marketing-optin-section .marketing-headline {
        text-align: left;
        font-size: 0.9rem;
    }

    .marketing-optin-section .marketing-disclaimer {
        text-align: left;
    }

    /* Terms checkbox - mobile fix */
    .terms-section .checkbox-label {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        text-align: left;
    }

    .terms-section input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .terms-section .checkbox-text {
        flex: 1;
        line-height: 1.4;
        text-align: left;
    }

    /* Consent section checkbox - mobile fix */
    .consent-section .checkbox-label {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        text-align: left;
    }

    .consent-section input[type="checkbox"] {
        opacity: 1 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        margin: 2px 0 0 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: inline-block !important;
        box-sizing: border-box !important;
        border: 2px solid #333 !important;
        border-radius: 4px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        position: relative !important;
    }

    .consent-section input[type="checkbox"]:checked {
        background: #00ffff !important;
        border-color: #00ffff !important;
    }

    .consent-section .checkbox-text {
        flex: 1;
        line-height: 1.4;
        text-align: left;
    }
}
