.privacy-consent[hidden] { display: none; }

.privacy-consent {
  position: fixed;
  z-index: 96;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 18px;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: radial-gradient(circle at 84% 0, rgba(231,0,11,.13), transparent 33%), rgba(18,18,18,.98);
  box-shadow: 0 28px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.025);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.985);
  transition: opacity .24s ease, transform .3s cubic-bezier(.2,.78,.2,1);
}

.privacy-consent.is-visible { opacity: 1; transform: translate(-50%, -50%); }
.privacy-consent-main { width: 100%; min-width: 0; }

.privacy-consent-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  color: #fa2d37;
  border: 1px solid rgba(250,45,55,.24);
  border-radius: 10px;
  background: rgba(147,15,23,.12);
}

.privacy-consent-icon svg { width: 17px; height: 17px; }
.privacy-consent-copy { min-width: 0; }

.privacy-consent-copy > small {
  display: block;
  color: #fa2d37;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: .18em;
}

.privacy-consent-copy p {
  max-width: 820px;
  margin: 7px auto 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 19px;
}

.privacy-consent-copy a {
  color: rgba(255,255,255,.90);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.30);
  text-underline-offset: 3px;
}

.privacy-consent-copy a:hover { text-decoration-color: #fa2d37; }

.privacy-consent-choices {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.privacy-consent-choices label {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.026);
  cursor: pointer;
}

.privacy-consent-choices label.is-required { cursor: default; }
.privacy-consent-choices input { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: #e7000b; }
.privacy-consent-choices span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.privacy-consent-choices strong { color: rgba(255,255,255,.79); font-size: 11px; line-height: 15px; }
.privacy-consent-choices small { margin: 0; color: rgba(255,255,255,.35); font-family: var(--font-ui); font-size: 9px; line-height: 13px; letter-spacing: 0; text-transform: none; }
.privacy-consent-choices input:focus-visible { outline: 2px solid #fa2d37; outline-offset: 3px; }

.privacy-consent-actions { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; justify-content: center; gap: 6px; }

.privacy-consent-actions button {
  min-height: 44px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
  line-height: 14px;
  cursor: pointer;
  transition: color .16s, border-color .16s, background-color .16s, transform .16s;
}

.privacy-consent-actions button:active { transform: translateY(1px); }
.privacy-consent-actions .privacy-essential,
.privacy-consent-actions .privacy-save { color: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.privacy-consent-actions .privacy-essential:hover,
.privacy-consent-actions .privacy-save:hover { color: #fff; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.07); }
.privacy-consent-actions .privacy-accept { color: #fff; border: 1px solid #e7000b; background: #e7000b; }
.privacy-consent-actions .privacy-accept:hover { border-color: #fa2d37; background: #fa2d37; }

.privacy-settings-link {
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.18);
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-settings-link:hover { color: #fff; text-decoration-color: #fa2d37; }

@media (max-width: 639px) {
  .privacy-consent {
    width: min(420px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px;
    overflow-y: auto;
    border-radius: 18px;
  }

  .privacy-consent-copy > small { font-size: 8px; letter-spacing: .15em; }
  .privacy-consent-copy p { margin-top: 6px; font-size: 11px; line-height: 17px; }
  .privacy-consent-choices { margin-top: 10px; gap: 6px; }
  .privacy-consent-choices label { min-height: 0; padding: 8px 5px; gap: 5px; border-radius: 10px; }
  .privacy-consent-choices strong { font-size: 10px; line-height: 14px; }
  .privacy-consent-choices small { line-height: 12px; }
  .privacy-consent-actions button { width: 100%; min-height: 44px; padding: 6px 4px; font-size: 10px; line-height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent { transition: none; }
}
