.flash-popup-layer[hidden],
.flash-popup[hidden]{display:none!important}

.flash-popup-layer{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:24px;
  isolation:isolate;
}

.flash-popup-backdrop{
  position:absolute;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(14,22,42,.58);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  cursor:default;
}

.flash-popup{
  --flash-accent:#635bff;
  --flash-accent-end:#8b5cf6;
  --flash-soft:#efefff;
  --flash-ink:#4239c9;
  --flash-border:#dad7ff;
  --flash-shadow:rgba(99,91,255,.22);
  position:relative;
  width:min(520px,100%);
  overflow:hidden;
  padding:34px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:28px;
  background:
    radial-gradient(circle at 100% 0,rgba(99,91,255,.12),transparent 36%),
    #fff;
  box-shadow:0 28px 80px rgba(13,24,48,.28),0 6px 22px rgba(13,24,48,.1);
  color:#172033;
  opacity:0;
  transform:translateY(18px) scale(.97);
  transition:opacity .2s ease,transform .24s cubic-bezier(.2,.8,.2,1);
}

.flash-popup.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.flash-popup-success{--flash-accent:#0f9f6e;--flash-accent-end:#28b981;--flash-soft:#e8fbf3;--flash-ink:#087753;--flash-border:#bcebd9;--flash-shadow:rgba(15,159,110,.22)}
.flash-popup-warning{--flash-accent:#d89016;--flash-accent-end:#f3b83f;--flash-soft:#fff5d9;--flash-ink:#8a5906;--flash-border:#f0dba6;--flash-shadow:rgba(216,144,22,.22)}
.flash-popup-error{--flash-accent:#d64545;--flash-accent-end:#ed6c63;--flash-soft:#fff0f0;--flash-ink:#a22f2f;--flash-border:#f3c2c2;--flash-shadow:rgba(214,69,69,.22)}
.flash-popup-info{--flash-accent:#3976d8;--flash-accent-end:#5a9af0;--flash-soft:#edf5ff;--flash-ink:#245aa9;--flash-border:#c8dcf7;--flash-shadow:rgba(57,118,216,.22)}

.flash-popup-accent{
  position:absolute;
  inset:0 0 auto;
  height:6px;
  background:linear-gradient(90deg,var(--flash-accent),var(--flash-accent-end));
}

.flash-popup-x{
  position:absolute;
  top:18px;
  right:18px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid #e5e9f2;
  border-radius:12px;
  background:rgba(255,255,255,.88);
  color:#667087;
  cursor:pointer;
  transition:.18s ease;
}

.flash-popup-x:hover{
  color:#172033;
  border-color:#cfd5e3;
  background:#fff;
  transform:rotate(3deg) scale(1.03);
}

.flash-popup-x .ui-icon{width:18px;height:18px}

.flash-popup-icon{
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  margin-bottom:22px;
  border:1px solid var(--flash-border);
  border-radius:19px;
  background:var(--flash-soft);
  color:var(--flash-ink);
  box-shadow:0 12px 26px var(--flash-shadow);
}

.flash-popup-icon .ui-icon{width:30px;height:30px;stroke-width:2.15}

.flash-popup-content{padding-right:18px}
.flash-popup-eyebrow{
  display:block;
  margin-bottom:7px;
  color:var(--flash-ink);
  font-size:12px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.flash-popup h2{
  margin:0;
  color:#172033;
  font-size:clamp(25px,4vw,32px);
  line-height:1.16;
  letter-spacing:-.035em;
}

.flash-popup p{
  margin:14px 0 0;
  color:#647087;
  font-size:16px;
  line-height:1.7;
}

.flash-popup-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  margin-top:28px;
}

.flash-popup-actions .btn{
  min-height:45px;
  padding:11px 18px;
  border-radius:13px;
}

.flash-popup-secondary{
  color:#45506a;
  border:1px solid #dfe4ed;
  background:#fff;
}

.flash-popup-secondary:hover{
  color:#172033;
  border-color:#c9d0dd;
  background:#f8f9fc;
  text-decoration:none;
}

.flash-popup-primary{
  background:linear-gradient(135deg,var(--flash-accent),var(--flash-accent-end));
  box-shadow:0 10px 24px var(--flash-shadow);
}

.flash-popup-open{overflow:hidden}

.flash-popup-noscript{
  position:relative;
  z-index:2;
  width:min(620px,100%);
}

@media(max-width:600px){
  .flash-popup-layer{
    align-items:end;
    padding:12px;
  }
  .flash-popup{
    width:100%;
    padding:30px 22px 22px;
    border-radius:24px;
    transform:translateY(28px) scale(.985);
  }
  .flash-popup-icon{
    width:56px;
    height:56px;
    margin-bottom:18px;
    border-radius:17px;
  }
  .flash-popup-content{padding-right:0}
  .flash-popup h2{font-size:25px}
  .flash-popup p{font-size:15px}
  .flash-popup-actions{
    display:grid;
    grid-template-columns:1fr;
    margin-top:24px;
  }
  .flash-popup-actions .btn{width:100%}
  .flash-popup-primary{order:-1}
}

@media(prefers-reduced-motion:reduce){
  .flash-popup,.flash-popup-x{transition:none!important}
}
