.kp-pref[hidden] { display: none; }

.kp-pref {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(11, 18, 48, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 60px rgba(11, 18, 48, .14);
  color: #0B1230;
  font-family: "Satoshi", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kp-pref__copy { min-width: 0; }
.kp-pref__title { display: block; margin-bottom: 4px; font-size: .98rem; }
.kp-pref__text { margin: 0; color: #59617A; font-size: .88rem; line-height: 1.5; }
.kp-pref__privacy { display: inline-block; margin-top: 6px; color: #2637C8; font-size: .82rem; text-underline-offset: .16em; }
.kp-pref__actions { display: flex; flex: 0 0 auto; gap: 9px; }

.kp-pref-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.kp-pref-btn--primary { border: 1px solid #2637C8; background: #2637C8; color: #fff; }
.kp-pref-btn--secondary { border: 1px solid rgba(11, 18, 48, .16); background: #fff; color: #0B1230; }
.kp-pref-btn:focus-visible,
.kp-pref-link:focus-visible { outline: 3px solid rgba(38, 55, 200, .28); outline-offset: 3px; }

.kp-pref-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .16em;
  cursor: pointer;
}

@media (max-width: 640px) {
  .kp-pref { align-items: stretch; flex-direction: column; gap: 14px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .kp-pref__actions { width: 100%; }
  .kp-pref-btn { flex: 1 1 0; }
}

@media (max-width: 420px) {
  .kp-pref__actions { flex-direction: column; }
  .kp-pref-btn { width: 100%; }
}
