.privacy-consent-root,
.privacy-consent-root * {
  box-sizing: border-box;
}

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

.privacy-banner-layer {
  position: fixed;
  inset: auto 0 0;
  z-index: 10000;
  padding: 18px;
  pointer-events: none;
}

.privacy-banner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 20px;
  background: rgba(15, 23, 42, .98);
  color: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .38);
  pointer-events: auto;
  animation: privacySlideIn .45s cubic-bezier(.16, 1, .3, 1) both;
}

.privacy-banner-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, .35);
  border-radius: 16px;
  background: rgba(56, 189, 248, .12);
  color: #38bdf8;
}

.privacy-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.privacy-banner h2,
.privacy-modal h2,
.privacy-category h3 {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.privacy-banner h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.privacy-banner p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

.privacy-banner-copy > a {
  display: inline-flex;
  margin-top: 8px;
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.privacy-banner-actions {
  display: grid;
  gap: 9px;
  min-width: 330px;
}

.privacy-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.privacy-button {
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 999px;
  font: 700 13px/1.2 'Inter', 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.privacy-button:hover {
  transform: translateY(-2px);
}

.privacy-button:focus-visible,
.privacy-close:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.privacy-button-primary {
  border: 1px solid #38bdf8;
  background: #0284c7;
  color: #fff;
}

.privacy-button-primary:hover {
  background: #0369a1;
}

.privacy-button-choice {
  border: 1px solid #38bdf8;
  background: #0284c7;
  color: #fff;
}

.privacy-button-choice:hover {
  background: #0369a1;
}

.privacy-button-secondary {
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: #fff;
}

.privacy-button-secondary:hover {
  border-color: #7dd3fc;
  color: #7dd3fc;
}

.privacy-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(8px);
}

.privacy-modal {
  position: relative;
  width: min(780px, 100%);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: auto;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid rgba(186, 230, 253, .85);
  border-radius: 26px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 30px 100px rgba(2, 6, 23, .3), 0 0 0 1px rgba(255, 255, 255, .55) inset;
  animation: privacyModalIn .35s cubic-bezier(.16, 1, .3, 1) both;
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.privacy-modal h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.privacy-close {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #f8fafc;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.privacy-close::before,
.privacy-close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
}

.privacy-close::before {
  transform: rotate(45deg);
}

.privacy-close::after {
  transform: rotate(-45deg);
}

.privacy-close:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
  transform: rotate(5deg) scale(1.05);
}

.privacy-close:hover::before,
.privacy-close:hover::after {
  background: #0284c7;
}

.privacy-modal-intro {
  margin: 18px 0 22px;
  color: #475569;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
}

.privacy-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.privacy-category:nth-child(-n + 2) {
  grid-column: 1 / -1;
}

.privacy-category {
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035);
}

.privacy-category-selectable {
  border-color: #bae6fd;
  background: linear-gradient(145deg, #f8fdff 0%, #f0f9ff 100%);
}

.privacy-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privacy-category h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  letter-spacing: -.01em;
}

.privacy-category p {
  margin: 7px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.privacy-category code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.privacy-provider {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.privacy-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.privacy-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-switch > span {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background .2s ease, border-color .2s ease;
}

.privacy-switch > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .24);
  transition: transform .2s ease;
}

.privacy-switch input:checked + span {
  border-color: #0284c7;
  background: #0284c7;
}

.privacy-switch input:checked + span::after {
  transform: translateX(20px);
}

.privacy-switch input:focus-visible + span {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.privacy-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.privacy-status-active {
  background: #dcfce7;
  color: #166534;
}

.privacy-modal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin: 18px 0;
}

.privacy-modal-links a {
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.privacy-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.privacy-modal-actions .privacy-button {
  width: 100%;
}

.privacy-button-quiet {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.privacy-button-quiet:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.privacy-modal-open {
  overflow: hidden;
}

.privacy-announcer {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes privacySlideIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes privacyModalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .privacy-banner-layer {
    padding: 10px;
  }

  .privacy-banner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 17px;
    gap: 13px;
    border-radius: 17px;
  }

  .privacy-banner-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }

  .privacy-banner-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .privacy-modal-layer {
    align-items: center;
    padding: 12px;
  }

  .privacy-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

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

  .privacy-category:nth-child(-n + 2) {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .privacy-banner-icon {
    display: none;
  }

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

  .privacy-banner-actions,
  .privacy-modal-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .privacy-button {
    width: 100%;
  }

  .privacy-category-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .privacy-category-selectable .privacy-category-heading {
    align-items: stretch;
  }

  .privacy-switch {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-banner,
  .privacy-modal {
    animation: none;
  }

  .privacy-button {
    transition: none;
  }
}
