.analytics-consent[hidden], .analytics-settings[hidden] { display: none !important; }

.analytics-consent {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(850px, calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  align-items: end;
  gap: 32px;
  padding: 25px 29px 26px;
  color: #e9f0f4;
  background: linear-gradient(125deg, #112737f5, #07121cf8 72%);
  border: 1px solid #648da259;
  box-shadow: 0 18px 55px #0008;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.analytics-consent-copy { flex: 1 1 auto; min-width: 0; }
.analytics-consent h2 {
  margin: 0 0 9px;
  font: 400 23px/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: -.035em;
}
.analytics-consent h2::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  margin: 0 11px 7px 0;
  background: #a4d4ea;
}
.analytics-consent p {
  max-width: 480px;
  margin: 0;
  color: #b2c6d2;
  font: 12px/1.6 Arial, Helvetica, sans-serif;
}
.analytics-consent-copy a { color: #d7edf8; text-underline-offset: 3px; }
.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.analytics-consent-actions button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #6c98ac;
  border-radius: 24px;
  background: #a4d4ea;
  color: #07121c;
  font: 11px/1.3 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.analytics-consent-actions button:hover { background: #c5e4f1; }

@media (max-width: 720px) {
  .analytics-consent {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    display: block;
    padding: 20px;
  }
  .analytics-consent h2 { font-size: 21px; }
  .analytics-consent p { font-size: 12px; }
  .analytics-consent-actions { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; }
  .analytics-consent-actions button { padding: 10px 8px; white-space: normal; }
}
