.wn-analytics-consent[hidden], .wn-analytics-settings[hidden], .wn-analytics-consent [hidden] { display: none; }
.wn-analytics-consent {
  position: fixed;
  z-index: 10010;
  inset: auto 1rem 1rem auto;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  box-sizing: border-box;
  padding: 1rem;
  color: #172b46;
  background: #fff;
  border: 1px solid #8596af;
  border-radius: .5rem;
  box-shadow: 0 4px 20px #172b4626;
}
.wn-analytics-consent h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.wn-analytics-consent p { margin: 0 0 .65rem; font-size: .925rem; }
.wn-analytics-consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 900px) {
  .wn-analytics-consent {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 6rem - env(safe-area-inset-bottom, 0px));
  }
}
.wn-analytics-consent button {
  min-height: 44px;
  padding: .375rem .75rem;
  border: 1px solid #526781;
  border-radius: .25rem;
  color: #203752;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

/* Keep the preferences control in the same visual hierarchy as footer links. */
.wn-analytics-settings > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .375rem .9rem;
  border: 1px solid #697791;
  border-radius: 999px;
  color: #e0e7f3;
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.wn-analytics-settings > button::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 7h5m4 0h9M3 17h9m4 0h5'/%3E%3Ccircle cx='10' cy='7' r='2'/%3E%3Ccircle cx='14' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wn-analytics-settings > button:hover,
.wn-analytics-settings > button[aria-expanded="true"] {
  border-color: var(--c-yellow, #fed800);
  color: var(--c-yellow, #fed800);
  background: rgba(255, 255, 255, .1);
}

.wn-analytics-settings > button:focus-visible {
  border-radius: 999px;
}
