/* Consent interface is isolated from approved page layouts. */
.analytics-consent-mobile-copy, .analytics-consent-info-mobile { display: none; }
.analytics-consent {
  position: fixed; z-index: 60; left: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  max-width: 900px; padding: 0; color: #1c1d1b;
  background: #f3f0e8; border: 1px solid #cec8c2;
  box-shadow: 0 12px 45px rgb(0 0 0 / 16%);
}
.analytics-consent-inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(215px, .75fr);
  gap: 24px; padding: clamp(20px, 3vw, 32px);
}
.analytics-consent-label { font: 500 .65rem/1.5 var(--font-mono); letter-spacing: .08em; color: #62635f; }
.analytics-consent-copy h2 { margin: .6rem 0 .5rem; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.16; font-weight: 500; }
.analytics-consent-copy p { margin: 0 0 .8rem; font-size: .9rem; line-height: 1.5; color: #62635f; }
.analytics-consent-copy a { font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.analytics-consent-actions button {
  min-height: 46px; padding: 10px 16px; border: 1px solid #1c1d1b;
  font: 500 .9rem/1.3 var(--font-sans); cursor: pointer; border-radius: 2px;
}
/* Both choices have identical visual prominence, as advised by AZOP.
   Preserve the approved desktop/mobile geometry and 44px+ hit areas. */
.analytics-consent-accept,
.analytics-consent-reject { color: #1c1d1b; background: transparent; }
.analytics-consent-accept:hover,
.analytics-consent-reject:hover { background: #e5e0d6; }
.analytics-consent-actions button:hover { outline: 2px solid #3854c7; outline-offset: 1px; }
.analytics-consent-actions button:focus-visible { outline: 3px solid #3854c7; outline-offset: 3px; }
.analytics-consent-actions .analytics-consent-back {
  border: 0; min-height: 30px; text-decoration: underline;
  background: none; font-size: .8rem;
}
.site-footer .footer-consent-settings {
  min-height: 44px; background: none; border: 0; padding: 0;
  font: 400 .9375rem/1.4 var(--font-sans);
  color: var(--primary-foreground); text-align: left; cursor: pointer;
}
.site-footer .footer-consent-settings:hover, .site-footer .footer-consent-settings:focus-visible {
  text-decoration: underline; text-underline-offset: 4px;
}
@media (max-width: 600px) {
  /* Mobile-only compact panel: two equal choices, intact readability and consent semantics. */
  .analytics-consent { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .analytics-consent-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; }
  .analytics-consent-label, .analytics-consent-desktop-copy, .analytics-consent-info-desktop { display: none; }
  .analytics-consent-mobile-copy { display: inline; }
  .analytics-consent-copy h2 { margin: 0 0 5px; font-size: 1.15rem; line-height: 1.2; }
  .analytics-consent-copy p { margin: 0; font-size: .8125rem; line-height: 1.4; }
  .analytics-consent-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; align-items: stretch;
  }
  .analytics-consent-actions button { min-height: 44px; padding: 8px 5px; font-size: .8125rem; }
  .analytics-consent-actions .analytics-consent-back { grid-column: 1 / -1; min-height: 30px; }
  .analytics-consent-info-mobile {
    display: block; grid-column: 1 / -1; justify-self: center;
    font-size: .75rem; line-height: 1.35;
    text-decoration: underline; text-underline-offset: 3px;
  }
  .analytics-consent-info-mobile:focus-visible {
    outline: 3px solid #3854c7; outline-offset: 3px;
  }
}
