/* Cookie banner */
.cookie {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(760px, calc(100% - (var(--container-padding) * 2)));
  z-index: 60;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.10);
  outline: none;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 14px 12px;
  display: block;
}

.cookie.show {
  display: block;
}

.cookie.is-hidden {
  display: none !important;
}

.cookie h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.cookie p {
  margin: 0;
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.75);
}

.cookie-service-summary {
  display: block;
  margin-top: 5px;
}

.cookie-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner-link {
  text-decoration: underline;
  color: rgba(0, 0, 0, 1);
}

.cookie-banner-link:visited {
  color: rgba(0, 0, 0, 1);
}

.btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  padding: 12px;
  font-weight: var(--font-weight-bold);
  font-size: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  color: #000 !important;
}

.btn.primary {
  background: rgba(0, 0, 0, 0.90);
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.90);
}

.cookie-settings {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 12px;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-setting:first-child {
  padding-top: 0;
}

.cookie-setting__copy {
  min-width: 0;
}

.cookie-setting__copy strong,
.cookie-setting__copy span {
  display: block;
}

.cookie-setting__copy strong {
  font-size: 13px;
}

.cookie-setting__copy span {
  margin-top: 3px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 12px;
  line-height: 1.35;
}

.cookie-setting__status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.cookie-setting input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #000;
}

.cookie-save-settings {
  width: 100%;
  margin-top: 12px;
}

/* Decline overlay */
.redirect {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.redirect.show {
  display: grid;
}

.redirect h1 {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: var(--font-weight-bold);
  color: #111;
}

.redirect .count {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: var(--font-weight-bold);
}
