#eipm-root {
  position: relative;
  z-index: 999999;
}

.eipm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.eipm-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.eipm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.eipm-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  max-width: 920px;
  width: min(100%, 920px);
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s ease;
}

.eipm-modal.is-visible .eipm-modal__dialog {
  transform: translateY(0) scale(1);
}

.eipm-modal__media {
  min-height: 100%;
  background: linear-gradient(160deg, #dbeafe, #fef3c7);
}

.eipm-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.eipm-modal__content {
  padding: 34px 34px 30px;
  position: relative;
}

.eipm-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #0f172a;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.eipm-modal__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eipm-modal__title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.eipm-modal__subtitle {
  margin: 0 0 14px;
  color: #334155;
  font-size: 18px;
  font-weight: 600;
}

.eipm-modal__description {
  margin: 0 0 22px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.eipm-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28);
}

@media (max-width: 767px) {
  .eipm-modal {
    padding: 16px;
  }

  .eipm-modal__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .eipm-modal__media {
    min-height: 200px;
  }

  .eipm-modal__content {
    padding: 24px 20px 22px;
  }

  .eipm-modal__title {
    font-size: 30px;
  }
}
