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

.privacy-consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 12000;
  color: #172534;
  font-family: "Public Sans", Inter, system-ui, sans-serif;
}

.privacy-consent__card {
  position: relative;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgb(15 22 32 / 14%);
  border-radius: 18px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 20px 60px rgb(15 22 32 / 22%);
  backdrop-filter: blur(18px);
}

.privacy-consent__eyebrow {
  margin: 0 0 0.45rem;
  color: #0c678f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-consent h2 {
  margin: 0 0 0.55rem;
  color: #172534;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.privacy-consent__copy > p:not(.privacy-consent__eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: #50616f;
  font-size: 0.88rem;
  line-height: 1.6;
}

.privacy-consent__copy a {
  display: inline-block;
  margin-top: 0.6rem;
  color: #0c678f;
  font-size: 0.8rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.privacy-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.privacy-consent__button,
.privacy-consent__close,
.privacy-preferences-button,
.privacy-preferences-dock {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.privacy-consent__button {
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid #0c678f;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.privacy-consent__button--primary {
  color: #fff;
  background: #0c678f;
}

.privacy-consent__button--secondary {
  color: #0c678f;
  background: transparent;
}

.privacy-consent__button:hover {
  transform: translateY(-1px);
}

.privacy-consent__button:focus-visible,
.privacy-consent__close:focus-visible,
.privacy-preferences-button:focus-visible,
.privacy-preferences-dock:focus-visible {
  outline: 3px solid #91dcf9;
  outline-offset: 3px;
}

.privacy-consent__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #50616f;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

.privacy-consent.is-managing .privacy-consent__close {
  display: grid;
}

.privacy-preferences-button {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-preferences-dock {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1000;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgb(15 22 32 / 18%);
  border-radius: 999px;
  color: #0c678f;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 24px rgb(15 22 32 / 14%);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) and (min-width: 981px) {
  .privacy-consent {
    color: #e8f2f6;
  }

  .privacy-consent__card {
    border-color: #314154;
    background: rgb(15 22 32 / 97%);
    box-shadow: 0 20px 70px rgb(0 0 0 / 42%);
  }

  .privacy-consent__eyebrow,
  .privacy-consent__copy a {
    color: #91dcf9;
  }

  .privacy-consent h2 {
    color: #f7fbfd;
  }

  .privacy-consent__copy > p:not(.privacy-consent__eyebrow) {
    color: #b7c6cf;
  }

  .privacy-consent__button {
    border-color: #91dcf9;
  }

  .privacy-consent__button--primary {
    color: #0f1620;
    background: #91dcf9;
  }

  .privacy-consent__button--secondary {
    color: #d9f3fd;
  }

  .privacy-consent__close {
    color: #b7c6cf;
  }

  .privacy-preferences-dock {
    border-color: #314154;
    color: #91dcf9;
    background: rgb(15 22 32 / 94%);
  }
}

@media (max-width: 720px) {
  .privacy-consent {
    inset: auto 0.65rem calc(0.65rem + env(safe-area-inset-bottom));
  }

  .privacy-consent__card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 15px;
  }

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

  .privacy-consent__button {
    padding-inline: 0.7rem;
  }

  .privacy-preferences-dock {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent__button {
    transform: none !important;
  }
}
