/*
 * The admin-editable visit popup (see offer-popup.js, Admin > Pricing).
 *
 * Its own stylesheet, same reasoning as cookie-consent.css: loaded once,
 * costs nothing on a page where offer-popup.js never builds the element
 * (the popup is off, or the visitor already saw it this session).
 *
 * Unlike the cookie notice, this is a real modal with a backdrop — dismissing
 * a promo is a free choice with no compliance weight, so blocking the page
 * behind it until they notice it exists is fine here.
 */
.mfc-offer {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  font-family: inherit;
}

.mfc-offer.is-visible {
  opacity: 1;
  visibility: visible;
}

.mfc-offer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 36, 0.55);
}

.mfc-offer-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10, 18, 36, 0.3);
  padding: 32px 28px 28px;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.mfc-offer.is-visible .mfc-offer-card {
  transform: translateY(0) scale(1);
}

.mfc-offer-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #8793a8;
  cursor: pointer;
  padding: 6px;
}

.mfc-offer-close:hover {
  color: #172b4d;
}

.mfc-offer-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #172b4d;
  line-height: 1.3;
}

.mfc-offer-card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #42526e;
}

.mfc-offer-btn {
  display: inline-block;
  background: var(--primary, #2f6fed);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
}

.mfc-offer-btn:hover {
  opacity: 0.92;
}

@media (max-width: 480px) {
  .mfc-offer-card {
    padding: 28px 20px 22px;
  }
}
