.privacy-consent {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  background: rgba(13, 13, 16, .5);
  color: var(--ink, #1d1d1f);
  font-family: var(--font, "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-synthesis: none;
}

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

.privacy-consent__panel {
  --privacy-hit: 48px;
  width: 100%;
  max-height: min(82dvh, 560px);
  overflow: auto;
  padding: 30px max(20px, calc((100vw - 720px) / 2)) calc(24px + env(safe-area-inset-bottom));
  border: 1px solid var(--border, #e3e3e8);
  border-bottom: 0;
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
  background: var(--surface, #fff);
  box-shadow: 0 -12px 40px rgba(20, 24, 40, .12);
}

.privacy-consent__panel:focus {
  outline: none;
}

.privacy-consent__title {
  max-width: 720px;
  margin: 0 auto 12px;
  color: var(--ink, #1d1d1f);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.privacy-consent [data-privacy-notice],
.privacy-consent__settings,
.privacy-consent__actions {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.privacy-consent__copy {
  margin: 0;
  color: var(--ink-2, #4f4f56);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.privacy-consent__copy + .privacy-consent__copy {
  margin-top: 8px;
}

.privacy-consent__copy--secondary {
  color: var(--ink-3, #686870);
  font-size: 13px;
}

.privacy-consent__copy a,
.privacy-consent__inline-action {
  color: var(--accent-text, #0067d8);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-consent__inline-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.privacy-consent__settings {
  display: grid;
  gap: 14px;
}

.privacy-consent__option {
  min-height: 64px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--border, #e3e3e8);
  border-radius: var(--radius-sm, 12px);
  background: var(--surface-raised, #f7f7f9);
  cursor: pointer;
}

.privacy-consent__option input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent, #0071e3);
}

.privacy-consent__option b,
.privacy-consent__option small {
  display: block;
}

.privacy-consent__option b {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.privacy-consent__option small {
  margin-top: 3px;
  color: var(--ink-3, #686870);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

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

.privacy-consent__button {
  min-width: 0;
  min-height: var(--privacy-hit);
  padding: 9px 18px;
  border: 1px solid var(--border-strong, #d4d4da);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface, #fff);
  color: var(--ink, #1d1d1f);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.privacy-consent__button:hover {
  background: var(--surface-raised, #f7f7f9);
}

.privacy-consent__button--primary {
  border-color: var(--accent, #0071e3);
  background: var(--accent, #0071e3);
  color: #fff;
}

.privacy-consent__button--primary:hover {
  background: var(--accent-text, #0067d8);
}

.privacy-consent__button:focus-visible,
.privacy-consent__inline-action:focus-visible,
.privacy-consent__option:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--ds-focus-ring, 0 0 0 4px rgba(0, 113, 227, .22));
}

html.privacy-consent-open,
html.privacy-consent-open body {
  overflow: hidden;
}

@media (max-width: 560px) {
  .privacy-consent__panel {
    max-height: min(86dvh, 600px);
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .privacy-consent__title {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .privacy-consent__copy {
    font-size: 14px;
  }

  .privacy-consent__actions {
    margin-top: 18px;
    gap: 8px;
  }

  .privacy-consent__button {
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent *,
  .privacy-consent *::before,
  .privacy-consent *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
