.consent-ui {
  position: relative;
  z-index: 1000;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
  color: #f8f4ed;
  background: rgba(12, 12, 12, .98);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .34);
}

.consent-banner[hidden],
.consent-modal-backdrop[hidden] {
  display: none;
}

.consent-eyebrow {
  margin: 0 0 5px;
  color: #d99a63;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.consent-banner h2,
.consent-modal h2,
.consent-option h3 {
  margin: 0;
  color: inherit;
}

.consent-banner h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.consent-banner p,
.consent-modal p,
.consent-option p {
  margin: 8px 0 0;
  line-height: 1.65;
}

.consent-banner a {
  color: #f5bb87;
}

.consent-banner-actions,
.consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-banner-actions {
  justify-content: flex-end;
  max-width: 420px;
}

.consent-button,
.consent-link-button,
.consent-close,
.footer-consent-button {
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}

.consent-inline-settings {
  margin-top: 10px;
  border: 1px solid currentColor;
}

.consent-button {
  padding: 10px 16px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  font-weight: 750;
}

.consent-button-primary {
  color: #17110d;
  background: #ef9a55;
  border-color: #ef9a55;
}

.consent-link-button {
  padding: 8px 5px;
  color: #f5bb87;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .66);
}

.consent-modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  color: #241c17;
  background: #fffaf4;
  border-radius: 20px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .4);
  outline: 0;
}

.consent-modal-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
}

.consent-close {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  color: #241c17;
  background: #efe6dc;
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
}

.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5d8cb;
  border-radius: 14px;
}

.consent-option h3 {
  font-size: 1rem;
}

.consent-option p {
  color: #62564d;
  font-size: .9rem;
}

.consent-option strong {
  color: #4f6752;
  font-size: .84rem;
  white-space: nowrap;
}

.consent-option.is-disabled {
  opacity: .72;
}

.consent-option input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: #c86f31;
}

.consent-option:has(input:disabled) {
  background: #f4efe9;
  opacity: .78;
}

.consent-meta-hold {
  margin: 8px 4px 0;
  color: #7a3e25;
  font-size: .84rem;
}

.consent-modal-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.consent-modal .consent-button {
  color: #241c17;
  border-color: #8f8075;
}

.consent-modal .consent-button-primary {
  color: #17110d;
  border-color: #ef9a55;
}

.consent-modal-open {
  overflow: hidden;
}

.consent-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(440px, calc(100vw - 36px));
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: #1f3928;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.consent-status:empty {
  display: none;
}

.footer-consent-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .consent-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .consent-banner-actions {
    justify-content: stretch;
    max-width: none;
  }

  .consent-banner-actions .consent-button {
    flex: 1 1 calc(50% - 5px);
  }

  .consent-link-button {
    flex: 1 0 100%;
  }

  .consent-modal {
    padding: 19px;
  }

  .consent-option {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-ui * {
    scroll-behavior: auto !important;
  }
}
