.mfox-cart-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}

.mfox-cart-popup-overlay.is-visible {
  display: flex;
}

.mfox-cart-popup {
  position: relative;
  width: 100%;
  max-width: 470px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 28px 24px 24px;
  text-align: center;
  font-family: inherit;
  animation: mfoxPopupIn 0.22s ease-out;
}

@keyframes mfoxPopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mfox-cart-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mfox-cart-popup-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #009901;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}

.mfox-cart-popup-product {
  display: none;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #ececec;
  border-radius: 14px;
  text-align: left;
}

.mfox-cart-popup-product.has-product {
  display: flex;
}

.mfox-cart-popup-product-image-wrap {
  width: 82px;
  min-width: 82px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfox-cart-popup-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mfox-cart-popup-product-info {
  min-width: 0;
}

.mfox-cart-popup-product-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mfox-cart-popup-product-name {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2a16;
  word-break: break-word;
}

.mfox-cart-popup-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2a16;
}

.mfox-cart-popup-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}

.mfox-cart-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mfox-cart-popup-primary,
.mfox-cart-popup-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mfox-cart-popup-primary {
  background: #009901;
  color: #fff !important;
}

.mfox-cart-popup-primary:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

.mfox-cart-popup-secondary {
  border: 1px solid #009901;
  background: #fff;
  color: #009901 !important;
}

.mfox-cart-popup-secondary:hover {
  background: #f3fff3;
  text-decoration: none;
}

body.mfox-cart-popup-open {
  overflow: hidden;
}

@media (min-width: 520px) {
  .mfox-cart-popup-actions {
    flex-direction: row;
  }

  .mfox-cart-popup-primary,
  .mfox-cart-popup-secondary {
    flex: 1;
  }
}
