#analytics-consent[hidden] { display: none; }

#analytics-consent {
  position: fixed;
  z-index: 120;
  left: 20px;
  right: 20px;
  bottom: 112px;
  max-width: var(--max, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line, rgba(52, 42, 50, .13));
  border-radius: 4px;
  background: var(--shell, #fff8f5);
  color: var(--plum, #342a32);
  font-family: var(--sans, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif);
  box-shadow: 0 4px 24px rgba(52, 42, 50, .12);
}

#analytics-consent .analytics-consent-copy {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 72ch;
}

#analytics-consent .analytics-consent-title {
  margin: 0 0 5px;
  color: var(--plum, #342a32);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

#analytics-consent p {
  margin: 0;
  color: var(--ink, #51464c);
  font-size: .875rem;
  line-height: 1.5;
}

#analytics-consent .analytics-consent-copy a {
  color: var(--coral-dark, #9f383f);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#analytics-consent [data-analytics-status],
#analytics-consent .analytics-consent-note {
  display: block;
  margin-top: 6px;
  color: var(--muted, #786b72);
  font-size: .875rem;
  line-height: 1.45;
}

#analytics-consent .analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

#analytics-consent [data-analytics-choice] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-width: 170px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--plum-soft, #4a3b44);
  border-radius: 2px;
  background: var(--paper, #fff);
  color: var(--plum, #342a32);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

#analytics-consent [data-analytics-choice]:hover {
  background: var(--blush, #f5e4e0);
}

#analytics-consent [data-analytics-choice][aria-pressed="true"] {
  background: var(--plum, #342a32);
  color: var(--paper, #fff);
}

#analytics-consent :focus-visible,
[data-analytics-preferences]:focus-visible {
  outline: 3px solid var(--coral-dark, #9f383f);
  outline-offset: 3px;
}

[data-analytics-preferences] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.analytics-preferences-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: var(--max, 1240px);
  margin: 0 auto;
  padding: 0;
  color: var(--plum, #342a32);
  font-size: .875rem;
  line-height: 1.4;
}

.analytics-preferences-wrap:empty { display: none; }
.tracking-service-note { flex-basis: 100%; margin: 0; padding-bottom: 16px; font-size: .875rem; line-height: 1.6; }
.tracking-service-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1288px) {
  .analytics-preferences-wrap { padding-inline: 24px; }
}

@media (max-width: 900px) {
  #analytics-consent {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px;
  }
  #analytics-consent .analytics-consent-copy { flex-basis: 100%; }
}

@media (max-width: 540px) {
  #analytics-consent {
    left: 12px;
    right: 12px;
    bottom: 112px;
    padding: 16px;
  }
  #analytics-consent .analytics-consent-actions { width: 100%; }
  #analytics-consent [data-analytics-choice] {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-inline: 8px;
  }
}
