body.consent-open {
  overflow: hidden;
}

.consent-banner,
.consent-settings {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(10, 10, 12, 0.54);
  backdrop-filter: blur(3px);
}

.consent-settings {
  place-items: center;
}

.consent-card {
  position: relative;
  width: min(100%, 43rem);
  max-height: min(90vh, 52rem);
  overflow-y: auto;
  box-sizing: border-box;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: #171719;
  color: #f8f7f4;
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.42);
}

.consent-card h2 {
  margin: 0 2rem 0.7rem 0;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.consent-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.consent-card p {
  margin: 0.65rem 0;
  color: rgba(248, 247, 244, 0.82);
  font-size: 0.94rem;
  line-height: 1.55;
}

.consent-privacy-link {
  margin-top: 0.85rem !important;
}

.consent-text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.consent-button {
  min-height: 2.75rem;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 650;
  cursor: pointer;
}

.consent-button--primary {
  border-color: #d9b66e;
  background: #d9b66e;
  color: #171719;
}

.consent-button--secondary {
  border-color: rgba(255, 255, 255, 0.52);
  background: transparent;
  color: #f8f7f4;
}

.consent-button:hover,
.consent-text-button:hover {
  filter: brightness(1.12);
}

.consent-button:focus-visible,
.consent-text-button:focus-visible,
.consent-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.consent-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f8f7f4;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  cursor: pointer;
}

.consent-option--locked {
  cursor: default;
}

.consent-option__title,
.consent-option__description {
  display: block;
}

.consent-option__title {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.consent-option__description {
  color: rgba(248, 247, 244, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent-status {
  color: rgba(248, 247, 244, 0.75);
  font-size: 0.85rem;
  white-space: nowrap;
}

.consent-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-switch {
  position: relative;
  width: 3.15rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #5a5a5e;
  transition: background 160ms ease;
}

.consent-switch::after {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.36rem;
  height: 1.36rem;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.consent-option input:checked + .consent-switch {
  background: #d9b66e;
}

.consent-option input:checked + .consent-switch::after {
  transform: translateX(1.35rem);
}

.consent-option input:focus-visible + .consent-switch {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 34rem) {
  .consent-banner,
  .consent-settings {
	padding: 0.65rem;
  }

  .consent-actions {
	display: grid;
	grid-template-columns: 1fr;
  }

  .consent-button {
	width: 100%;
  }
}