.atx-consent[hidden],
.atx-consent [hidden] {
  display: none !important;
}

.atx-consent {
  position: fixed;
  inset: 0;
  z-index: 100000;
  color: #121417;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}

.atx-consent__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 12, 18, 0.18);
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

.atx-consent__panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  width: min(1180px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid #e1e5ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(13, 18, 28, 0.2);
  pointer-events: auto;
}

.atx-consent--preferences {
  pointer-events: auto;
}

.atx-consent--preferences .atx-consent__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.atx-consent__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
}

.atx-consent__copy {
  max-width: 720px;
}

.atx-consent__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #e11919;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atx-consent h2,
.atx-consent h3,
.atx-consent p {
  margin: 0;
}

.atx-consent h2 {
  color: #0b0d10;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.atx-consent__copy p,
.atx-consent__preferences-intro {
  margin-top: 4px;
  color: #525b68;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.atx-consent__copy a {
  display: inline-flex;
  margin-top: 4px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.atx-consent__actions,
.atx-consent__preferences-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atx-consent__button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #cdd3dc;
  border-radius: 10px;
  background: #ffffff;
  color: #15191f;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.atx-consent__button:hover,
.atx-consent__button:focus-visible {
  border-color: #e11919;
  box-shadow: 0 0 0 3px rgba(225, 25, 25, 0.12);
  outline: none;
}

.atx-consent__button:active {
  transform: translateY(1px);
}

.atx-consent__button--primary {
  border-color: #e11919;
  background: #e11919;
  color: #ffffff;
}

.atx-consent__preferences {
  width: 100%;
  margin: 0;
  padding: 0;
}

.atx-consent__preferences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e5ea;
}

.atx-consent__close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8dde4;
  border-radius: 50%;
  background: #ffffff;
  color: #424a56;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.atx-consent__preferences-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 310px;
}

.atx-consent__preferences-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e5ea;
  background: #f5f6f8;
}

.atx-consent__preferences-nav button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #e2e5ea;
  border-left: 4px solid transparent;
  background: transparent;
  color: #313741;
  font: 750 13px/1.2 Inter, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.atx-consent__preferences-nav button[aria-selected="true"] {
  border-left-color: #e11919;
  background: #ffffff;
  color: #111317;
}

.atx-consent__preferences-nav button:hover,
.atx-consent__preferences-nav button:focus-visible {
  background: #ffffff;
  outline: none;
}

.atx-consent__preferences-content {
  min-width: 0;
  padding: 30px 32px;
}

.atx-consent__preferences-content h3,
.atx-consent__preference-row strong {
  display: block;
  color: #171a20;
  font-size: 17px;
  font-weight: 800;
}

.atx-consent__preferences-content p,
.atx-consent__preference-row small {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  color: #626c79;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.atx-consent__preferences-content a {
  display: inline-flex;
  margin-top: 18px;
  color: #b51218;
  font-size: 12px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.atx-consent__pane-heading,
.atx-consent__preference-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.atx-consent__preference-row {
  cursor: pointer;
}

.atx-consent__always {
  flex: 0 0 auto;
  color: #187a3a;
  font-size: 12px;
  font-weight: 800;
}

.atx-consent__switch {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
}

.atx-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.atx-consent__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd1d8;
  transition: background 160ms ease;
}

.atx-consent__switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.atx-consent__switch input:checked + span {
  background: #e11919;
}

.atx-consent__switch input:checked + span::after {
  transform: translateX(20px);
}

.atx-consent__switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(225, 25, 25, 0.18);
}

.atx-consent__switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.55;
}

.atx-consent__gpc {
  width: 100%;
  margin-top: 12px !important;
  color: #7b4b00 !important;
}

.atx-consent__preferences-actions {
  justify-content: space-between;
  margin: 0;
  padding: 18px 22px;
  border-top: 1px solid #e2e5ea;
  background: #ffffff;
}

body.atx-consent-preferences-open {
  overflow: hidden;
}

@media (min-width: 761px) {
  .atx-consent:not(.atx-consent--preferences) .atx-consent__panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: none;
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -10px 30px rgba(13, 18, 28, 0.12);
  }

  .atx-consent--preferences .atx-consent__panel {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(780px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    margin: 0;
    transform: translate(-50%, -50%);
    border-width: 1px;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(13, 18, 28, 0.28);
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .atx-consent__summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 10px 16px;
  }

  .atx-consent__copy .atx-consent__eyebrow {
    display: none;
  }

  .atx-consent .atx-consent__copy h2,
  .atx-consent__copy p {
    margin: 0;
  }

  .atx-consent .atx-consent__copy h2 {
    font-size: 18px;
    white-space: nowrap;
  }

  .atx-consent__copy p {
    font-size: 11px;
    line-height: 1.3;
  }

  .atx-consent__copy a {
    display: none;
  }

  .atx-consent__summary .atx-consent__button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .atx-consent__summary {
    grid-template-columns: max-content minmax(240px, 1fr) auto;
    gap: 18px;
    padding: 10px 16px;
  }

  .atx-consent__copy {
    display: contents;
  }

  .atx-consent__copy .atx-consent__eyebrow,
  .atx-consent__copy a {
    display: none;
  }

  .atx-consent .atx-consent__copy h2,
  .atx-consent__copy p {
    margin: 0;
  }

  .atx-consent .atx-consent__copy h2 {
    font-size: 18px;
    white-space: nowrap;
  }

  .atx-consent__copy p {
    font-size: 12px;
    line-height: 1.35;
  }

  .atx-consent__summary .atx-consent__button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .atx-consent__backdrop {
    background: rgba(8, 12, 18, 0.42);
  }

  .atx-consent__panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(88dvh, 780px);
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 48px rgba(13, 18, 28, 0.2);
  }

  .atx-consent__summary {
    display: block;
    padding: 26px 22px calc(20px + env(safe-area-inset-bottom));
  }

  .atx-consent__preferences {
    display: block;
    padding: 0;
  }

  .atx-consent__preferences-header {
    padding: 18px 20px;
  }

  .atx-consent__preferences-layout {
    display: block;
    min-height: 0;
  }

  .atx-consent__preferences-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #e2e5ea;
  }

  .atx-consent__preferences-nav button {
    min-height: 46px;
    padding: 0 14px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    font-size: 12px;
  }

  .atx-consent__preferences-nav button[aria-selected="true"] {
    border-bottom-color: #e11919;
  }

  .atx-consent__preferences-content {
    min-height: 210px;
    padding: 24px 22px;
  }

  .atx-consent h2 {
    font-size: 25px;
  }

  .atx-consent__copy p {
    font-size: 14px;
  }

  .atx-consent__actions,
  .atx-consent__preferences-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    margin-top: 22px;
  }

  .atx-consent__button {
    width: 100%;
    min-height: 48px;
  }

  .atx-consent__switch,
  .atx-consent__always {
    margin-top: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atx-consent *,
  .atx-consent *::before,
  .atx-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
