/* Overlays: WhatsApp float, sticky mobile CTA, cookie banner. */

/* ── WhatsApp float ─────────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-gold);
    color: var(--c-navy);
    padding: 13px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 10px 30px rgba(27, 42, 78, .22);
}
.wa-float:hover { background: var(--c-gold-dark); }
.wa-float__label { display: inline; }
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--c-gold);
    z-index: -1;
    animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1);    opacity: .55; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}
.wa-float__bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    inset-inline-end: 0;
    max-width: 220px;
    width: max-content;
    background: var(--c-navy);
    color: var(--c-cream);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    padding: 9px 14px;
    border-radius: 12px;
    border-end-end-radius: 4px; /* tail toward the button; flips with RTL */
    box-shadow: 0 8px 24px rgba(27, 42, 78, .25);
    white-space: normal;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.wa-float__bubble.is-visible { opacity: 1; transform: translateY(0); }

/* ── Sticky mobile CTA ──────────────────────────────────────────── */
.sticky-cta {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 55;
    background: var(--c-navy);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, .18);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta__limited {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 2px;
}
.sticky-cta__price {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 600;
    color: var(--c-gold);
}
.sticky-cta__badge {
    display: inline-block;
    margin-inline-start: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--c-gold);
    color: var(--c-navy);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}
.sticky-cta__per {
    font-size: 12px;
    color: rgba(245, 238, 221, .7);
    margin-inline-start: 6px;
}
.sticky-cta__btn {
    flex: none;
    background: var(--c-gold);
    color: var(--c-navy);
    padding: 12px 20px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ── Cookie banner ──────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 18px;
    inset-inline: 18px;
    z-index: 70;
    max-width: 560px;
    margin: 0 auto;
    background: var(--c-cream-lt);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 22px 60px rgba(27, 42, 78, .22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-body);
    margin: 0 0 16px;
}
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cookie-banner__btn {
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
}
.cookie-banner__btn--primary { background: var(--c-gold);       color: var(--c-navy);  font-weight: 700; }
.cookie-banner__btn--outline { background: transparent;         color: var(--c-navy);  border: 1.5px solid var(--c-border); }
.cookie-banner__btn--text    { background: transparent;         color: var(--c-muted); }

/* Responsive rules */
@media (max-width: 880px) {
    /* Icon-only on mobile by design: the periodic bubble carries the
       "register via WhatsApp" message instead of a permanent label. */
    .wa-float          { bottom: 84px; }
    .wa-float__label   { display: none; }
}
@media (max-width: 420px) {
    /* Keep price + register button on one row on ~360px screens. */
    .sticky-cta__badge { display: none; }
    .sticky-cta__btn   { padding: 12px 16px; font-size: 14px; }
}
@media (min-width: 881px) {
    .sticky-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float::before { animation: none; }
    .wa-float__bubble { transition: none; transform: none; }
}
