.analytics-consent,
.analytics-consent *,
.analytics-settings { box-sizing: border-box; }

.analytics-consent {
  position: fixed;
  left: clamp(12px, 2vw, 28px);
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 2147483646;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: min(860px, calc(100% - clamp(24px, 4vw, 56px)));
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #f8f5f0;
  background: rgba(32, 41, 46, .97);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font: 500 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.analytics-consent__copy { display: grid; gap: .25rem; min-width: 0; }
.analytics-consent__copy strong { color: #fff; font-size: 15px; }
.analytics-consent__copy p { margin: 0; color: rgba(248, 245, 240, .78); }
.analytics-consent__copy a { width: max-content; color: #ffb37e; text-underline-offset: 3px; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }

.analytics-consent__actions button,
.analytics-settings {
  min-height: 42px;
  padding: .62rem .9rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  color: #f8f5f0;
  background: rgba(255, 255, 255, .08);
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}

.analytics-consent__actions button:hover,
.analytics-settings:hover { background: rgba(255, 255, 255, .16); }
.analytics-consent__actions .analytics-consent__allow { border-color: #d9530d; background: #d9530d; color: #fff; }
.analytics-consent__actions .analytics-consent__allow:hover { background: #b44208; }
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible,
.analytics-settings:focus-visible { outline: 3px solid #ffb37e; outline-offset: 3px; }

.analytics-settings {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147483001;
  min-height: 34px;
  padding: .45rem .65rem;
  border-radius: 999px;
  color: rgba(248, 245, 240, .86);
  background: rgba(32, 41, 46, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
}
.analytics-settings[hidden] { display: none; }

@media (max-width: 680px) {
  .analytics-consent { grid-template-columns: 1fr; gap: .9rem; padding: 1rem; }
  .analytics-consent__actions { justify-content: stretch; }
  .analytics-consent__actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-settings { scroll-behavior: auto; }
}

