/* ---- Exit-intent popup (template approach, _includes/exit-intent-popup.html) ----------------------
   Layout from the Olympus starter partial; colours and type from the Claus' Keepsakes brand layer
   (css/brand.css tokens: --ck--red, --ck--green, --ck--cream, --ck--black, Fraunces headlines, Figtree body).
   The SDK draws the overlay and the close button; this file styles only the dialog it mounts. */

.exit-intent-popup__dialog {
  background: #fff;
  border: 1px solid var(--ck--cream, #e9dec6);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  width: 800px;
  max-width: 100%;
  height: auto;
  font-family: var(--font-primary, "Figtree", system-ui, sans-serif);
  color: var(--ck--black, #1a1814);
}

.exit-intent-popup__image {
  width: 42%;
  min-height: 376px;
  flex-shrink: 0;
  background: #f6f1e6;
}

.exit-intent-popup__image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.exit-intent-popup__content {
  width: 58%;
  min-height: 376px;
  padding: 24px 16px;
}

.exit-intent-popup__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 12px;
  height: 100%;
}

.exit-intent-popup__header h3 {
  font-family: var(--font-headline, "Fraunces", Georgia, serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--ck--red, #a22d2b);
}

.exit-intent-popup__header p {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
}

.exit-intent-popup__header h4 {
  font-family: var(--font-headline, "Fraunces", Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  margin: 10px 0 14px;
}

.exit-intent-popup__offer-label {
  font-size: 20px;
  font-weight: 600;
  width: 100%;
  color: var(--ck--green, #193025);
}

.exit-intent-popup__offer-detail {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  width: 100%;
  margin: 6px 0 0;
}

.exit-intent-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 336px;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 1rem;
  font-family: var(--font-primary, "Figtree", system-ui, sans-serif);
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ck--white, #fff);
  background: var(--ck--red, #a22d2b);
  border: 1px solid #7f2321;
  box-shadow: 0 8px 5px -5px rgba(0, 0, 0, 0.1);
}

.exit-intent-popup__cta:hover { background: #8f2725; }
.exit-intent-popup__cta:focus-visible { outline: 2px solid var(--ck--green, #193025); outline-offset: 3px; }

@media (max-width: 767px) {
  .exit-intent-popup__dialog { width: 100%; }
  .exit-intent-popup__image { display: none; }
  .exit-intent-popup__content { width: 100%; min-height: 0; }
  .exit-intent-popup__header h3 { font-size: 40px; }
  .exit-intent-popup__header h4 { font-size: 24px; }
  .exit-intent-popup__cta { max-width: none; }
}
