/* Exit Intent Popup — OpenCart 3.x */

.eip-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
}

.eip-overlay.eip-active {
  display: flex;
  opacity: 1;
}

.eip-popup {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
}

.eip-overlay.eip-active .eip-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.eip-body {
  padding: 48px 40px 40px;
}

.eip-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.eip-close:hover {
  color: #111827;
  background: #f3f4f6;
}

.eip-title {
  margin: 0 0 12px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #111827 !important;
  font-family: inherit !important;
  border: none !important;
  padding: 0 !important;
}

.eip-desc {
  margin: 0 0 24px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #6b7280 !important;
  font-family: inherit !important;
}

.eip-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
}

.eip-input {
  width: 100% !important;
  min-height: 56px !important;
  padding: 18px 20px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #111827 !important;
  background: #f9fafb !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  font-family: inherit !important;
  -webkit-appearance: none;
  appearance: none;
  display: block !important;
  box-shadow: none !important;
}

.eip-input:hover {
  border-color: #9ca3af !important;
  background: #fafafa !important;
}

.eip-input:focus {
  border-color: #6b7280 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.12) !important;
  outline: none !important;
}

.eip-input::placeholder {
  color: #b0b7c3;
  font-size: 15px;
}

.eip-error {
  margin: 0 !important;
  font-size: 13px !important;
  color: #ef4444 !important;
  font-family: inherit !important;
}

/* ★ Кнопка — фірмовий помаранчевий колір сайту */
.eip-submit {
  width: 100% !important;
  margin-top: 6px !important;
  padding: 16px 24px !important;
  background: #0872C4 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0.01em !important;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s !important;
  font-family: inherit !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

.eip-submit:hover:not(:disabled) {
  background: #e07f0a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.38) !important;
}

.eip-submit:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

/* Thank you */
.eip-thanks {
  text-align: center;
  padding: 16px 0 8px;
}

.eip-check-svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: block;
  stroke: #F7941D;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eip-check-svg circle {
  animation: eip-draw-circle 0.4s ease forwards;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.eip-check-svg path {
  animation: eip-draw-check 0.35s 0.35s ease forwards;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

@keyframes eip-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes eip-draw-check  { to { stroke-dashoffset: 0; } }

.eip-thanks p {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 !important;
  font-family: inherit !important;
}

/* Responsive */
@media (max-width: 520px) {
  .eip-body { padding: 40px 24px 32px; }
  .eip-title { font-size: 19px !important; }
}
