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

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

.ds-exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(39 22 14 / 72%);
  backdrop-filter: blur(4px);
}

.ds-exit-intent__dialog {
  position: relative;
  width: min(100%, 31rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid #d8b48c;
  border-radius: 1.75rem;
  background: #fff8ec;
  box-shadow: 0 1.5rem 4rem rgb(74 40 24 / 35%);
  color: #402416;
  padding: 2.25rem 1.5rem 1.5rem;
  text-align: center;
}

.ds-exit-intent__close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #f1dfc6;
  color: #5c321e;
  cursor: pointer;
  font: 700 1.5rem/1 system-ui, sans-serif;
}

.ds-exit-intent__eyebrow {
  margin: 0 0 .5rem;
  color: #a84b16;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ds-exit-intent h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.08;
}

#ds-exit-description {
  margin: 1rem auto 0;
  max-width: 27rem;
  font-size: 1rem;
  line-height: 1.55;
}

.ds-exit-intent__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .75rem;
  margin: 1rem 0 .25rem;
}

.ds-exit-intent__price del { color: #7a6558; font-size: 1.25rem; }
.ds-exit-intent__price strong { color: #b95012; font: 900 3.5rem/1 Fraunces, Georgia, serif; }

.ds-exit-intent__note {
  margin: 0 0 1.25rem;
  color: #6b5648;
  font-size: .8rem;
  font-weight: 700;
}

.ds-exit-intent__cta {
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8892e, #c75c14);
  box-shadow: 0 .7rem 1.4rem rgb(180 79 17 / 25%);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  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 #402416;
  outline-offset: 3px;
}

.ds-exit-intent__decline {
  margin-top: .9rem;
  border: 0;
  background: transparent;
  color: #6b5648;
  cursor: pointer;
  font-size: .85rem;
  text-decoration: underline;
}

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

@media (min-width: 40rem) {
  .ds-exit-intent__dialog { padding: 2.75rem 2.5rem 2rem; }
}

@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(.75rem) scale(.97); } }
}
