.consent-banner {
  position: fixed;
  z-index: 10000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: .58rem;
  max-width: 56rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(12, 67, 59, .22);
  border-radius: 1rem;
  background: #fffdf9;
  color: #173b35;
  box-shadow: 0 1rem 3rem rgba(22, 46, 41, .18);
  font-size: .92rem;
}
.consent-banner h2 { margin: 0 0 .28rem; font-size: 1.08rem; line-height: 1.2; }
.consent-dialog h2 { margin: 0 0 .45rem; font-size: 1.2rem; }
.consent-banner p { margin: 0; line-height: 1.38; }
.consent-dialog p { margin: 0; line-height: 1.55; }
.consent-banner a { color: inherit; }
.consent-banner-heading { display: flex; gap: .75rem; align-items: flex-start; }
.consent-banner-copy { flex: 1 1 auto; min-width: 0; }
.consent-close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  margin: -.35rem -.35rem 0 0;
  padding: 0;
  border: 1px solid rgba(12, 67, 59, .22);
  border-radius: 999px;
  background: transparent;
  color: #173b35;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.consent-summary { display: grid; gap: .12rem; }
.consent-summary p {
  display: flex;
  gap: .35rem;
  align-items: baseline;
}
.consent-summary strong { flex: 0 0 auto; }
.consent-summary span { font-size: .84rem; line-height: 1.3; }
.consent-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.consent-choice {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .75rem;
  border: 1px solid rgba(12, 67, 59, .22);
  border-radius: .8rem;
  cursor: pointer;
}
.consent-choice > span { display: grid; gap: .2rem; }
.consent-choice small { line-height: 1.4; }
.consent-choice input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: #0c594c; }
.consent-context { font-size: .76rem; }
.consent-banner-details { font-size: .78rem; }
.consent-banner-details summary { width: fit-content; cursor: pointer; font-weight: 650; text-decoration: underline; }
.consent-banner-details p { margin-top: .55rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }
.consent-actions button, .privacy-settings-link {
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.consent-actions button {
  appearance: none;
  -webkit-appearance: none;
  padding: .58rem .7rem;
  border: 1px solid #0c594c;
  font-size: .84rem;
  line-height: 1.2;
}
.consent-primary { background: #0c594c; color: #fff; }
.consent-secondary { background: transparent; color: #0c594c; }
.consent-customize {
  grid-column: 1 / -1;
  border: 0 !important;
  background: transparent;
  color: #0c594c;
  text-decoration: underline;
  appearance: none;
  -webkit-appearance: none;
}
.consent-banner-actions {
  position: sticky;
  z-index: 1;
  bottom: -.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  padding-top: .35rem;
  background: #fffdf9;
}
.consent-banner-actions button { width: 100%; }
.consent-dialog-backdrop {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 28, 25, .58);
}
.consent-dialog {
  width: min(100%, 38rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fffdf9;
  color: #173b35;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
}
.consent-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(12, 67, 59, .18);
  border-radius: .75rem;
}
.consent-option span { display: grid; gap: .25rem; }
.consent-option small { line-height: 1.4; }
.consent-option input { width: 1.25rem; height: 1.25rem; accent-color: #0c594c; }
.consent-note { margin: 1rem 0 !important; font-size: .9rem; }
.privacy-settings-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}
@media (max-width: 720px) {
  .consent-banner {
    top: max(.5rem, env(safe-area-inset-top));
    right: .65rem;
    bottom: auto;
    left: .65rem;
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(.5rem, env(safe-area-inset-bottom)));
    gap: .45rem;
    padding: .65rem .7rem;
    overscroll-behavior: contain;
  }
  .consent-choices { grid-template-columns: 1fr; }
  .consent-banner-copy > p { font-size: .84rem; line-height: 1.32; }
  .consent-summary { grid-template-columns: 1fr; gap: .12rem; }
  .consent-summary p { display: block; }
  .consent-summary span { font-size: .79rem; }
  .consent-choice { padding: .65rem; }
  .consent-choice small { font-size: .82rem; line-height: 1.32; }
  .consent-context, .consent-banner-details { font-size: .73rem; }
  .consent-actions { justify-content: stretch; }
  .consent-actions button { flex: 1 1 auto; }
  .consent-banner-actions button { min-height: 2.75rem; padding: .48rem .35rem; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner, .consent-dialog { scroll-behavior: auto; }
}
