.es-verify-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;
  z-index: 1100;
  background: #0b1220;
  color: #e0f2fe;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
body.es-verify-on .es-verify-banner:has(.es-verify-inner) {
  display: block;
}
.es-verify-banner[hidden],
.es-verify-banner:empty,
.es-verify-banner:not(:has(.es-verify-inner)),
body:not(.es-verify-on) .es-verify-banner {
  display: none !important;
  visibility: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.es-verify-banner.is-urgent {
  background: #7f1d1d;
  border-bottom-color: rgba(248, 113, 113, 0.4);
}
.es-verify-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  line-height: 1.35;
}
.es-verify-inner strong { font-weight: 800; }
.es-verify-inner span { flex: 1 1 280px; color: inherit; opacity: 0.95; }
.es-verify-go {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  color: #0f172a;
}
.es-verify-banner.is-urgent .es-verify-go {
  background: #fde68a;
  color: #7c2d12;
}
.es-verify-closed {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(5, 8, 16, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.es-verify-closed-sheet {
  max-width: 440px;
  width: 100%;
  background: #0c1220;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.25rem;
  color: #e2e8f0;
}
.es-verify-closed-sheet h2 {
  margin: 0 0 0.6rem;
  color: #fecaca;
  font-size: 1.25rem;
}
.es-verify-closed-sheet p { margin: 0 0 0.75rem; color: #cbd5e1; line-height: 1.45; }
.es-verify-closed-mail { font-family: ui-monospace, monospace; color: #94a3b8 !important; font-size: 0.82rem; }
body.es-verify-on .main-header { box-shadow: none; }
.es-verify-card {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(12, 74, 110, 0.28);
  color: #e2e8f0;
}
.es-verify-card[hidden] { display: none !important; }
.es-verify-card h3 {
  margin: 0 0 0.4rem;
  color: #7dd3fc;
  font-size: 1.02rem;
}
.es-verify-card p { margin: 0 0 0.75rem; color: #cbd5e1; font-size: 0.88rem; line-height: 1.45; }
.es-verify-card .es-verify-go { display: inline-block; }

/* ============================================================
   BANNER FLUTTUANTE BOTTOM: EMAIL NON VERIFICATA (OTP)
   ============================================================ */
body:has(#es-otp-bottom-banner) .es-pd,
body:has(#es-otp-bottom-banner) .es-pd-body {
  padding-bottom: 4.5rem;
}
body:has(#es-otp-bottom-banner) #elisee-cookie-settings-btn {
  bottom: 4.75rem !important;
}
.es-otp-modal-backdrop,
#es-otp-modal-overlay {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.es-mailotp-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #0b1018;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.es-mailotp {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 8px;
  box-sizing: border-box;
}
.es-mailotp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.es-mailotp-sub {
  margin: 0;
  flex: 1 1 180px;
  min-width: 0;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.3;
}
.es-mailotp-sub strong { color: #fff; font-weight: 700; }
.es-mailotp-gmail {
  margin-left: 8px;
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
}
.es-mailotp-slots {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.es-mailotp-slot {
  width: 36px;
  height: 42px;
  border-radius: 8px;
  background: #070b12;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-sizing: border-box;
}
.es-mailotp-slot input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: Inter, Outfit, sans-serif;
  outline: none;
  padding: 0;
}
.es-mailotp-dock:not(.is-ready) .es-mailotp-slot { opacity: 0.45; }
.es-mailotp-slot.is-on {
  border-color: #e2e8f0;
  opacity: 1;
}
.es-mailotp-dock.is-ok .es-mailotp-slot { border-color: #38bdf8; }
.es-mailotp-dock.is-ok .es-mailotp-slot input { color: #38bdf8; }
.es-mailotp-dock.is-bad .es-mailotp-slot { border-color: #ff4d6a; }
.es-mailotp-dock.is-bad .es-mailotp-slot input,
.es-mailotp-dock.is-bad .es-mailotp-status { color: #ff4d6a; }
.es-mailotp-fill {
  flex: 0 0 auto;
  border: 0;
  background: #38bdf8;
  color: #041018;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.es-mailotp-fill:disabled { opacity: 0.55; cursor: default; }
.es-mailotp-status {
  margin: 4px 0 0;
  min-height: 0;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.3;
}
.es-mailotp-status:empty { display: none; }
.es-mailotp-resend { display: none !important; }
@media (max-width: 760px) {
  .es-mailotp-row { flex-wrap: wrap; }
  .es-mailotp-sub { flex-basis: 100%; white-space: normal; }
  .es-mailotp-slot { width: 32px; height: 38px; }
}
.es-otp-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.es-otp-banner-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.es-otp-banner-text strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.es-otp-banner-text span {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
}
.es-otp-btn-send {
  background: #38bdf8;
  color: #041018;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.18s ease;
}
.es-otp-btn-send:hover {
  background: #0369a1;
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}
.es-otp-btn-send:active {
  transform: scale(0.98);
}

/* ============================================================
   MODALE VERIFICA EMAIL OTP (4 NUMERI)
   ============================================================ */
.es-otp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.es-otp-modal-backdrop.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.es-otp-modal-sheet {
  background: linear-gradient(180deg, #0f172a 0%, #090e17 100%);
  color: #f8fafc;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px !important;
  width: 100%;
  max-width: 460px;
  padding: 2.2rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 28px rgba(13, 148, 136, 0.25);
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.es-otp-modal-backdrop.is-open .es-otp-modal-sheet {
  transform: translateY(0) scale(1);
}
.es-otp-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.15s ease;
}
.es-otp-close-btn:hover {
  color: #ffffff;
}
.es-otp-modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.es-otp-modal-sub {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0 0 1.6rem;
  line-height: 1.4;
}
.es-otp-inputs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
}
.es-otp-digit {
  width: 58px;
  height: 64px;
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px !important;
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  background: #090e17;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.es-otp-digit:focus {
  border-color: #38bdf8;
  background: #0c1524;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.28);
}
.es-otp-digit.is-error {
  border-color: #ef4444 !important;
  background: #1c0f13 !important;
  animation: esOtpShake 0.3s ease;
}
@keyframes esOtpShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.es-otp-btn-verify {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #041018;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 4px !important;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.es-otp-btn-verify:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}
.es-otp-btn-verify:active {
  transform: translateY(0);
}
.es-otp-resend-row {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.es-otp-resend-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 0.3rem;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}
.es-otp-resend-btn:hover {
  color: #7dd3fc;
}

/* La pagina scende dell'altezza della barra (valore calcolato in verifica-account.js). */
body.es-verify-on { padding-top: calc(var(--safe-top, 0px) + var(--es-verify-h, 0px)); }
@media (max-width: 600px) {
  .es-verify-inner { font-size: 0.8rem; padding: 0.55rem 0.85rem; }
  .es-verify-inner span { display: none; }
}
