.ad-consent {
  position: fixed;
  z-index: 2147483000;
  inset: auto 0 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #f8fafc;
}

.ad-consent--open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.66);
}

.ad-consent__panel {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #111b2e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.ad-consent__content {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.ad-consent__eyebrow {
  margin: 0;
  color: #f2c45f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-consent h2,
.ad-consent p {
  margin: 0;
}

.ad-consent h2 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.ad-consent p,
.ad-consent__details {
  color: rgba(248, 250, 252, 0.82);
  line-height: 1.5;
}

.ad-consent__details summary {
  cursor: pointer;
  color: #f8fafc;
  font-weight: 700;
}

.ad-consent__details p {
  margin-top: 8px;
}

.ad-consent__link {
  width: fit-content;
  color: #8ed8ff;
  font-weight: 700;
}

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

.ad-consent__button,
.ad-consent__settings {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ad-consent__button--refuse {
  background: #f8fafc;
  color: #111827;
}

.ad-consent__button--accept {
  background: #16856e;
  color: #fff;
}

.ad-consent__settings {
  position: fixed;
  right: 12px;
  bottom: 12px;
  min-height: 38px;
  background: #111b2e;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ad-consent__button:focus-visible,
.ad-consent__settings:focus-visible,
.ad-consent__link:focus-visible {
  outline: 3px solid #f2c45f;
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .ad-consent__panel {
    width: calc(100% - 16px);
    margin-bottom: 8px;
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .ad-consent__content {
    padding: 16px;
  }

  .ad-consent__actions {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }
}

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