/* Exit Intent Popup — luxury fashion */

.bsp-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bsp-exit-popup[hidden] {
  display: none !important;
}

.bsp-exit-popup.is-visible .bsp-exit-popup__overlay {
  opacity: 1;
}

.bsp-exit-popup.is-visible .bsp-exit-popup__dialog {
  opacity: var(--bsp-ep-dialog-opacity-open, 1);
  transform: var(--bsp-ep-dialog-open, translateY(0));
  clip-path: var(--bsp-ep-dialog-clip-open, none);
}

.bsp-exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: var(--bsp-ep-overlay, rgba(26, 26, 26, 0.5));
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bsp-exit-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  background: var(--bsp-ep-gradient-start, #faf9f7);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.14);
  opacity: var(--bsp-ep-dialog-opacity-closed, 0);
  transform: var(--bsp-ep-dialog-closed, translateY(12px));
  clip-path: var(--bsp-ep-dialog-clip-closed, none);
  transition:
    opacity var(--bsp-ep-dialog-duration, 0.32s) var(--bsp-ep-dialog-ease, ease),
    transform var(--bsp-ep-dialog-duration, 0.32s) var(--bsp-ep-dialog-ease, ease),
    clip-path var(--bsp-ep-dialog-duration, 0.32s) var(--bsp-ep-dialog-ease, ease);
}

.bsp-exit-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bsp-ep-title, #1a1a1a);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.bsp-exit-popup__close:hover {
  opacity: 0.55;
}

.bsp-exit-popup__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 400px;
}

.bsp-exit-popup__layout--solo {
  grid-template-columns: 1fr;
}

.bsp-exit-popup__layout--solo .bsp-exit-popup__content {
  border-right: 0;
  max-width: none;
}

.bsp-exit-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 44px 44px;
  border-right: 1px solid rgba(26, 26, 26, 0.08);
}

.bsp-exit-popup__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--bsp-ep-accent, #1a1a1a);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bsp-exit-popup__kicker::before,
.bsp-exit-popup__kicker::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.bsp-exit-popup__headline {
  margin: 0 0 14px;
  color: var(--bsp-ep-title, #1a1a1a);
  font-family: var(--bsp-font-heading);
  font-weight: 400;
  line-height: 1.1;
}

.bsp-exit-popup__headline-main {
  display: block;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: 0.01em;
}

.bsp-exit-popup__headline-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 3.5vw, 30px);
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.bsp-exit-popup__description {
  margin: 0 0 24px;
  color: var(--bsp-ep-text, #6b7280);
  font-size: 14px;
  line-height: 1.65;
  max-width: 340px;
}

.bsp-exit-popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.bsp-exit-popup__form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--bsp-ep-border, rgba(26, 26, 26, 0.15));
  background: #fff;
  color: var(--bsp-ep-title, #1a1a1a);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.bsp-exit-popup__form input[type="email"]:focus {
  outline: none;
  border-color: var(--bsp-ep-accent, #1a1a1a);
}

.bsp-exit-popup__form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: var(--bsp-ep-accent, #1a1a1a);
  color: var(--bsp-ep-btn-text, #faf9f7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.bsp-exit-popup__form button[type="submit"]:hover {
  opacity: 0.85;
}

.bsp-exit-popup__success {
  margin: 0;
  color: var(--bsp-ep-accent, #1a1a1a);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.bsp-exit-popup__dismiss {
  display: inline-block;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bsp-ep-dismiss, #6b7280);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bsp-exit-popup__dismiss:hover {
  color: var(--bsp-ep-title, #1a1a1a);
}

.bsp-exit-popup__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 36px;
  background: var(--bsp-ep-gradient-end, #f5f3f0);
  overflow: hidden;
}

.bsp-exit-popup__badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 26, 26, 0.15);
  background: var(--bsp-ep-badge-bg, rgba(250, 249, 247, 0.95));
  color: var(--bsp-ep-badge-text, #1a1a1a);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.bsp-exit-popup__media-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
}

.bsp-exit-popup__media-inner img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.bsp-exit-popup__media-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 240px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(250, 249, 247, 0.6);
  color: var(--bsp-ep-accent, #1a1a1a);
  font-size: 48px;
  opacity: 0.35;
}

body.bsp-exit-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .bsp-exit-popup__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bsp-exit-popup__content {
    order: 1;
    padding: 24px 22px 28px;
    border-right: 0;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
  }

  .bsp-exit-popup__media {
    order: 0;
    min-height: 200px;
    padding: 36px 24px 20px;
  }

  .bsp-exit-popup__badge {
    top: 16px;
    right: 16px;
    min-width: 72px;
    font-size: 8px;
  }

  .bsp-exit-popup__media-inner {
    max-width: 200px;
  }

  .bsp-exit-popup__description,
  .bsp-exit-popup__form {
    max-width: none;
  }

  .bsp-exit-popup__kicker::before,
  .bsp-exit-popup__kicker::after {
    width: 16px;
  }

  .bsp-exit-popup__dismiss {
    text-align: center;
    width: 100%;
  }
}
