
/* ============================================================
   FLOATING BUTTONS — WhatsApp + Cart
============================================================ */

.floating-btns {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    z-index: 9999;
    pointer-events: none;
}

.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
    pointer-events: auto;
    flex-shrink: 0;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

/* WhatsApp — green */
.float-btn--wa {
    background: var(--whatsapp);
}
.float-btn--wa:hover { background: var(--whatsapp-dark); }

/* Cart — crimson */
.float-btn--cart {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-shade));
}

/* Cart item count badge */
.floating-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--gold);
    color: var(--bg);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    padding: 0 5px;
    display: none;
    pointer-events: none;
}

.floating-cart-count:not(:empty) {
    display: block;
}

/* Tooltip label */
.float-btn__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--bg-rgb),0.92);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.float-btn__tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(var(--bg-rgb),0.92);
}

.float-btn:hover .float-btn__tooltip {
    opacity: 1;
}

/* Mobile — smaller */
@media (max-width: 640px) {
    .floating-btns {
        bottom: 20px;
        right: 16px;
        gap: 12px;
    }
    .float-btn {
        width: 46px;
        height: 46px;
    }
    .float-btn__tooltip { display: none; }
}

/* ==========================================================================
   Keep clear of the ticket drawer
   --------------------------------------------------------------------------
   On Buy Tickets below 1024px the order summary is a bottom sheet: fixed at
   bottom 0, sliding up the moment a ticket is picked. These buttons sit at
   bottom 20px, so the sheet covers them — and only once something is selected,
   which is why they seemed to vanish at random.

   z-index does not help. These are 9999 against the rail's 60, so they are
   already on top; they are simply behind a panel that occupies the same corner,
   and a half-covered button is worse than none.

   So they step aside while the sheet is up and come back when it closes. Scoped
   with :has() to the one state that causes it — no script, and nothing changes
   on any other page or at any other width.
   ========================================================================== */

@media (max-width: 1024px) {
	body:has(.idc-rail.is-on) .floating-btns {
		opacity: 0;
		visibility: hidden;
		transform: translateY(12px);
		transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
		pointer-events: none;
	}
}

/* A browser without :has() keeps today's behaviour rather than a broken rule. */
@media (prefers-reduced-motion: reduce) {
	body:has(.idc-rail.is-on) .floating-btns { transition: none; }
}
