/* Exit-intent modal — loaded via @import and a direct <link> (cache-bust). */

.exit-intent[hidden],
.exit-intent:not(.is-open) {
  display: none !important;
  pointer-events: none;
}

.exit-intent.is-open {
  position: fixed;
  inset: 0;
  z-index: 10040; /* below locale sticker (10070) so language choice stays clickable */
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: auto;
}

body.admin-modal-open {
  overflow: hidden;
}

.exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}

.exit-intent__panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(90vh, 640px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

html.theme-dark .exit-intent__panel {
  background: #1e293b;
  color: #e2e8f0;
}

html.theme-dark .exit-intent__actions .btn--black,
html.theme-dark .exit-intent__actions .btn--ghost,
html.theme-dark .exit-intent__actions .btn--light {
  background: #ffffff !important;
  color: #0b0b0b !important;
  border-color: #ffffff !important;
}
html.theme-dark .exit-intent__actions .btn--ghost {
  background: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
}

.exit-intent__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  border: 0;
  background: rgba(255, 255, 255, .85);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

html.theme-dark .exit-intent__close {
  background: rgba(30, 41, 59, .9);
  color: #e2e8f0;
}

.exit-intent__layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}

.exit-intent__media {
  position: relative;
  flex: 0 0 auto;
  height: 180px;
  background: #1a1d24;
  overflow: hidden;
}

.exit-intent__slides {
  position: absolute;
  inset: 0;
}

.exit-intent__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .65s ease;
  pointer-events: none;
}

.exit-intent__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.exit-intent__slide-link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.exit-intent__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.exit-intent__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .55) 100%);
}

.exit-intent__slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 28px;
}

.exit-intent__slide-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.exit-intent__slide-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.exit-intent__media-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 220, 67, .22), transparent 55%),
    linear-gradient(210deg, #1e293b, #0f172a);
}

.exit-intent__media-fallback[hidden] {
  display: none !important;
}

.exit-intent__media.has-slides .exit-intent__media-fallback {
  display: none !important;
}

.exit-intent__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.exit-intent__dots[hidden] {
  display: none !important;
}

.exit-intent__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.exit-intent__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.exit-intent__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 22px 20px;
  overflow: auto;
}

.exit-intent__step {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.exit-intent__step[hidden] {
  display: none !important;
}

.exit-intent__title {
  margin: 0 0 10px;
  padding-right: 28px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.exit-intent__lead {
  margin: 0 0 12px;
  color: #475569;
  font-size: .95rem;
  line-height: 1.45;
}

html.theme-dark .exit-intent__lead {
  color: #94a3b8;
}

.exit-intent__list {
  margin: 0 0 8px;
  padding: 0 0 0 1.1rem;
  font-size: .92rem;
  line-height: 1.5;
  flex: 1 1 auto;
}

.exit-intent__list li {
  margin: 0 0 6px;
}

.exit-intent__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.exit-intent__actions .btn {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}

.exit-intent__cta {
  text-align: center;
  text-decoration: none;
}

.exit-intent__label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.exit-intent__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 0;
  font-size: .82rem;
  line-height: 1.4;
}

.exit-intent__check input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.exit-intent__msg {
  margin: 10px 0 0;
  font-size: .85rem;
}

.exit-intent__msg.is-error {
  color: #b3261e;
}

.exit-intent__msg.is-ok {
  color: #1f7a44;
}

@media (min-width: 720px) {
  .exit-intent.is-open {
    padding: 24px;
  }

  .exit-intent__layout {
    flex-direction: row;
    min-height: 440px;
    max-height: min(90vh, 640px);
  }

  .exit-intent__media {
    flex: 0 0 44%;
    width: 44%;
    height: auto;
    align-self: stretch;
    min-height: 440px;
  }

  .exit-intent__content {
    flex: 1 1 56%;
    padding: 28px 28px 24px;
  }

  .exit-intent__title {
    font-size: 1.45rem;
  }

  .exit-intent__slide-caption {
    padding: 18px 20px 32px;
  }

  .exit-intent__slide-title {
    font-size: 1.2rem;
  }

  .exit-intent__close {
    background: rgba(255, 255, 255, .92);
  }
}
