.aht-consent-banner,
.aht-consent-modal,
.aht-consent-footer-control,
.aht-consent-fallback-control {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aht-consent-banner {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 70;
  width: min(100% - 1.5rem, 46rem);
  color: #0a1e4a;
  background: #fffaf0;
  border: 1px solid rgba(156, 92, 48, 0.24);
  border-radius: 0.75rem;
  box-shadow: 0 18px 55px -28px rgba(10, 30, 74, 0.45), 0 8px 20px -18px rgba(10, 30, 74, 0.25);
}

.aht-consent-banner[hidden],
.aht-consent-backdrop[hidden],
.aht-consent-fallback-control[hidden] {
  display: none !important;
}

.aht-consent-lock {
  overflow: hidden;
}

.aht-consent-banner__inner {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.aht-consent-banner__eyebrow {
  margin: 0 0 0.25rem;
  color: #9c5c30;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.aht-consent-banner__title {
  margin: 0;
  color: #0a1e4a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.aht-consent-banner__copy {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: rgba(10, 30, 74, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.aht-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.aht-consent-button {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 30, 74, 0.18);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: #0a1e4a;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.aht-consent-button:hover,
.aht-consent-button:focus-visible {
  border-color: rgba(10, 30, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(156, 92, 48, 0.16);
  outline: none;
}

.aht-consent-button--primary {
  border-color: #9c5c30;
  color: #fff;
  background: #9c5c30;
}

.aht-consent-button--primary:hover,
.aht-consent-button--primary:focus-visible {
  border-color: #7e4522;
  background: #7e4522;
}

.aht-consent-button--ghost {
  background: transparent;
}

.aht-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 30, 74, 0.48);
}

.aht-consent-modal {
  width: min(100%, 42rem);
  max-height: min(92vh, 48rem);
  overflow: auto;
  color: #0a1e4a;
  background: #fffdf8;
  border-radius: 0.8rem;
  box-shadow: 0 24px 80px -30px rgba(10, 30, 74, 0.55);
}

.aht-consent-modal__header,
.aht-consent-modal__body,
.aht-consent-modal__footer {
  padding: 1rem;
}

.aht-consent-modal__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(10, 30, 74, 0.1);
}

.aht-consent-modal__title {
  margin: 0;
  color: #0a1e4a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.aht-consent-modal__intro {
  margin: 0.45rem 0 0;
  color: rgba(10, 30, 74, 0.78);
  font-size: 0.94rem;
  line-height: 1.55;
}

.aht-consent-close {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(10, 30, 74, 0.12);
  border-radius: 999px;
  color: #0a1e4a;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.aht-consent-close:hover,
.aht-consent-close:focus-visible {
  border-color: rgba(10, 30, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(156, 92, 48, 0.16);
  outline: none;
}

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

.aht-consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid rgba(10, 30, 74, 0.1);
  border-radius: 0.65rem;
}

.aht-consent-option__title {
  margin: 0;
  color: #0a1e4a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.aht-consent-option__copy {
  margin: 0.3rem 0 0;
  color: rgba(10, 30, 74, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.aht-consent-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.8rem;
  min-height: 2rem;
  border-radius: 999px;
  color: #0a1e4a;
  background: rgba(10, 30, 74, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.aht-consent-switch {
  position: relative;
  display: inline-flex;
  width: 3.3rem;
  height: 1.9rem;
  align-items: center;
}

.aht-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.aht-consent-switch__track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(10, 30, 74, 0.22);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.aht-consent-switch__track::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.46rem;
  height: 1.46rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(10, 30, 74, 0.25);
  transition: transform 160ms ease;
}

.aht-consent-switch input:checked + .aht-consent-switch__track {
  background: #9c5c30;
}

.aht-consent-switch input:checked + .aht-consent-switch__track::after {
  transform: translateX(1.4rem);
}

.aht-consent-switch input:focus-visible + .aht-consent-switch__track {
  box-shadow: 0 0 0 3px rgba(156, 92, 48, 0.22);
}

.aht-consent-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(10, 30, 74, 0.1);
}

.aht-consent-footer-control {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.aht-consent-footer-control button,
.aht-consent-fallback-control {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.aht-consent-footer-control button:hover,
.aht-consent-footer-control button:focus-visible,
.aht-consent-fallback-control:hover,
.aht-consent-fallback-control:focus-visible {
  color: #fff;
  outline: none;
}

.aht-consent-fallback-control {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 65;
  padding: 0.45rem 0.65rem;
  color: #0a1e4a;
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid rgba(156, 92, 48, 0.2);
  border-radius: 999px;
  box-shadow: 0 12px 30px -22px rgba(10, 30, 74, 0.55);
  text-decoration: none;
}

@media (max-width: 640px) {
  .aht-consent-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

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

  .aht-consent-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .aht-consent-button {
    width: 100%;
  }

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

  .aht-consent-required,
  .aht-consent-switch {
    justify-self: start;
  }
}
