.aftura-exit-intent-open { overflow: hidden; }

.exit-intent-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(5, 16, 31, 0.72);
  overscroll-behavior: contain;
  animation: aftura-exit-backdrop-in 220ms ease both;
}

.exit-intent-popup {
  position: relative;
  width: min(100%, 960px);
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(150px, .22fr) minmax(0, .78fr);
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.16);
  border-top: 3px solid #c7a35a;
  border-radius: 10px;
  color: #102033;
  background: #fffdf7;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  animation: aftura-exit-popup-in 240ms cubic-bezier(.2, .8, .2, 1) both;
}

.exit-intent-brand-panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #17355e 0%, #0b1d3a 62%, #081a34 100%);
}

.exit-intent-linework {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.exit-intent-linework line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.exit-intent-brand-panel img {
  position: relative;
  z-index: 1;
  width: min(126px, 51%);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.20));
}

.exit-intent-content {
  padding: 70px 80px 56px;
}

.exit-intent-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #667386;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.exit-intent-close:hover { color: #0b1d3a; background: rgba(11, 29, 58, 0.06); }
.exit-intent-close svg { width: 25px; height: 25px; }

.exit-intent-kicker {
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a77d2b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.exit-intent-kicker::after {
  content: "";
  width: 54px;
  height: 2px;
  background: #c7a35a;
}

.exit-intent-popup h2 {
  max-width: 590px;
  margin: 0;
  color: #0b1d3a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.3vw, 60px);
  line-height: .99;
}

.exit-intent-copy {
  max-width: 590px;
  margin: 24px 0 28px;
  color: #59697e;
  font-size: 18px;
  line-height: 1.53;
}

.exit-intent-field { display: block; }
.exit-intent-field > span {
  display: block;
  margin-bottom: 9px;
  color: #102033;
  font-size: 14px;
  font-weight: 800;
}

.exit-intent-field > div { position: relative; }
.exit-intent-field svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  width: 25px;
  height: 25px;
  color: #8090a3;
  transform: translateY(-50%);
}

.exit-intent-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 54px;
  border: 1px solid rgba(16, 32, 51, 0.17);
  border-radius: 6px;
  color: #102033;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(16, 32, 51, 0.03);
  font: inherit;
}

.exit-intent-popup input:focus-visible,
.exit-intent-popup button:focus-visible {
  outline: 3px solid rgba(44, 100, 136, 0.35);
  outline-offset: 3px;
}

.exit-intent-actions { margin-top: 18px; }

.exit-intent-submit {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #0b1d3a;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(105deg, #0b1d3a, #132e57);
  box-shadow: 0 12px 28px rgba(11, 29, 58, 0.20);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.exit-intent-submit svg { width: 24px; height: 24px; color: #d7b865; }
.exit-intent-submit:hover { background: #0b1d3a; }

.exit-intent-dismiss {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  color: #6f7c8e;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.exit-intent-dismiss::before,
.exit-intent-dismiss::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(199, 163, 90, 0.55);
}

.exit-intent-dismiss:hover { color: #102033; }

.exit-intent-complete { align-self: center; text-align: center; }
.exit-intent-complete > span { color: #a77d2b; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.exit-intent-complete h2 { margin-top: 10px; font-size: clamp(34px, 4vw, 48px); }
.exit-intent-complete p { margin: 14px 0 0; color: #59697e; }
.exit-intent-complete .exit-intent-dismiss { margin-top: 22px; justify-content: center; }

@keyframes aftura-exit-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes aftura-exit-popup-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 720px) {
  .exit-intent-backdrop {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }

  .exit-intent-popup {
    width: min(100%, 430px);
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 68px minmax(0, 1fr);
    overflow-y: auto;
    border-radius: 14px;
  }

  .exit-intent-brand-panel { min-height: 68px; }
  .exit-intent-linework { display: none; }
  .exit-intent-brand-panel img { width: 48px; }
  .exit-intent-content { padding: 21px 22px 16px; }
  .exit-intent-close { top: 9px; right: 10px; width: 34px; height: 34px; color: #fff; }
  .exit-intent-close svg { width: 20px; height: 20px; }
  .exit-intent-close:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
  .exit-intent-kicker { justify-content: center; margin-bottom: 10px; gap: 9px; font-size: 10px; }
  .exit-intent-kicker::before { content: ""; width: 30px; height: 2px; background: #c7a35a; }
  .exit-intent-kicker::after { width: 30px; }
  .exit-intent-popup h2 { max-width: 320px; margin-inline: auto; font-size: clamp(28px, 7.5vw, 32px); line-height: 1.06; text-align: center; }
  .exit-intent-copy { margin: 11px auto 16px; max-width: 350px; font-size: 14px; line-height: 1.46; text-align: center; }
  .exit-intent-field > span { margin-bottom: 6px; font-size: 12px; }
  .exit-intent-field input { min-height: 48px; }
  .exit-intent-submit { min-height: 48px; font-size: 15px; }
  .exit-intent-dismiss { min-height: 38px; margin-top: 9px; justify-content: center; }
}

@media (max-width: 390px) {
  .exit-intent-backdrop { padding: 10px; }
  .exit-intent-content { padding: 19px 20px 14px; }
  .exit-intent-popup h2 { font-size: 29px; }
  .exit-intent-copy { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .exit-intent-backdrop,
  .exit-intent-popup { animation: none; }
}
