#modernExitIntentPopupOverlay,
#modernExitIntentPopup,
#modernExitIntentPopup * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

#modernExitIntentPopupOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#modernExitIntentPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  background-color: #ffffff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  display: none;
  width: 90%;
  max-width: 520px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  color: #333;
}

#modernExitIntentPopupOverlay.visible,
#modernExitIntentPopup.visible {
  display: block;
  opacity: 1;
}

#modernExitIntentPopup.visible {
  transform: translate(-50%, -50%) scale(1);
}

#modernExitIntentPopupClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
  outline: none;
}

#modernExitIntentPopupClose:hover {
  color: #0053FF;
}

#modernExitIntentPopup h2 {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2em;
  font-weight: 700;
  color: #222;
  text-align: center;
}

#modernExitIntentPopup h2::after {
  z-index: -1;
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 20px;
  background: #FFF126;
  margin-top: 5px;
}

.main-question {
  font-size: 1.8em;
  color: #222;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 400;
}

.main-question b {
  font-weight: 700;
}

.modern-btn-group {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 10px;
}

.modern-btn {
  font-size: 1.2em;
  padding: 8px 28px;
  border-radius: 8px;
  border: 2px solid #007AFF;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.modern-btn.primary {
  background: #007AFF;
  color: #fff;
  border: 2px solid #007AFF;
}

.modern-btn.primary:disabled {
  background: #cccccc;
  color: #666666;
  border: 2px solid #cccccc;
  cursor: not-allowed;
}

.modern-btn.primary:hover {
  background: #0053FF;
  color: #fff;
  border: 2px solid #0053FF;
}

.modern-btn.secondary {
  background: #fff;
  color: #007AFF;
  border: 2px solid #007AFF;
}

.modern-btn.secondary:hover {
  background: #007AFF;
  color: #fff;
  border: 2px solid #007AFF;
}

#modernExitAdFailedMessage {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #F1C40F;
  background-color: #FDF5E6;
  border-radius: 6px;
}

#modernExitAdFailedMessage p {
  margin-bottom: 0;
}

#modernExitDiscountCodeArea {
  margin-top: 0;
  background-color: #f8f9fa;
  border-radius: 8px;
}

#modernExitDiscountCodeArea p {
  margin-bottom: 40px;
  color: #333;
  font-weight: 500;
}

.discount-main {
  font-size: 1.8em;
  color: #222;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 400;
}

.discount-main b {
  font-weight: 700;
  font-size: 1.1em;
}

#modernBuyNowButton {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 42px;
}

@media (max-width: 768px) {
  #modernExitIntentPopup {
    padding: 40px 20px 25px;
  }

  .main-question {
    font-size: 1.4em;
  }

  .modern-btn {
    font-size: 1em;
    padding: 6px 12px;
  }

}