.luvr-consent,
.luvr-analytics-control {
  font-family: "Club Text", Arial, sans-serif;
  color: #f1f2e9;
  background: #0c202b; /* Readable fallback when backdrop blur is unavailable. */
  box-sizing: border-box;
  z-index: 11000;
  border: 1px solid rgba(177, 193, 200, .3);
}

.luvr-analytics-control {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  right: 16px;
  left: auto;
  font-size: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  max-width: calc(100vw - 32px);
}

.luvr-analytics-control[hidden] { display: none; }

.luvr-consent {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: auto;
  left: 16px;
  max-width: 396px;
  width: calc(100vw - 32px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
  max-height: calc(100dvh - 110px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #8299a3 #0b212b;
}

/* The dark tint preserves text contrast even over the brightest video frame. */
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .luvr-consent,
  .luvr-analytics-control {
    background: rgba(12, 32, 43, .94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.luvr-consent h2 { margin: 0 0 10px; font: 700 15px/1.4 "Club Text", Arial, sans-serif; letter-spacing: 0; }

.luvr-consent p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
  text-wrap: pretty;
}

.luvr-consent a {
  color: #b1c1c8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  line-height: 1.5;
}

.luvr-consent-actions { display: flex; gap: 10px; margin-top: 14px; }

.luvr-consent-actions button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(177, 193, 200, .5);
  background: rgba(242, 241, 231, .04);
  color: #f1f2e9;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.luvr-consent-actions button:first-child { background: #dce791; border-color: #dce791; color: #091924; }

@media (hover: hover) {
  .luvr-consent-actions button:hover { background: rgba(242, 241, 231, .1); }
  .luvr-consent-actions button:first-child:hover { background: #f1f2e9; border-color: #f1f2e9; }
  .luvr-analytics-control:hover { background: #183642; }
}

.luvr-consent-actions button:active { background: #183642; }
.luvr-consent-actions button:first-child:active { background: #f1f2e9; border-color: #f1f2e9; color: #091924; }
.luvr-consent button:focus-visible,
.luvr-consent a:focus-visible,
.luvr-analytics-control:focus-visible { outline: 2px solid #dce791; outline-offset: 3px; }
.luvr-consent ::selection { background: #dce791; color: #091924; }

@media (max-width: 700px) {
  .luvr-consent {
    left: max(12px, env(safe-area-inset-left));
    width: calc(100vw - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
    padding: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 170px);
  }
  .luvr-consent-actions { gap: 8px; margin-top: 12px; }
  .luvr-consent-actions button { min-height: 48px; }
  .luvr-analytics-control {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  body:has(.premium-site.past-hero:not(.at-schedule)) :is(.luvr-consent, .luvr-analytics-control) {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .luvr-consent,
  .luvr-analytics-control {
    background: #0c202b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .luvr-consent,
  .luvr-analytics-control,
  .luvr-consent-actions button,
  .luvr-consent-actions button:first-child { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .luvr-consent,
  .luvr-analytics-control { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .luvr-consent a { color: LinkText; }
}
