.privacy-consent {
  --pc-film: #0d0d0c;
  --pc-raised: #171614;
  --pc-ivory: #f4f1eb;
  --pc-muted: rgba(244, 241, 235, 0.7);
  --pc-faint: rgba(244, 241, 235, 0.16);
  --pc-blue: #87c7f2;
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  display: none;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid var(--pc-faint);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 30px);
  background:
    linear-gradient(120deg, rgba(135, 199, 242, 0.045), transparent 42%),
    rgba(13, 13, 12, 0.97);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.03);
  color: var(--pc-muted);
  font-family: "Inter Var", "Segoe UI", system-ui, sans-serif;
  text-align: left;
  backdrop-filter: blur(18px);
}

.privacy-consent[data-open="true"] {
  display: block;
  animation: privacy-consent-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.privacy-consent__eyebrow {
  margin: 0 0 8px;
  color: var(--pc-blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.privacy-consent h2 {
  margin: 0;
  color: var(--pc-ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.privacy-consent__copy {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--pc-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.privacy-consent details {
  margin-top: 14px;
  border-top: 1px solid var(--pc-faint);
  padding-top: 12px;
}

.privacy-consent summary {
  width: fit-content;
  color: var(--pc-ivory);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.privacy-consent details p {
  margin: 9px 0 0;
  color: var(--pc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.privacy-consent a {
  color: var(--pc-ivory);
  text-decoration: underline;
  text-decoration-color: rgba(135, 199, 242, 0.55);
  text-underline-offset: 3px;
}

.privacy-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.privacy-consent__choice,
.privacy-choices-button,
.privacy-choice-inline {
  appearance: none;
  border: 1px solid rgba(244, 241, 235, 0.26);
  border-radius: 7px;
  background: var(--pc-raised, #171614);
  color: var(--pc-ivory, #f4f1eb);
  font: 600 12px/1.3 "Inter Var", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.privacy-consent__choice {
  min-height: 48px;
  padding: 10px 14px;
}

.privacy-consent__choice:hover,
.privacy-choices-button:hover,
.privacy-choice-inline:hover {
  border-color: rgba(135, 199, 242, 0.72);
}

.privacy-consent :where(button, summary, a):focus-visible,
.privacy-choices-button:focus-visible,
.privacy-choice-inline:focus-visible {
  outline: 2px solid var(--pc-blue, #87c7f2);
  outline-offset: 3px;
}

.privacy-choices-button {
  position: fixed;
  z-index: 2147482999;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: none;
  min-height: 38px;
  padding: 8px 12px;
  background: rgba(13, 13, 12, 0.9);
  color: rgba(244, 241, 235, 0.78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.privacy-choices-button[data-visible="true"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.privacy-choices-button svg {
  width: 14px;
  height: 14px;
  color: #87c7f2;
}

.privacy-choice-inline {
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 14px;
}

.privacy-consent__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@keyframes privacy-consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .privacy-consent {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: calc(100% - 20px);
    padding: 20px;
  }

  .privacy-consent__actions {
    grid-template-columns: 1fr;
  }

  .privacy-choices-button {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
  }

  .privacy-choices-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent[data-open="true"] { animation: none; }
}
