.consent-layer {
  background: rgba(18, 50, 56, 0.62);
  inset: 0;
  padding: 1rem;
  position: fixed;
  z-index: 99999;
}

.consent-panel {
  background: #fffdf8;
  border: 1px solid rgba(18, 50, 56, 0.2);
  border-radius: 1.25rem;
  bottom: 1rem;
  box-shadow: 0 24px 70px rgba(18, 50, 56, 0.28);
  color: #183033;
  left: 50%;
  max-height: calc(100vh - 2rem);
  max-width: 58rem;
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  position: absolute;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
}

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

.consent-panel__copy p:last-child {
  margin-top: 0.6rem;
}

.consent-panel__eyebrow {
  color: #b45b48;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consent-panel__actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.consent-button {
  background: #173f43;
  border: 2px solid #173f43;
  border-radius: 999px;
  color: #fffdf8;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 3rem;
  padding: 0.7rem 1rem;
}

.consent-button:focus-visible {
  outline: 3px solid #e1b65a;
  outline-offset: 3px;
}

.consent-panel__details {
  border-block: 1px solid rgba(18, 50, 56, 0.16);
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding-block: 1.25rem;
}

.consent-panel__details[hidden] {
  display: none;
}

.consent-panel__details label {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.consent-panel__details small {
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 42rem) {
  .consent-panel__actions {
    grid-template-columns: 1fr;
  }
}
