.consent-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.consent-footer-links a,
.consent-footer-links button {
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-footer-links button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  z-index: 10020;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #102638;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  color: #fff;
}

.consent-banner__copy {
  min-width: 0;
  flex: 1;
}

.consent-banner h2,
.consent-settings h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.consent-banner p {
  margin: 0;
  color: #e2e9ee;
  font-size: 14px;
  line-height: 1.5;
}

.consent-banner a {
  color: #fff;
  text-underline-offset: 3px;
}

.consent-banner__actions,
.consent-settings__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.consent-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
}

.consent-button:focus-visible,
.consent-settings__close:focus-visible,
.consent-footer-links a:focus-visible,
.consent-footer-links button:focus-visible {
  outline: 3px solid #d7b568;
  outline-offset: 3px;
}

.consent-button--primary {
  background: #d7b568;
  color: #14202a;
}

.consent-button--quiet {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
}

.consent-settings {
  position: fixed;
  z-index: 10030;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
}

.consent-settings.is-open {
  display: grid;
}

.consent-settings__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 20, 0.72);
}

.consent-settings__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #dbe2e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  color: #17222c;
}

.consent-settings__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17222c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.consent-settings__row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #e3e8ec;
}

.consent-settings__row strong,
.consent-settings__row span {
  display: block;
}

.consent-settings__row strong {
  margin-bottom: 4px;
}

.consent-settings__row span span {
  color: #53616d;
  font-size: 14px;
  line-height: 1.45;
}

.consent-settings__required {
  flex: 0 0 auto;
  color: #53616d;
  font-size: 13px;
  font-weight: 700;
}

.consent-settings__row--toggle {
  cursor: pointer;
}

.consent-settings__row--toggle input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: #9d7624;
}

.consent-settings__actions {
  padding-top: 16px;
  border-top: 1px solid #e3e8ec;
}

.consent-settings .consent-button--quiet {
  border-color: #aeb9c2;
  color: #17222c;
}

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

@media (max-width: 760px) {
  .consent-banner {
    bottom: calc(72px + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 14px;
  }

  .consent-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consent-button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 390px) {
  .consent-banner {
    right: 8px;
    left: 8px;
  }

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

  .consent-banner__actions .consent-button--primary {
    grid-column: 1 / -1;
  }

  .consent-settings__dialog {
    padding: 20px 16px;
  }

  .consent-settings__row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-settings {
    scroll-behavior: auto;
  }
}
