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

.ds-exit-intent {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ds-exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(21 36 28 / 78%);
  backdrop-filter: blur(4px);
}

.ds-exit-intent__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid #c9a45c;
  border-radius: 24px;
  background: #fbf6ee;
  box-shadow: 0 24px 64px rgb(21 36 28 / 35%);
  color: #2f4a3a;
  padding: 38px 24px 24px;
  text-align: center;
}

.ds-exit-intent__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3e9d6;
  color: #2f4a3a;
  cursor: pointer;
  font: 700 24px/1 system-ui, sans-serif;
}

.ds-exit-intent__eyebrow {
  margin: 0 0 8px;
  color: #9e2b25;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ds-exit-intent h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 900;
  line-height: 1.08;
}

#ds-exit-description {
  margin: 16px auto 0;
  max-width: 430px;
  font-size: 17px;
  line-height: 1.55;
}

.ds-exit-intent__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 4px;
}

.ds-exit-intent__price del { color: #6b5b50; font-size: 20px; }
.ds-exit-intent__price strong { color: #9e2b25; font: 900 56px/1 "Playfair Display", Georgia, serif; }

.ds-exit-intent__note {
  margin: 0 0 20px;
  color: #4a3d35;
  font-size: 13px;
  font-weight: 700;
}

.ds-exit-intent__cta {
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, #367f55, #2f4a3a);
  box-shadow: 0 11px 22px rgb(47 74 58 / 30%);
  color: #fff;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.ds-exit-intent__cta:focus-visible,
.ds-exit-intent button:focus-visible {
  outline: 3px solid #2f4a3a;
  outline-offset: 3px;
}

.ds-exit-intent__decline {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #4a3d35;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

body.ds-exit-intent-open { overflow: hidden; }

@media (min-width: 40rem) {
  .ds-exit-intent__dialog { padding: 44px 40px 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ds-exit-intent.is-open .ds-exit-intent__backdrop { animation: ds-fade-in .18s ease-out; }
  .ds-exit-intent.is-open .ds-exit-intent__dialog { animation: ds-pop-in .22s ease-out; }
  @keyframes ds-fade-in { from { opacity: 0; } }
  @keyframes ds-pop-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
}


