.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 24px 24px;
  max-width: 1000px;
  margin: auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--orange);
  border-radius: 20px;
  box-shadow: 0 8px 32px #3854691a;
  font-family: inherit;
}
.analytics-consent h2 {
  margin: 0 0 8px;
  font: 700 20px/1.3 Quicksand, sans-serif;
  letter-spacing: -.025em;
}
.analytics-consent p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.analytics-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent a:hover { color: #9d4a17; }
.analytics-consent-actions { display: flex; gap: 12px; flex-shrink: 0; }
.analytics-consent-actions button {
  position: relative;
  isolation: isolate;
  min-width: 104px;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 700 16px/1.4 Quicksand, sans-serif;
  cursor: pointer;
}
.analytics-consent-actions button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  mask: url('/site/clasamea-theme/button.svg') center / 100% 100% no-repeat;
}
.analytics-consent-actions button:hover { color: var(--paper); }
.analytics-consent-actions button:hover::before { background: var(--ink); }
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-preferences:focus-visible { outline: 3px solid #b96327; outline-offset: 4px; }
.analytics-preferences {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.analytics-preferences svg { width: 22px; height: 22px; }
.analytics-preferences:hover { background: #ffffff60; color: #9d4a17; }
@media (max-width: 760px) {
  .analytics-consent { inset: auto 12px max(12px, env(safe-area-inset-bottom)); padding: 20px; display: block; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .analytics-consent-actions { margin-top: 18px; }
  .analytics-consent-actions button { flex: 1; }
}
