.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(31 19 40 / 68%);
}

.exit-popup {
  position: relative;
  width: min(100%, 420px);
  padding: 30px 26px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
  color: var(--foreground);
  text-align: center;
  box-shadow: 0 24px 60px rgb(31 19 40 / 35%);
}

.exit-gift {
  margin-bottom: 4px;
  font-size: 46px;
  line-height: 1;
}

.exit-popup h3 {
  margin: 0 20px 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.exit-popup p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

.exit-price {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid color-mix(in oklab, var(--success) 24%, transparent);
  border-radius: 14px;
  background: var(--success-soft);
}

.exit-old {
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.exit-new {
  margin-left: 8px;
  color: var(--success);
  font-size: 28px;
  font-weight: 900;
}

.exit-price small {
  display: inline-block;
  margin-top: 4px;
  color: var(--foreground);
  font-weight: 600;
}

.exit-btn {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--offer);
  color: var(--offer-foreground);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-premium);
  cursor: pointer;
}

.exit-btn:hover {
  filter: brightness(0.96);
}

.exit-close {
  position: absolute;
  top: 10px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.exit-skip {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.exit-btn:focus-visible,
.exit-close:focus-visible,
.exit-skip:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

body.exit-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .exit-overlay {
    padding: 14px;
  }

  .exit-popup {
    padding: 28px 20px 22px;
  }

  .exit-popup h3 {
    font-size: 22px;
  }
}
