.analytics-preferences {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.analytics-consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  border: 1px solid rgba(23, 28, 26, .18);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #f8f5ef;
  color: #241e18;
  box-shadow: 0 1.5rem 4rem rgba(23, 28, 26, .22);
}

.analytics-consent::backdrop { background: transparent; }
.analytics-consent h2 { margin: .35rem 0 .65rem; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.analytics-consent p { margin: .5rem 0; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.analytics-actions button {
  min-height: 44px;
  border: 1px solid rgba(23, 28, 26, .25);
  border-radius: 999px;
  padding: .65rem 1rem;
  background: #241e18;
  color: #f8f5ef;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.analytics-actions button + button { background: transparent; color: #241e18; }
.analytics-current { font-size: .8rem; color: #62594f; }
.analytics-persistence-warning {
  margin-top: .85rem;
  border-left: 3px solid #9f3f2b;
  padding: .65rem .75rem;
  background: rgba(159, 63, 43, .08);
  color: #6f2c1e;
  font-size: .9rem;
}
.analytics-warning-close {
  min-height: 44px;
  margin-top: .65rem;
  border: 1px solid rgba(23, 28, 26, .25);
  border-radius: 999px;
  padding: .6rem 1rem;
  background: transparent;
  color: #241e18;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media print {
  .analytics-preferences,
  .analytics-consent { display: none; }
}
