.ad-consent[hidden],
.ad-consent__manage[hidden] {
  display: none;
}

.ad-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  width: min(32rem, calc(100vw - 2rem));
  padding: 1.25rem;
  color: #f5f3f0;
  background: #151513;
  border: 1px solid #45443f;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 38%);
  font: 400 0.95rem/1.5 "DM Sans", system-ui, sans-serif;
}

.ad-consent__title {
  margin: 0 0 0.5rem;
  color: inherit;
  font: 600 1.15rem/1.3 "Space Grotesk", "DM Sans", system-ui, sans-serif;
}

.ad-consent__description {
  margin: 0 0 0.75rem;
  color: #d1d0ca;
}

.ad-consent__link {
  color: #d0bfff;
  text-underline-offset: 0.2em;
}

.ad-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ad-consent__button,
.ad-consent__manage {
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  color: #f5f3f0;
  background: #24231f;
  border: 1px solid #67655e;
  border-radius: 0.65rem;
  font: inherit;
  cursor: pointer;
}

.ad-consent__button--accept {
  color: #11100e;
  background: #f5f3f0;
  border-color: #f5f3f0;
  font-weight: 600;
}

.ad-consent__button:hover,
.ad-consent__manage:hover {
  border-color: #c3a9ff;
}

.ad-consent__button:focus-visible,
.ad-consent__manage:focus-visible,
.ad-consent__link:focus-visible {
  outline: 3px solid #c3a9ff;
  outline-offset: 3px;
}

.ad-consent__manage {
  position: fixed;
  z-index: 999;
  right: 1rem;
  bottom: 1rem;
  background: #151513;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 32rem) {
  .ad-consent {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
    padding: 1rem;
  }

  .ad-consent__actions {
    flex-direction: column;
  }

  .ad-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-consent,
  .ad-consent * {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
