.consent-banner,
.consent-panel {
  position: fixed;
  inset-inline: 1rem;
  z-index: 60;
}

.consent-banner {
  bottom: 1rem;
}

.consent-panel {
  inset: auto 1rem 1rem auto;
  width: min(100% - 2rem, 34rem);
}

.consent-banner-inner,
.consent-panel-inner {
  background: rgba(247, 243, 236, 0.98);
  color: #172022;
  border: 1px solid rgba(23, 32, 34, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(14, 20, 21, 0.18);
}

.consent-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.consent-panel-inner {
  padding: 1.4rem;
  display: grid;
  gap: 1.25rem;
}

.consent-copy h2 {
  font-family:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville,
    "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
}

.consent-copy p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
}

.consent-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: #5e7b69;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.consent-button,
.consent-manage-button,
.consent-manage-dismiss,
.consent-close {
  font: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.consent-button {
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
}

.consent-button-primary {
  background: #97b8a1;
  color: #172022;
}

.consent-button-secondary {
  background: #172022;
  color: #f7f3ec;
}

.consent-button-ghost {
  background: transparent;
  border-color: rgba(23, 32, 34, 0.16);
  color: #172022;
}

.consent-options {
  display: grid;
  gap: 0.85rem;
}

.consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(23, 32, 34, 0.04);
  border: 1px solid rgba(23, 32, 34, 0.08);
}

.consent-option-copy {
  display: grid;
  gap: 0.3rem;
}

.consent-option-title {
  font-weight: 800;
}

.consent-option-text {
  color: #46595c;
  line-height: 1.5;
}

.consent-checkbox {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: #5e7b69;
}

.consent-close {
  justify-self: end;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: #46595c;
}

.consent-manage {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.consent-manage-button,
.consent-manage-dismiss {
  padding: 0.8rem 1rem;
  background: rgba(23, 32, 34, 0.92);
  color: #f7f3ec;
  box-shadow: 0 18px 42px rgba(14, 20, 21, 0.18);
}

.consent-manage-dismiss {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.consent-button:hover,
.consent-button:focus-visible,
.consent-manage-button:hover,
.consent-manage-button:focus-visible,
.consent-manage-dismiss:hover,
.consent-manage-dismiss:focus-visible,
.consent-close:hover,
.consent-close:focus-visible {
  transform: translateY(-1px);
}

@media (min-width: 860px) {
  .consent-banner-inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: end;
  }
}

@media (max-width: 640px) {
  .consent-banner,
  .consent-panel {
    inset-inline: 0.75rem;
  }

  .consent-manage {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: space-between;
  }

  .consent-manage-button {
    flex: 1;
    text-align: center;
  }

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