.consent-layer[hidden] {
  display: none;
}

.consent-layer {
  position: fixed;
  z-index: 10000;
  inset: auto 0 0;
  padding: 1rem;
  pointer-events: none;
}

.consent-banner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 22rem);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: end;
  color: #f5f3ee;
  background: #101010;
  border: 1px solid rgba(245, 243, 238, 0.28);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: auto;
}

.consent-banner__eyebrow {
  margin: 0 0 0.65rem;
  color: #a8a69f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consent-banner h2 {
  margin: 0 0 0.75rem;
  color: inherit;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.consent-banner__copy > p:not(.consent-banner__eyebrow) {
  max-width: 64ch;
  margin: 0 0 0.8rem;
  color: #d2d0ca;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-banner a {
  color: inherit;
  font-size: 0.82rem;
  text-underline-offset: 0.2em;
}

.consent-banner__actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.consent-banner button,
.consent-settings {
  min-height: 44px;
  padding: 0.75rem 1rem;
  color: #f5f3ee;
  background: transparent;
  border: 1px solid rgba(245, 243, 238, 0.52);
  border-radius: 0;
  font: 700 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.consent-banner [data-consent-allow] {
  border-color: #711f2b;
  background: #711f2b;
}

.consent-banner [data-consent-deny] {
  border-color: rgba(245, 243, 238, 0.52);
  background: #252525;
}

.consent-banner button:hover,
.consent-banner button:focus-visible,
.consent-settings:hover,
.consent-settings:focus-visible {
  color: #050505;
  background: #f5f3ee;
  outline: none;
}

.consent-banner [data-consent-allow]:hover {
  color: #f5f3ee;
  background: #8b2938;
}

.consent-banner [data-consent-deny]:hover {
  color: #f5f3ee;
  background: #383838;
}

.consent-banner button:focus-visible {
  color: #f5f3ee;
  outline: 2px solid #f5f3ee;
  outline-offset: 3px;
}

.consent-settings {
  padding: 0;
  min-height: auto;
  border: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: none;
  text-decoration: underline;
  text-decoration-color: rgba(245, 243, 238, 0.42);
  text-underline-offset: 0.2em;
}

.consent-settings:hover,
.consent-settings:focus-visible {
  color: inherit;
  background: transparent;
  text-decoration-color: currentColor;
}

.consent-settings--floating {
  position: fixed;
  z-index: 9999;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  min-height: 40px;
  color: #f5f3ee;
  background: #101010;
  border: 1px solid rgba(245, 243, 238, 0.36);
  font-size: 0.65rem;
  text-decoration: none;
}

.consent-settings--floating:hover,
.consent-settings--floating:focus-visible {
  color: #050505;
  background: #f5f3ee;
}

@media (max-width: 720px) {
  .consent-banner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .consent-banner__actions {
    grid-template-columns: 1fr;
  }

  .consent-banner button {
    width: 100%;
  }
}
