:root {
  --ame-consent-cream: #F5F2EC;
  --ame-consent-charcoal: #2C2C2A;
  --ame-consent-gold: #C8A97E;
  --ame-consent-line: rgba(44, 44, 42, 0.18);
}

.ame-consent-banner,
.ame-consent-dialog {
  color: var(--ame-consent-charcoal);
  font-family: Inter, Arial, sans-serif;
}

.ame-consent-banner[hidden],
.ame-consent-dialog[hidden] {
  display: none !important;
}

.ame-consent-banner {
  position: fixed;
  z-index: 2500;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 42px);
  width: auto;
  max-width: 1040px;
  margin-left: auto;
  padding: 25px 27px calc(25px + env(safe-area-inset-bottom));
  border: 1px solid rgba(200, 169, 126, 0.55);
  background: rgba(245, 242, 236, 0.985);
  box-shadow: 0 22px 70px rgba(44, 44, 42, 0.22);
  box-sizing: border-box;
}

.ame-consent-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.ame-consent-eyebrow,
.ame-consent-dialog__eyebrow {
  margin: 0 0 8px;
  color: var(--ame-consent-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ame-consent-title,
.ame-consent-dialog__title {
  margin: 0;
  color: var(--ame-consent-charcoal);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}

.ame-consent-copy,
.ame-consent-dialog__copy {
  max-width: 670px;
  margin: 10px 0 0;
  color: rgba(44, 44, 42, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.ame-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(154px, 1fr));
  gap: 10px;
  min-width: 330px;
}

.ame-consent-button,
.ame-cookie-settings {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
}

.ame-consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--ame-consent-charcoal);
  background: transparent;
  color: var(--ame-consent-charcoal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ame-consent-button:hover,
.ame-consent-button:focus-visible {
  border-color: var(--ame-consent-gold);
  background: var(--ame-consent-gold);
  color: #fff;
}

.ame-consent-button--secondary {
  border-color: var(--ame-consent-charcoal);
  background: var(--ame-consent-charcoal);
  color: #fff;
}

.ame-consent-button--manage {
  grid-column: 1 / -1;
  min-height: 39px;
  border-color: transparent;
  color: rgba(44, 44, 42, 0.72);
  text-decoration: underline;
  text-decoration-color: rgba(200, 169, 126, 0.85);
  text-underline-offset: 4px;
}

.ame-consent-button--manage:hover,
.ame-consent-button--manage:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--ame-consent-charcoal);
}

.ame-consent-dialog {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 24, 22, 0.67);
  box-sizing: border-box;
}

.ame-consent-dialog__panel {
  position: relative;
  width: min(100%, 660px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(200, 169, 126, 0.52);
  background: var(--ame-consent-cream);
  box-shadow: 0 34px 100px rgba(20, 20, 18, 0.38);
  box-sizing: border-box;
}

.ame-consent-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ame-consent-charcoal);
  cursor: pointer;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.ame-consent-categories {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--ame-consent-line);
}

.ame-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ame-consent-line);
}

.ame-consent-category h3 {
  margin: 0 0 7px;
  color: var(--ame-consent-charcoal);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ame-consent-category p {
  margin: 0;
  color: rgba(44, 44, 42, 0.67);
  font-size: 12px;
  line-height: 1.6;
}

.ame-consent-always-on {
  min-width: 80px;
  padding-top: 2px;
  color: var(--ame-consent-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.ame-consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 50px;
  height: 28px;
  cursor: pointer;
}

.ame-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.ame-consent-switch__track {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(44, 44, 42, 0.38);
  border-radius: 30px;
  background: rgba(44, 44, 42, 0.1);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.ame-consent-switch__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ame-consent-charcoal);
  transition: transform 180ms ease, background-color 180ms ease;
}

.ame-consent-switch input:checked + .ame-consent-switch__track {
  border-color: var(--ame-consent-gold);
  background: rgba(200, 169, 126, 0.32);
}

.ame-consent-switch input:checked + .ame-consent-switch__track::after {
  transform: translateX(22px);
  background: var(--ame-consent-gold);
}

.ame-consent-switch input:focus-visible + .ame-consent-switch__track {
  outline: 2px solid var(--ame-consent-gold);
  outline-offset: 3px;
}

.ame-consent-dialog__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.ame-consent-dialog__links {
  margin: 19px 0 0;
  color: rgba(44, 44, 42, 0.62);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.ame-consent-dialog__links a {
  color: inherit;
  text-underline-offset: 3px;
}

.ame-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(200, 169, 126, 0.75);
  text-underline-offset: 3px;
}

.ame-cookie-settings:hover,
.ame-cookie-settings:focus-visible {
  color: #fff;
}

body.ame-consent-modal-open {
  overflow: hidden !important;
}

@media (max-width: 799px) {
  .ame-site-footer {
    padding-bottom: calc(152px + env(safe-area-inset-bottom)) !important;
  }

  .ame-consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .ame-consent-banner__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ame-consent-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .ame-consent-title {
    font-size: 29px;
  }

  .ame-consent-dialog {
    padding: 12px;
  }

  .ame-consent-dialog__panel {
    max-height: calc(100svh - 24px);
    padding: 31px 21px 24px;
  }

  .ame-consent-category {
    gap: 14px;
  }

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

  .ame-consent-dialog__actions .ame-consent-button {
    min-height: 47px;
  }

  body.ame-consent-active .ame-mobile-sticky-native,
  body.ame-consent-active .ame-floating-journey-cta,
  body.ame-consent-active #mobile-sticky-cta,
  body.ame-consent-modal-open .ame-mobile-sticky-native,
  body.ame-consent-modal-open .ame-floating-journey-cta,
  body.ame-consent-modal-open #mobile-sticky-cta {
    transform: translateY(calc(100% + env(safe-area-inset-bottom))) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 430px) {
  .ame-consent-copy,
  .ame-consent-dialog__copy,
  .ame-consent-category p {
    font-size: 11px;
  }

  .ame-consent-button {
    padding-inline: 10px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ame-consent-button,
  .ame-consent-switch__track,
  .ame-consent-switch__track::after {
    transition: none !important;
  }
}
