/* Optional website analytics choice. Never hides page content or traps focus. */
.analytics-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: #fffaf5;
  border: 1px solid #e8ccba;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(62, 33, 15, .22);
  color: #34271e;
  font-size: 14px;
}
.analytics-banner[hidden] { display: none; }
.analytics-banner-copy { max-width: 520px; }
.analytics-banner-copy strong { display: block; font-size: 15px; }
.analytics-banner-copy p { margin: 5px 0 0; line-height: 1.5; color: #5a4c42; }
.analytics-banner-copy a { color: #a5360a; text-decoration: underline; }
.analytics-banner-actions { display: flex; flex-shrink: 0; gap: 9px; }
.analytics-banner-actions button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #ba9b87;
  border-radius: 9px;
  background: transparent;
  color: #34271e;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.analytics-banner-actions .analytics-allow { background: #b83b0b; color: #fff; border-color: #b83b0b; }
.analytics-banner-actions button:hover { border-color: #b83b0b; }
.analytics-banner-actions .analytics-allow:hover { background: #952e09; }
.analytics-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-banner :focus-visible, .analytics-settings:focus-visible { outline: 3px solid #a5360a; outline-offset: 3px; }
@media (max-width: 690px) {
  .analytics-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px; }
  .analytics-banner-actions { width: 100%; }
  .analytics-banner-actions button { flex: 1; }
}
@media (max-width: 350px) {
  .analytics-banner-actions { flex-direction: column; }
}
