.wna-analytics-choice,
.wna-analytics-choice * {
  box-sizing: border-box;
}

.wna-analytics-choice[hidden],
.wna-analytics-preferences[hidden],
.wna-analytics-choice__signal[hidden] {
  display: none !important;
}

.wna-analytics-choice {
  position: fixed;
  z-index: 100000;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(760px, calc(100vw - 36px));
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding: 17px 20px;
  border: 1px solid #dcc8a6;
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 0 8px 30px rgb(31 18 41 / 20%);
  color: #432252;
  font-family: Figtree, Arial, sans-serif;
}

.wna-analytics-choice__text {
  flex: 1 1 auto;
  min-width: 0;
}

.wna-analytics-choice__text strong {
  display: block;
  margin-bottom: 4px;
  color: #432252;
  font-size: 16px;
  line-height: 1.25;
}

.wna-analytics-choice__text p {
  margin: 0;
  color: #51465b;
  font-size: 13px;
  line-height: 1.5;
}

.wna-analytics-choice__text a {
  color: #643673;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wna-analytics-choice__text .wna-analytics-choice__signal {
  margin-top: 5px;
  font-weight: 700;
}

.wna-analytics-choice__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.wna-analytics-choice__actions button {
  width: 118px;
  min-height: 42px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #643673;
  border-radius: 4px;
  background: #643673;
  color: #fff;
  font: 700 12px/1.25 Figtree, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

.wna-analytics-choice__actions button:hover:not(:disabled) {
  background: #432252;
}

.wna-analytics-choice__actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.wna-analytics-choice button:focus-visible,
.wna-analytics-choice a:focus-visible,
.wna-analytics-preferences:focus-visible {
  outline: 3px solid #ba873e;
  outline-offset: 3px;
}

.wna-site-footer-a .wna-analytics-preferences,
.footerbot .wna-analytics-preferences {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eac27d;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wna-site-footer-a .wna-analytics-preferences:hover,
.footerbot .wna-analytics-preferences:hover {
  color: #fff;
}

/* Home's legacy typography rules use !important; keep the choice legible there. */
body #wna-analytics-choice #wna-analytics-choice-title {
  color: #432252 !important;
  font: 700 16px/1.25 Figtree, Arial, sans-serif !important;
}

body #wna-analytics-choice #wna-analytics-choice-description,
body #wna-analytics-choice .wna-analytics-choice__signal {
  color: #51465b !important;
  font: 400 13px/1.5 Figtree, Arial, sans-serif !important;
}

body #wna-analytics-choice .wna-analytics-choice__signal {
  font-weight: 700 !important;
}

body #wna-analytics-choice .wna-analytics-choice__actions button {
  color: #fff !important;
  font: 700 12px/1.25 Figtree, Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-align: center !important;
  text-transform: none !important;
}

body #wna-analytics-choice .wna-analytics-choice__text a {
  color: #643673 !important;
  text-decoration: underline !important;
}

@media (max-width: 720px) {
  .wna-analytics-choice {
    right: 8px;
    bottom: 8px;
    display: block;
    width: calc(100vw - 16px);
    max-height: min(58vh, 390px);
    padding: 14px 15px;
  }

  .wna-analytics-choice__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }

  .wna-analytics-choice__actions button {
    width: 100%;
  }
}
