
.sv-exit-popup {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.sv-exit-popup.is-open { opacity: 1; pointer-events: auto; }
.sv-exit-popup[hidden] { display: none; }
.sv-exit-popup-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 21, 21, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sv-exit-popup-card {
  position: relative;
  width: 100%; max-width: 820px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(45, 36, 33, .35), 0 0 0 1px rgba(255,255,255,.7);
  transform: translateY(20px) scale(.96);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.sv-exit-popup.is-open .sv-exit-popup-card { transform: translateY(0) scale(1); }
.sv-exit-popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9);
  border: none; border-radius: 12px;
  color: #1a1515;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s, color .2s, transform .2s;
}
.sv-exit-popup-close:hover { background: #fff; color: #e11d48; transform: scale(1.06); }

.sv-exit-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.sv-exit-popup-image {
  position: relative;
  background: linear-gradient(180deg, #fbe7ee 0%, #fcd5e0 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.sv-exit-popup-image img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover; object-position: center;
  display: block;
}
.sv-exit-popup-caption {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .78rem;
  line-height: 1.35;
  color: #5c4f51;
  text-align: center;
  border-top: 1px solid rgba(225, 29, 72, .12);
}
.sv-exit-popup-caption svg { flex-shrink: 0; }
.sv-exit-popup-caption strong { color: #1a1515; font-weight: 600; }
.sv-exit-popup-content {
  padding: 44px 38px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.sv-exit-popup-tiny {
  display: block;
  font-family: var(--ed-sans, 'Inter', sans-serif);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: #e11d48;
  margin-bottom: 14px;
  text-align: center;
}
.sv-exit-popup-title {
  font-family: var(--ed-serif, 'Fraunces', serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #1a1515;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
.sv-exit-popup-title em {
  display: block;
  font-family: 'Parisienne', cursive;
  font-style: normal;
  font-weight: 400;
  color: #e11d48;
  font-size: 1.4em;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}
.sv-exit-popup-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  margin: 16px auto 14px;
  max-width: 180px;
}
.sv-exit-popup-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(225, 29, 72, .35) 50%, transparent 100%);
}
.sv-exit-popup-sub {
  font-size: 1rem; line-height: 1.5;
  color: #5c4f51;
  margin: 0 0 22px;
  text-align: center;
}
.sv-exit-popup-form { display: flex; flex-direction: column; gap: 10px; }
.sv-exit-popup-form input {
  width: 100%;
  padding: 13px 16px;
  font: inherit; font-size: .95rem;
  background: #fafafa;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  color: #1a1515;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.sv-exit-popup-form input::placeholder { color: #a8a29e; }
.sv-exit-popup-form input:focus {
  outline: none;
  border-color: #e11d48;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}
.sv-exit-popup-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 22px;
  font: inherit; font-size: .95rem; font-weight: 600;
  background: #e11d48;
  color: #fff;
  border: none; border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(225, 29, 72, .55);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.sv-exit-popup-btn:hover { background: #be123c; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(225, 29, 72, .65); }
.sv-exit-popup-btn:active { transform: translateY(0); }
.sv-exit-popup-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.sv-exit-popup-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 14px;
  font-size: .72rem; color: #8a7a7c;
}
.sv-exit-popup-trust span:not(:nth-child(even)) { color: #5c4f51; }

.sv-exit-popup-success-view { text-align: center; padding: 12px 0; }
.sv-exit-popup-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(225, 29, 72, .08);
  color: #e11d48;
  border-radius: 50%;
  animation: svExitSuccessPop .55s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes svExitSuccessPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.sv-exit-popup-success-view h4 {
  font-family: var(--ed-serif, 'Fraunces', serif);
  font-size: 1.5rem; font-weight: 500;
  margin: 0 0 8px; color: #1a1515;
}
.sv-exit-popup-success-view p {
  font-size: .92rem; color: #5c4f51;
  line-height: 1.55; max-width: 30ch;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .sv-exit-popup-card { max-width: 440px; border-radius: 20px; }
  .sv-exit-popup-grid { grid-template-columns: 1fr; min-height: 0; }
  .sv-exit-popup-image { height: 280px; }
  .sv-exit-popup-image img { object-position: center top; }
  .sv-exit-popup-content { padding: 28px 24px 24px; }
  .sv-exit-popup-tiny { font-size: .7rem; letter-spacing: .26em; }
  .sv-exit-popup-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .sv-exit-popup-sub { font-size: .95rem; margin-bottom: 18px; }
  .sv-exit-popup-trust { gap: 6px; font-size: .68rem; }
  .sv-exit-popup-success-view { padding: 24px; }
}
