.consent-banner,
.consent-modal {
  position: fixed;
  z-index: 100000;
  color: #173c35;
  font-family: Arial, Helvetica, sans-serif;
}
.consent-banner[hidden],
.consent-modal[hidden] { display: none !important; }
.consent-banner {
  inset: auto 1rem 1rem 1rem;
  margin: auto;
  max-width: 1100px;
  border: 1px solid rgba(23, 60, 53, .2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(10, 30, 25, .24);
}
.consent-banner__body { display: grid; gap: 1rem; padding: 1.25rem; }
.consent-banner h2,
.consent-modal h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.consent-banner p,
.consent-modal p { margin: 0; line-height: 1.5; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.consent-actions button,
.consent-manage {
  min-height: 44px;
  padding: .7rem 1rem;
  border: 2px solid #173c35;
  border-radius: 999px;
  background: #fff;
  color: #173c35;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.consent-actions button:focus-visible,
.consent-manage:focus-visible,
.consent-modal__close:focus-visible { outline: 3px solid #ffb347; outline-offset: 2px; }
.consent-modal {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 25, 22, .68);
}
.consent-modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.consent-modal__panel > label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #d8e3df;
  border-radius: 12px;
}
.consent-modal small { display: block; margin-top: .25rem; line-height: 1.4; }
.consent-modal input { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.consent-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}
.consent-manage {
  position: fixed;
  z-index: 99999;
  right: 1rem;
  bottom: 1rem;
  min-height: 38px;
  padding: .5rem .8rem;
  border-width: 1px;
  background: #173c35;
  color: #fff;
  font-size: .82rem;
}
.consent-banner:not([hidden]) ~ .consent-manage { display: none; }
.consent-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1.25rem;
  border: 1px dashed currentColor;
  border-radius: 16px;
  text-align: center;
}
.consent-placeholder button { margin-top: .75rem; }
@media (min-width: 820px) {
  .consent-banner__body { grid-template-columns: 1fr auto; align-items: center; }
}
.form-status--error {
  display: block;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid #b42318;
  border-radius: 10px;
  background: #fff1f0;
  color: #7a271a;
  font-weight: 700;
}

html[data-theme="dark"] :is(.consent-banner, .consent-modal__panel) { border-color: #42665a; background: #172724; color: #e8f5ef; }
html[data-theme="dark"] .consent-modal__panel > label { border-color: #42665a; background: #1b302a; }
html[data-theme="dark"] :is(.consent-actions button, .consent-manage) { border-color: #77b79d; background: #1b302a; color: #e8f5ef; }
html[data-theme="dark"] .consent-manage { background: #245f4b; color: #fff; }
html[data-theme="dark"] .consent-modal__close { color: #e8f5ef; }
html[data-theme="dark"] .form-status--error { border-color: #df7a6f; background: #3a2020; color: #ffe4e1; }
