.measurement-banner,
.measurement-preferences {
  font-family: Outfit, Arial, sans-serif;
}

.measurement-banner {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 18px;
  color: #fff;
  background: #0B0818;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(11,8,24,.42);
  animation: measurement-banner-enter 420ms cubic-bezier(.22,.85,.3,1) both;
}

.measurement-banner[hidden],
.measurement-preferences[hidden] { display: none; }
.measurement-banner .mono,
.measurement-preferences .mono { margin: 0 0 6px; color: #c4b5fd; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.measurement-banner h2,
.measurement-preferences h2 { margin: 0; font-size: clamp(20px,2.5vw,25px); line-height: 1.1; }
.measurement-banner p:not(.mono),
.measurement-preferences p:not(.mono) { max-width: 620px; margin: 6px 0 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45; }
.measurement-banner__actions,
.measurement-preferences__actions { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 10px; }
.measurement-banner .btn,
.measurement-preferences .btn { min-height: 40px; border: 0; cursor: pointer; }
.measurement-text-button,
.footer-cookie-preferences { min-height: 42px; padding: 0; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; font: inherit; cursor: pointer; }
.measurement-banner .measurement-text-button { color: #fff; }
.footer-cookie-preferences { color: rgba(255,255,255,.78); font-size: 13px; }

@keyframes measurement-banner-enter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.measurement-preferences { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 18px; }
.measurement-preferences__backdrop { position: absolute; inset: 0; background: rgba(11,8,24,.76); }
.measurement-preferences__panel { position: relative; width: min(620px, 100%); max-height: min(760px, 100%); overflow: auto; padding: 32px; color: #fff; background: #0B0818; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.measurement-preferences__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; color: #fff; background: transparent; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.measurement-choice { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin-top: 16px; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; cursor: pointer; }
.measurement-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: #a78bfa; }
.measurement-choice strong,
.measurement-choice small { display: block; }
.measurement-choice small { margin-top: 4px; color: rgba(255,255,255,.7); line-height: 1.4; }
.measurement-choice--required { cursor: default; opacity: .8; }
.measurement-preferences__gpc { color: #f4d4ff !important; }
.measurement-preferences__actions { justify-content: flex-start; margin-top: 24px; }

@media (max-width: 720px) {
  .measurement-banner { grid-template-columns: 1fr; right: 10px; bottom: 10px; left: 10px; padding: 15px 16px; }
  .measurement-banner__actions { justify-content: flex-start; }
  .measurement-banner__actions .btn { flex: 1 1 180px; }
  .measurement-preferences__panel { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .measurement-banner { animation: none; }
}
