/* UP1807 Newsletter Desktop Popup
   Scope: move public newsletter subscription out of the footer into a guest-only desktop popup. */

.fij-newsletter-popup,
.fij-newsletter-popup *{
  box-sizing:border-box;
}

.fij-newsletter-popup[hidden]{
  display:none!important;
}

.fij-newsletter-popup{
  position:fixed;
  right:30px;
  bottom:30px;
  z-index:80;
  width:min(420px,calc(100vw - 60px));
  opacity:0;
  transform:translate3d(0,18px,0);
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}

.fij-newsletter-popup.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
  pointer-events:auto;
}

.fij-newsletter-popup-card{
  position:relative;
  display:grid;
  gap:12px;
  padding:22px;
  color:#ecfeff;
  background:linear-gradient(145deg,#101322 0%,#12172a 56%,#082f2d 100%);
  border:1px solid rgba(148,252,226,.22);
  box-shadow:14px 14px 0 rgba(36,185,145,.16),0 18px 55px rgba(2,6,23,.28);
  overflow:hidden;
}

.fij-newsletter-popup-card::before{
  content:"";
  position:absolute;
  left:22px;
  top:0;
  width:72px;
  height:4px;
  background:linear-gradient(90deg,#ff6a3d,#24b991,#6655d8);
}

.fij-newsletter-popup-close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:0;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.fij-newsletter-popup-close:hover,
.fij-newsletter-popup-close:focus-visible{
  background:rgba(255,255,255,.13);
  outline:2px solid #62e6c2;
  outline-offset:2px;
}

.fij-newsletter-popup-kicker{
  margin:0;
  padding-right:44px;
  color:#62e6c2;
  font-size:11px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.fij-newsletter-popup h2{
  margin:0;
  padding-right:42px;
  color:#fff;
  font-size:24px;
  line-height:1.04;
  font-weight:830;
  letter-spacing:-.045em;
}

.fij-newsletter-popup p{
  margin:0;
}

.fij-newsletter-popup #fij-newsletter-popup-copy{
  color:rgba(239,246,255,.78);
  font-size:14px;
  line-height:1.55;
  font-weight:540;
}

.fij-newsletter-popup form{
  display:grid;
  gap:10px;
  margin:3px 0 0;
}

.fij-newsletter-popup-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:stretch;
}

.fij-newsletter-popup-email-label{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.fij-newsletter-popup input[type=email]{
  width:100%;
  min-width:0;
  min-height:44px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:0;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  font-size:14px;
  line-height:1.2;
  box-shadow:none;
}

.fij-newsletter-popup input[type=email]::placeholder{
  color:rgba(239,246,255,.62);
}

.fij-newsletter-popup input[type=email]:focus,
.fij-newsletter-popup-consent input:focus-visible,
.fij-newsletter-popup button:focus-visible{
  outline:2px solid #62e6c2;
  outline-offset:2px;
}

.fij-newsletter-popup button[type=submit]{
  min-height:44px;
  padding:11px 16px;
  border:1px solid #24b991;
  border-radius:0;
  background:#24b991;
  color:#071013;
  font-size:13px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.015em;
  cursor:pointer;
  box-shadow:6px 6px 0 rgba(223,245,239,.14);
}

.fij-newsletter-popup button[type=submit]:hover,
.fij-newsletter-popup button[type=submit]:focus-visible{
  background:#62e6c2;
  border-color:#62e6c2;
}

.fij-newsletter-popup-consent{
  display:grid;
  grid-template-columns:16px minmax(0,1fr);
  gap:8px;
  align-items:start;
  color:rgba(239,246,255,.74);
  font-size:11.5px;
  line-height:1.45;
  font-weight:560;
}

.fij-newsletter-popup-consent input[type=checkbox]{
  width:14px;
  height:14px;
  min-width:14px;
  margin:2px 0 0;
  accent-color:#24b991;
}

.fij-newsletter-popup-note{
  color:rgba(203,213,225,.7);
  font-size:11px;
  line-height:1.4;
}

@media(max-width:1023px), (hover:none), (pointer:coarse){
  .fij-newsletter-popup{
    display:none!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .fij-newsletter-popup{
    transition:none;
    transform:none;
  }
}
