body.exit-intent-scroll-lock {
  overflow: hidden;
}

.exit-intent-dialog[hidden] {
  display: none;
}

.exit-intent-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 20, 18, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  color: #132d29;
  backdrop-filter: blur(5px);
  animation: exit-intent-fade 180ms ease-out;
}

.exit-intent-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 42px 38px 34px;
  border: 1px solid rgba(201, 146, 46, 0.42);
  border-radius: 24px;
  background: #fbf8f0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
  animation: exit-intent-rise 220ms ease-out;
}

.exit-intent-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #42534f;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.exit-intent-kicker {
  margin: 0 0 10px;
  color: #8d641e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.exit-intent-title {
  margin: 0;
  color: #132d29;
  font-size: clamp(29px, 6vw, 42px);
  line-height: 1.08;
}

.exit-intent-copy {
  max-width: 410px;
  margin: 16px auto 0;
  color: #4a5a56;
  font-size: 16px;
  line-height: 1.65;
}

.exit-intent-prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.exit-intent-old-price {
  color: #7b817f;
  font-size: 24px;
  text-decoration: line-through;
}

.exit-intent-new-price {
  color: #132d29;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.exit-intent-claim {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 12px;
  background: #c9922e;
  box-shadow: 0 10px 24px rgba(104, 72, 17, 0.22);
  color: #102b26;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.exit-intent-note {
  margin: 12px 0 0;
  color: #68736f;
  font-size: 12px;
}

.exit-intent-decline {
  margin-top: 17px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #5d6965;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.exit-intent-dialog :focus-visible {
  outline: 3px solid #132d29;
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .exit-intent-dialog {
    padding: 14px;
  }

  .exit-intent-panel {
    max-height: calc(100vh - 28px);
    padding: 38px 22px 28px;
    border-radius: 20px;
  }

  .exit-intent-copy {
    font-size: 14px;
  }

  .exit-intent-new-price {
    font-size: 51px;
  }
}

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

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

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