/*
 * MaxFrame — NOWPayments crypto checkout (EN site, LTR).
 *
 * Designed to match the Zibal popup exactly. The form has its own dark panel
 * (`#1a1a1a` background, matching `var(--mf-panel)` in store.css) so it's
 * visible regardless of the popup's own background color. If you'd prefer a
 * light panel instead, see the alternate comment block at the bottom of
 * `.mfc-checkout`.
 *
 * Namespace `mfc-` (MaxFrame Crypto) so this never collides with the Zibal
 * form's `.maxframe-*` selectors.
 *
 * Dimensions/spacing mirror the Zibal `store.css` exactly.
 */

.mfc-checkout {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: ltr;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 34px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
}

/* ─── Heading ─── */
.mfc-checkout h3 {
  color: #ffffff;
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}

/* ─── Price line ─── */
.mfc-checkout .mfc-price {
  color: #9a0b1c;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  display: block;
}
.mfc-checkout .mfc-price span {
  font-size: 14px;
  font-weight: 400;
  color: #9CA3AF;
  margin-left: 4px;
}

/* ─── After-coupon price row (hidden until applied) ─── */
.mfc-price-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #333;
}
.mfc-price-after .mfc-old-price {
  color: #9CA3AF;
  text-decoration: line-through;
  font-size: 16px;
}
.mfc-price-after .mfc-new-price {
  color: #e63946;
  font-size: 24px;
  font-weight: 700;
}

/* ─── Labels + inputs ─── */
.mfc-checkout label {
  display: block;
  margin: 12px 0 4px;
  color: #9CA3AF;
  font-size: 13px;
}
.mfc-checkout input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}
.mfc-checkout input:focus {
  outline: none;
  border-color: #9a0b1c;
}

/* ─── Buttons ─── */
.mfc-btn {
  display: inline-block;
  background: #9a0b1c;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.mfc-btn:hover { background: #7d0917; color: #fff; }
.mfc-btn:disabled { background: #555; cursor: not-allowed; opacity: 0.7; }
.mfc-checkout .mfc-btn {
  width: 100%;
  margin-top: 18px;
  font-size: 15px;
}

/* ─── Bulk quantity stepper ─── */
.mfc-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.mfc-qty-btn {
  background: #161616;
  border: 1px solid #333;
  color: #ffffff;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.mfc-qty-btn:hover { background: #333; }
.mfc-qty-value {
  font-size: 20px;
  font-weight: 700;
  color: #9a0b1c;
  min-width: 30px;
  text-align: center;
}
.mfc-qty-unit {
  color: #9CA3AF;
  font-size: 14px;
  margin-left: 4px;
}

/* ─── Live coupon row ─── */
.mfc-coupon-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
}
.mfc-coupon-row input { flex: 1; }
.mfc-coupon-row .mfc-btn {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 14px;
}

.mfc-coupon-msg {
  margin-top: 8px;
  font-size: 13px;
  min-height: 1.4em;
  color: #9CA3AF;
}
.mfc-coupon-msg.ok { color: #5BBA67; }
.mfc-coupon-msg.err { color: #e63946; }

/* ─── Back to homepage link ─── */
.mfc-home-link {
  display: inline-block;
  margin-top: 20px;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 14px;
}
.mfc-home-link:hover { color: #ffffff; }
