/* Consent, tracking and checkout enhancements — loaded after the main stylesheet. */
.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  z-index: 190;
  width: min(560px, calc(100% - 44px));
  max-width: 560px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 17, 15, 0.98);
  color: #f8fbf8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  padding: 22px;
  backdrop-filter: blur(16px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-copy strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.cookie-copy p { margin: 0; color: rgba(255,255,255,.66); font-size: .82rem; line-height: 1.55; }
.cookie-copy a { color: #2ed47a; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.cookie-choice {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  color: #f8fbf8;
  cursor: pointer;
  padding: 10px 12px;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.2;
}
.cookie-choice:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.1); }
.cookie-choice--primary { border-color: #2ed47a; background: #2ed47a; color: #06130d; }
.cookie-choice--primary:hover { background: #43e88d; }

.tveh-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: #07110f;
  color: #f8fbf8;
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
  cursor: pointer;
  padding: 10px 17px 10px 11px;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
}
.tveh-chat-launcher:hover { transform: translateY(-2px); }
.tveh-chat-launcher span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2ed47a;
  color: #06130d;
  font-size: .68rem;
  letter-spacing: -.03em;
}
.cookie-banner:not([hidden]) ~ .tveh-chat-launcher,
body:has(.cookie-banner:not([hidden])) .tveh-chat-launcher { bottom: 245px; }
.tveh-chat-launcher[aria-busy="true"]{ opacity:.75; cursor:progress; }

.checkout-consents { display: grid; gap: 10px; margin: 18px 0 4px; }
.checkout-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #66736e;
  font-size: .72rem;
  line-height: 1.45;
}
.checkout-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2ed47a; }
.checkout-consent a { color: #0e8e4e; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  /* Compact banner: was ~313px tall and covered the sticky CTA */
  .cookie-banner {
    right: 10px; left: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: auto; padding: 14px 15px;
    border-radius: 16px;
  }
  .cookie-banner h2, .cookie-banner strong { font-size: .92rem; margin-bottom: 4px; }
  .cookie-banner p { font-size: .74rem; line-height: 1.45; margin: 0 0 10px; }
  /* buttons side by side instead of stacked — saves ~50px of height */
  .cookie-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-choice { min-height: 42px; font-size: .76rem; padding: 8px 10px; }

  .tveh-chat-launcher {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    padding: 8px 14px 8px 9px;
    font-size: .74rem;
    min-height: 46px;
  }
  .tveh-chat-launcher span { width: 28px; height: 28px; font-size: .62rem; }
  /* Chat stays reachable while the cookie banner is open — it now sits
     ABOVE the banner instead of being hidden entirely (which made the
     button look like it "appeared late" on phones). */
  body:has(.cookie-banner:not([hidden])) .tveh-chat-launcher {
    bottom: calc(92px + env(safe-area-inset-bottom) + 168px);
  }
}
@media (max-width: 380px) {
  .cookie-banner p { font-size: .7rem; }
  .tveh-chat-launcher { font-size: 0; padding: 9px; gap: 0; }
  .tveh-chat-launcher span { font-size: .62rem; }
}
