/*
  Event detail page — additive styles (loaded when loadEventPageCss is set).
  Mobile ticket CTA bar: scrolls to #ticket-sidebar on tap.
*/

/* ── Mobile "Get tickets" action bar ── */
.ev-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid rgba(26, 26, 46, 0.10);
    box-shadow: 0 -6px 20px rgba(26, 26, 46, 0.06);
}

.ev-mobile-cta__price {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.ev-mobile-cta__from {
    font-size: 11px;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.50);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ev-mobile-cta__amount {
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--color-dark, #1A1A2E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-mobile-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-primary, #E8451A);
    color: #fff;
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ev-mobile-cta__btn:hover {
    background: var(--color-primary-dark, #C23510);
    color: #fff;
}

.ev-mobile-cta__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ev-mobile-cta__waiting {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.45);
    padding: 14px 8px;
}

.ev-has-mobile-cta {
    padding-bottom: 88px;
}

/* Match sticky nav + mobile bar when scrolling to widget sections */
#ticket-sidebar,
#table-reserve-panel,
#ticket-hold-banner,
#ticket-member-box {
    scroll-margin-top: 6rem;
    scroll-margin-bottom: 6rem;
}

/* Event page: hide bar when sticky ticket sidebar is visible (lg) */
@media (min-width: 1024px) {
    .ev-mobile-cta:not(.ev-mobile-cta--tables) {
        display: none;
    }

    .ev-has-mobile-cta:not(.table-select-page) {
        padding-bottom: 0;
    }
}

/* Table select page: hide bar when reserve sidebar column is visible */
@media (min-width: 1100px) {
    .ev-mobile-cta--tables {
        display: none;
    }

    .table-select-page.ev-has-mobile-cta {
        padding-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
