/* production layer UI: consent banner, toasts, turnstile slot */

.idp-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe5f3;
  box-shadow: 0 24px 60px rgba(11, 42, 91, 0.22);
  backdrop-filter: blur(14px);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}
.idp-consent.is-visible { transform: none; opacity: 1; }
.idp-consent__text {
  flex: 1 1 380px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #3d4553;
}
.idp-consent__text strong { color: #0b1526; }
.idp-consent__text a { color: #2f6fed; text-decoration: underline; text-underline-offset: 2px; }
.idp-consent__actions { display: flex; gap: 10px; flex: none; }

.idp-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.idp-btn--solid { background: #15499a; color: #fff; }
.idp-btn--solid:hover { background: #1a56b4; transform: translateY(-1px); }
.idp-btn--ghost { background: #fff; border-color: #c9d7ea; color: #123a72; }
.idp-btn--ghost:hover { border-color: #2f6fed; color: #2f6fed; }

.idp-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 9100;
  max-width: min(92vw, 520px);
  padding: 13px 18px;
  border-radius: 12px;
  background: #0b2a5b;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 18px 40px rgba(7, 26, 61, 0.3);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s ease, opacity 0.22s ease;
}
.idp-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.idp-toast--error { background: #a8281c; }

.idp-turnstile {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.idp-turnstile:empty { display: none; }

@media (max-width: 640px) {
  .idp-consent { left: 10px; right: 10px; bottom: 10px; padding: 15px 16px; }
  .idp-consent__actions { width: 100%; }
  .idp-consent__actions .idp-btn { flex: 1; }
}
