.cookie-consent,
.cookie-settings-trigger {
  font-family: sofia-pro, sans-serif;
}

[data-cookie-consent-root] { pointer-events: none; }
[data-cookie-consent-root] > * { pointer-events: auto; }

.cookie-consent {
  z-index: 2147482500;
  width: min(650px, calc(100vw - 32px));
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  align-items: end;
  gap: 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: rgba(8, 8, 8, .94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.cookie-consent--settings { grid-template-columns: 1fr; }

.cookie-consent[hidden],
.cookie-settings-trigger[hidden],
.cookie-consent__categories[hidden],
.cookie-consent__actions[hidden] {
  display: none !important;
}

.cookie-consent__eyebrow {
  margin: 0 0 8px;
  color: #d8f909;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

.cookie-consent h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.cookie-consent__copy > p:not(.cookie-consent__eyebrow) {
  max-width: 470px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-consent__categories {
  display: grid;
  gap: 8px;
}

.cookie-consent__category {
  min-height: 58px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.cookie-consent__category strong,
.cookie-consent__category span { display: block; }
.cookie-consent__category strong { font-size: 11px; line-height: 1.25; }
.cookie-consent__category div > span { margin-top: 3px; color: rgba(255, 255, 255, .62); font-size: 10px; line-height: 1.4; }

.cookie-consent__status {
  color: #d8f909;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.cookie-consent__status--off { color: rgba(255, 255, 255, .48); }

.cookie-consent__category--toggle { position: relative; cursor: pointer; }
.cookie-consent__category--toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-consent__category--toggle i {
  width: 38px;
  height: 22px;
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  transition: background-color .2s ease, border-color .2s ease;
}
.cookie-consent__category--toggle i::after {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.cookie-consent__category--toggle input:checked + i { border-color: #d8f909; background: #d8f909; }
.cookie-consent__category--toggle input:checked + i::after { transform: translateX(16px); background: #000; }
.cookie-consent__category--toggle input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }

.cookie-consent__actions {
  min-width: 170px;
  display: grid;
  gap: 8px;
}
.cookie-consent__actions--settings { grid-template-columns: minmax(170px, max-content) max-content; justify-content: end; }

.cookie-consent__actions button,
.cookie-settings-trigger {
  min-height: 38px;
  padding: 9px 13px;
  color: #000;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
  touch-action: manipulation;
}

.cookie-consent__actions .cookie-consent__text-action {
  min-height: 28px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, .76);
  border-color: transparent;
  background: transparent;
}

.cookie-consent__actions button:hover,
.cookie-consent__actions button:focus-visible,
.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus-visible {
  border-color: #d8f909;
  background: #d8f909;
  transform: translateY(-1px);
}
.cookie-consent__actions .cookie-consent__text-action:hover,
.cookie-consent__actions .cookie-consent__text-action:focus-visible { color: #fff; border-color: transparent; background: transparent; }
.cookie-consent__privacy {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent__privacy:hover,
.cookie-consent__privacy:focus-visible { color: #fff; }
.cookie-consent__actions button:active,
.cookie-settings-trigger:active { transform: scale(.97); }

.cookie-settings-trigger {
  /* Below the fullscreen player (2147482000), above the regular site. */
  z-index: 2147481500;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 0;
  display: grid;
  place-items: center;
  border-color: rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 9px;
  opacity: .72;
}

.cookie-settings-trigger__icon {
  width: 21px;
  height: 21px;
  display: block;
}

.cookie-settings-trigger__label {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .cookie-consent {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - max(20px, env(safe-area-inset-left) + env(safe-area-inset-right)));
    max-height: calc(100dvh - 20px);
    padding: 18px;
    display: block;
    overflow: auto;
    border-radius: 18px;
  }
  .cookie-consent__categories { margin-top: 16px; }
  .cookie-consent__actions { min-width: 0; margin-top: 18px; grid-template-columns: 1fr; }
  .cookie-consent__actions--settings { justify-content: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__actions button,
  .cookie-settings-trigger,
  .cookie-consent__category--toggle i,
  .cookie-consent__category--toggle i::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .cookie-consent { background: #080808; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cookie-settings-trigger { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
