.analytics-settings-footer { text-align: center; }
.analytics-settings-footer button[hidden] { display: none; }
.analytics-settings-footer button:not([hidden]) { display: inline-flex; margin: 14px auto; padding: 8px; }

.analytics-consent {
  position: fixed;
  z-index: 60;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  width: min(385px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid #eddbd9;
  border-radius: 16px;
  background: #fffdfc;
  color: #31262a;
  box-shadow: 0 10px 30px #3f222421;
}

.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 6px; font-size: 17px; }
.analytics-consent p { margin: 0; color: #66535b; font-size: 14px; line-height: 1.55; }
.analytics-consent .analytics-consent-status { margin-top: 4px; }
.analytics-consent-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.analytics-consent-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #d8bebc;
  border-radius: 9px;
  background: #fff;
  color: #31262a;
  font-size: 14px;
  font-weight: 700;
}
.analytics-consent-actions button:hover { border-color: #a33e38; background: #fff2ed; }
.analytics-consent-actions button:focus-visible { outline: 3px solid #a33e38; outline-offset: 2px; }

@media (max-width: 720px) {
  .analytics-consent {
    inset: auto max(12px, env(safe-area-inset-right)) calc(82px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    width: auto;
  }
}
