/* ==========================================================================
   Stripe Down Notice — persistent bottom banner + book-by-phone modal
   Mobile-first. Banner is fixed (out of flow); the --tmm-stripe-down-h var
   is also pushed onto <body> as padding-bottom so the last line of page
   content never slides under the banner. Heights are measured generously to
   fit the two-row mobile layout (title + sub stacked, full-width CTA below).
   Toggle off in header.php (if (true) → if (false)).
   ========================================================================== */

:root {
    /* Mobile-first: banner is ~120px (12px pad + 2 text rows + 10px gap +
       45px CTA + 12px pad). Desktop collapses to a single ~64px row. */
    --tmm-stripe-down-h: 120px;
}

body.has-tmm-stripe-down {
    padding-bottom: var(--tmm-stripe-down-h);
}

@media (min-width: 640px) {
    :root { --tmm-stripe-down-h: 68px; }
}

/* =====================  BANNER  ===================== */

.tmm-stripe-down {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* z-index 50000: above exit-intent toast (10001), booking modal (2500),
       membership/bundles/studio-credits modals (2600), flash banners (1100).
       Stays below the GLightbox image viewer (999999) and chatbot (99998). */
    z-index: 50000;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
    font-family: var(--font-body);
    /* No close button on purpose — non-dismissible per spec. */
}

.tmm-stripe-down__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.tmm-stripe-down__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
    text-align: center;
}

.tmm-stripe-down__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: var(--color-white);
}

.tmm-stripe-down__sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

.tmm-stripe-down__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.tmm-stripe-down__cta:hover { background: #f5f5f5; }
.tmm-stripe-down__cta:active { transform: scale(0.98); }

@media (min-width: 640px) {
    .tmm-stripe-down__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 10px 20px;
    }
    .tmm-stripe-down__copy {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        text-align: left;
    }
    .tmm-stripe-down__title { font-size: 0.95rem; }
    .tmm-stripe-down__sub { font-size: 0.85rem; }
    .tmm-stripe-down__cta { width: auto; padding: 12px 22px; }
}

/* =====================  MODAL  ===================== */

.tmm-stripe-down-modal {
    position: fixed;
    inset: 0;
    /* 50100: above the banner itself (50000) and all other modals. Still
       below GLightbox (999999) and chatbot (99998). */
    z-index: 50100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tmm-stripe-down-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.tmm-stripe-down-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.tmm-stripe-down-modal__content {
    position: relative;
    z-index: 1;
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px 20px 22px;
    max-width: 420px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    color: var(--color-white);
    text-align: center;
}

@media (min-width: 640px) {
    .tmm-stripe-down-modal__content {
        padding: 36px 32px 28px;
        max-width: 460px;
    }
}

.tmm-stripe-down-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.tmm-stripe-down-modal__close:hover { color: var(--color-white); }

.tmm-stripe-down-modal__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 4vw, 1.55rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.tmm-stripe-down-modal__subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-light);
    margin: 0 auto 18px;
    max-width: 340px;
}

.tmm-stripe-down-modal__qr {
    display: inline-block;
    background: var(--color-white);
    padding: 12px;
    border-radius: 12px;
    margin: 0 auto 10px;
    line-height: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tmm-stripe-down-modal__qr svg,
.tmm-stripe-down-modal__qr img {
    display: block;
    width: 220px;
    height: 220px;
}

@media (min-width: 640px) {
    .tmm-stripe-down-modal__qr svg,
    .tmm-stripe-down-modal__qr img {
        width: 260px;
        height: 260px;
    }
}

.tmm-stripe-down-modal__caption {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

.tmm-stripe-down-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
    border: 0;
}

.tmm-stripe-down-modal__btn:active { transform: scale(0.98); }

.tmm-stripe-down-modal__btn--call {
    background: var(--color-primary);
    color: var(--color-white);
    margin-bottom: 10px;
}
.tmm-stripe-down-modal__btn--call:hover { background: var(--color-accent); }

.tmm-stripe-down-modal__btn--copy {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 18px;
}
.tmm-stripe-down-modal__btn--copy:hover { background: rgba(255, 255, 255, 0.06); }
.tmm-stripe-down-modal__btn--copy.is-copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.tmm-stripe-down-modal__btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.tmm-stripe-down-modal__or {
    font-family: var(--font-body);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 12px;
}

.tmm-stripe-down-modal__row {
    display: flex;
    gap: 10px;
}

.tmm-stripe-down-modal__pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease;
}
.tmm-stripe-down-modal__pill:hover { background: rgba(255, 255, 255, 0.12); }
.tmm-stripe-down-modal__pill svg { width: 16px; height: 16px; }

/* Respect reduced motion: no transforms on tap */
@media (prefers-reduced-motion: reduce) {
    .tmm-stripe-down__cta:active,
    .tmm-stripe-down-modal__btn:active { transform: none; }
}

/* Small phones: tighten banner copy so it fits without scrolling */
@media (max-width: 380px) {
    .tmm-stripe-down__title { font-size: 0.86rem; }
    .tmm-stripe-down__sub { font-size: 0.78rem; }
    .tmm-stripe-down__cta { font-size: 0.82rem; padding: 12px 16px; }
}
