.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(27, 44, 55, 0.78);
  backdrop-filter: blur(4px);
  animation: exit-fade-in 180ms ease-out;
}

.exit-popup {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid #e7dcd3;
  border-radius: 20px;
  padding: 38px 30px 26px;
  background: #fff;
  color: #243b4a;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 29, 38, 0.34);
  animation: exit-rise-in 220ms ease-out;
}

.exit-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #52636e;
  font-size: 30px;
  line-height: 1;
}

.exit-close:hover {
  background: #f5e6dc;
  color: #243b4a;
}

.exit-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 6px 13px;
  background: #dcefeb;
  color: #243b4a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.exit-title {
  margin: 0;
  color: #243b4a;
  font-family: Poppins, sans-serif;
  font-size: clamp(27px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.12;
}

.exit-description {
  margin: 14px auto 0;
  max-width: 330px;
  color: #52636e;
  font-size: 16px;
  line-height: 1.55;
}

.exit-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 12px;
  margin: 22px 0 18px;
}

.exit-old {
  color: #77858d;
  font-size: 20px;
  text-decoration: line-through;
}

.exit-new {
  color: #e8846b;
  font-size: 38px;
  line-height: 1;
}

.exit-coupon {
  flex-basis: 100%;
  color: #52636e;
  font-size: 12px;
}

.exit-btn {
  display: block;
  width: 100%;
  border-radius: 12px;
  padding: 16px 18px;
  background: #e8846b;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(232, 132, 107, 0.28);
}

.exit-btn:hover {
  background: #d9755e;
}

.exit-skip {
  margin-top: 14px;
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: #52636e;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exit-close:focus-visible,
.exit-btn:focus-visible,
.exit-skip:focus-visible {
  outline: 3px solid #5fb3a3;
  outline-offset: 3px;
}

@keyframes exit-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes exit-rise-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 380px), (max-height: 620px) {
  .exit-overlay { padding: 10px; }
  .exit-popup { max-height: calc(100svh - 20px); padding: 34px 20px 20px; }
  .exit-description { margin-top: 10px; }
  .exit-price { margin: 16px 0 14px; }
}

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