/* Floating WhatsApp button (v49). Used only by js/whatsapp-float.js; nothing shows without that script.
   Bottom is 16px plus the safe area. The script raises it to sit 12px above the phone "Get Tickets" bar when one is showing. */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 85; /* above page content; below .sticky-cta (90), the nav (99/100), the cart (95/300) and lightboxes (950+) */
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  animation: wa-float-in 0.4s ease-out both;
}

.wa-float[hidden] {
  display: none !important;
}

@keyframes wa-float-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wa-float__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.wa-float__btn:hover {
  background: #1ebe5a;
}

.wa-float__btn:focus-visible,
.wa-float__hide:focus-visible {
  outline: 3px solid var(--accent-cyan, #00e5ff);
  outline-offset: 3px;
}

.wa-float__label {
  display: none; /* phones: icon only, to save space */
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 0, 16, 0.92);
  color: #fff;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

@media (min-width: 641px) {
  .wa-float__label { display: block; }
}

/* 44px tap target; the visible 24px circle sits on the top-left corner of the button. */
.wa-float__hide {
  position: absolute;
  top: -14px;
  left: -14px;
  z-index: 1;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  clip-path: circle(22px at 50% 50%); /* the hit area is the circle only, so the button's centre stays clickable */
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.wa-float__hide-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #1a0a2e;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.wa-float__hide:hover .wa-float__hide-x {
  background: #3a1a5e;
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

@media print {
  .wa-float { display: none; }
}
