/* ==========================================================================
   RECEIPT PASS STYLESHEET (MULTI-TENANT "SONIC" RECEIPT & DIGITAL PASS)
   Scope: Clean white background, overlapping card, 1-2-3 steps, itemized
          summary, scannable QR card, and sliding upgrade bottom sheet.
   ========================================================================== */

:root {
    /* Brand Theme Tokens (Defaults to Rachel's Palm Beach Luxury Palette) */
    --primary-color: #C8102E;
    --primary-dark: #990017;
    --primary-glow: rgba(200, 16, 46, 0.18);
    --accent-gold: #D4AF37;
    --accent-gold-dark: #AA771C;

    /* Backgrounds & Canvas (Clean White Aesthetic) */
    --bg-page: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;

    /* Typography Colors */
    --text-dark: #0A1128;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Status & Highlights */
    --success-green: #10B981;
    --warning-amber: #F59E0B;

    /* Fonts */
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tenant Dynamic Theme Overrides */
body.tenant-rachels {
    --primary-color: #C8102E;
    --primary-dark: #8A0B1E;
    --primary-glow: rgba(200, 16, 46, 0.2);
    --accent-gold: #D4AF37;
}

body.tenant-hippo {
    --primary-color: #E60023;
    --primary-dark: #B30014;
    --primary-glow: rgba(230, 0, 35, 0.18);
    --accent-gold: #FFD700;
}

body.tenant-scores {
    --primary-color: #E60023;
    --primary-dark: #111111;
    --primary-glow: rgba(230, 0, 35, 0.15);
    --accent-gold: #D4AF37;
}

body.tenant-airstrip {
    --primary-color: #FF2D78;
    --primary-dark: #B30047;
    --primary-glow: rgba(255, 45, 120, 0.2);
    --accent-gold: #FFFFFF;
}

/* Base Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Screen Loader */
.pass-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s ease;
}

.pass-loader.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.pass-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #F1F5F9;
    border-top: 3.5px solid var(--primary-color);
    border-radius: 50%;
    animation: passSpin 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin-bottom: 16px;
}

@keyframes passSpin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Full-Width Colored Banner at Top */
.banner-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 38px 20px 88px;
    position: relative;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.banner-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.banner-brand-pill img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.banner-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.92;
    margin-bottom: 6px;
}

.banner-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.15;
}

.banner-meta {
    font-size: 11.5px;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.4px;
}

/* Overlapping Receipt Content Container */
.receipt-container {
    width: 100%;
    max-width: 480px;
    margin: -60px auto 40px auto;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

/* Overlapping Card Base */
.receipt-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px -6px rgba(10, 17, 40, 0.08), 0 4px 12px -2px rgba(10, 17, 40, 0.04);
    padding: 24px 22px;
    margin-bottom: 24px;
    position: relative;
}


/* Destination Venue Section */
.card-kicker {
    text-align: center;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.venue-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 10px auto;
    width: 100%;
}

.venue-logo-img {
    height: 44px;
    max-width: 250px;
    width: auto;
    display: block;
    object-fit: contain;
}

.venue-name {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.venue-address {
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
}

.phone-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 14px;
    transition: opacity 0.2s;
}

.phone-link-row:hover {
    opacity: 0.8;
}

.phone-link-row svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
}

.directions-button {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: underline;
    margin: 0 auto;
    border: none;
    background: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
}

.directions-button:hover {
    opacity: 0.75;
}

/* Map Preview Inside Card */
.map-preview-wrap {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 135px;
    position: relative;
    cursor: pointer;
    background-color: #E2E8F0;
}

.map-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-pin-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(10, 17, 40, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Scannable QR Code Pass Block */
.qr-pass-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 28px 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}

.qr-pass-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-align: center;
}

.qr-guest-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    text-align: center;
}

.qr-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 auto 14px auto;
}

#pass-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 170px;
    height: 170px;
    margin: 0 auto;
}

#pass-qrcode img, #pass-qrcode canvas {
    display: block;
    margin: 0 auto;
}

.qr-order-num {
    font-family: monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-align: center;
}

.qr-notice {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

/* Section Titles */
.section-headline {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
}

/* Numbered Instruction Steps (1, 2, 3) */
.steps-container {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: none;
}

.step-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-badge {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    min-width: 24px;
    line-height: 1;
    margin-top: -2px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Order Summary & Pricing Receipt */
.order-summary-card {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: none;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 14px;
    margin-bottom: 14px;
}

.item-thumb-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--border-subtle);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-thumb-box img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.item-main-details {
    flex: 1;
}

.item-qty-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.item-perks-list {
    list-style: none;
    margin-top: 4px;
}

.item-perk-bullet {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.item-perk-bullet::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

.item-price-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: right;
    flex-shrink: 0;
}

/* Pricing Breakdown Table */
.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-line.total-line {
    border-top: 2px solid var(--text-dark);
    padding-top: 12px;
    margin-top: 6px;
    font-size: 17px;
    font-weight: 900;
    color: var(--text-dark);
}

.price-line.total-line .total-val {
    color: var(--primary-color);
}

/* "Paid With" Card Badge */
.paid-with-box {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(10, 17, 40, 0.03);
}

.payment-method-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

.payment-chip-icon {
    width: 32px;
    height: 22px;
    background: #000000;
    color: #FFFFFF;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.paid-status-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--success-green);
    display: flex;
    align-items: center;
    gap: 5px;
}

.paid-status-tag::before {
    content: "✓";
    font-size: 13px;
    font-weight: 900;
}

/* Action Upgrade Stack */
.actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

/* Bare Upgrade Link Directly on Clean White Canvas (Zero Container) */
.upgrade-bare-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.upgrade-bare-link:hover {
    color: var(--primary-color);
    opacity: 0.85;
}

.upgrade-bottle-svg {
    width: 34px;
    height: 34px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.btn-receipt-share {
    width: 100%;
    background-color: #FFFFFF;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(10, 17, 40, 0.04);
    transition: all 0.2s;
}

.btn-receipt-share:hover {
    background-color: var(--border-subtle);
    border-color: #CBD5E1;
}

/* Social & Legal Footer */
.receipt-footer-section {
    text-align: center;
    padding-top: 10px;
    margin-bottom: 40px;
}

.social-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.social-pills-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.social-pill:hover {
    background: var(--border-subtle);
}

.receipt-disclaimer {
    font-size: 11.5px;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
}

/* ==========================================================================
   INTERACTIVE SLIDING BOTTOM SHEET (DRAWER) FOR BOTTLE / UPGRADE
   ========================================================================== */
.pass-sheet-scrim {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pass-sheet-scrim.visible {
    opacity: 1;
    pointer-events: auto;
}

.pass-sheet-drawer {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(10, 17, 40, 0.18);
    padding: 14px 20px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pass-sheet-scrim.visible .pass-sheet-drawer {
    transform: translateY(0);
}

.drawer-drag-handle {
    width: 36px;
    height: 4px;
    background-color: #CBD5E1;
    border-radius: 10px;
    margin: 0 auto 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.drawer-top-close {
    position: absolute;
    top: 16px;
    left: 18px;
    background: none;
    border: none;
    color: var(--text-dark);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.drawer-top-close:hover {
    opacity: 0.65;
}

.drawer-header-block {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.drawer-headline {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.drawer-subheadline {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.drawer-scroll-options {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.drawer-option-card {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    border-radius: 0;
    padding: 14px 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.15s ease;
    position: relative;
}

.drawer-option-card:last-child {
    border-bottom: none;
}

.drawer-opt-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.drawer-option-card.selected .drawer-opt-radio {
    border-color: var(--primary-color);
}

.drawer-option-card.selected .drawer-opt-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.drawer-opt-img {
    width: 40px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drawer-opt-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drawer-opt-info {
    flex: 1;
    min-width: 0;
}

.drawer-opt-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.25;
}

.drawer-opt-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.drawer-opt-price-col {
    text-align: right;
    flex-shrink: 0;
    margin-left: 4px;
}

.drawer-opt-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.drawer-option-card.selected .drawer-opt-price {
    color: var(--primary-color);
}

.drawer-opt-regular {
    font-size: 11.5px;
    color: var(--text-light);
    text-decoration: line-through;
}

.drawer-action-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.btn-drawer-claim {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-drawer-claim:hover {
    opacity: 0.9;
}

.btn-drawer-dismiss {
    width: 100%;
    padding: 15px 20px;
    background-color: #FFFFFF;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-drawer-dismiss:hover {
    background-color: var(--border-subtle);
}

.summary-item-row.no-thumb {
    gap: 0;
}
.summary-item-row.no-thumb .item-thumb-box {
    display: none !important;
}
