/* Общий контейнер модалки */
.exit-intent-modal {
  position: fixed;
  inset: 0;
  display: none;              /* по умолчанию скрыто */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: inherit;
}

/* Оверлей */
.exit-intent-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Контент модалки */
.exit-intent-modal__content {
  position: relative;
  background: #ffffff;
  max-width: 480px;
  width: 90%;
  padding: 24px 24px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Кнопка закрытия */
.exit-intent-modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

/* Текст */
.exit-intent-modal h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.exit-intent-modal p {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Опции */
.exit-intent-modal__options {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.exit-intent-modal__options label {
  font-size: 14px;
  margin: 10px 0 0 0;
}

input[type="radio"] {
    display: inline;
}

/* Текстовое поле */
.exit-intent-modal textarea {
  width: 100%;
  resize: vertical;
  padding: 6px 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Кнопка отправки */
.exit-intent-modal__submit {
  display: inline-block;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  background: #222;
  color: #fff;
}

/* Блок "спасибо" (по умолчанию скрыт) */
.exit-intent-modal__thankyou {
  display: none;
  margin-top: 10px;
}

.exit-intent-modal__promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed #888;
  margin: 8px 8px;
}

.exit-intent-modal__promo-code {
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Класс, когда модалка активна */
.exit-intent-modal--visible {
  display: flex;
}
