/* تب «پرداخت‌ها» در پروفایل کاربر */
.cm-pay-orders { display: grid; gap: 14px; }
.cm-pay-order { border: 1px solid #e3e6ea; border-radius: 16px; padding: 16px; background: #fff; }
.cm-pay-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.cm-pay-order__title { display: block; font-size: 16px; margin-bottom: 4px; }
.cm-pay-order__meta { font-size: 13px; color: #6b7280; }
.cm-pay-order__badge { padding: 4px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 700; background: #eef0f3; color: #4b5563; white-space: nowrap; }
.cm-pay-order--paid .cm-pay-order__badge { background: #e3f6ea; color: #1f7a3a; }
.cm-pay-order--awaiting-verification .cm-pay-order__badge { background: #fff1de; color: #b5651d; }
.cm-pay-order--failed .cm-pay-order__badge, .cm-pay-order--cancelled .cm-pay-order__badge { background: #fde8e6; color: #b3261e; }
.cm-pay-order__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cm-pay-order__note, .cm-pay-order__rc { font-size: 13px; color: #6b7280; }
.cm-pay-order__box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d6dae0; }
.cm-pay-order__box .cm-card-help, .cm-modal .cm-card-help { font-size: 13.5px; line-height: 1.9; color: #4b5563; margin: 0 0 4px; }
.cm-pay-order-form label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.cm-pay-order-form input[type="file"] { width: 100%; }
.cm-pay-order__msg { font-size: 13.5px; margin: 8px 0; }
.cm-pay-order__msg.is-ok { color: #1f7a3a; }
.cm-pay-order__msg.is-error { color: #b3261e; }
.cm-modal .cm-pay-later { margin-top: 8px; width: 100%; }

/* فاصله‌ی دکمه‌ی «ارسال رسید» از انتخاب فایل */
.cm-pay-order-form { margin-top: 18px; }
.cm-pay-order-form p { margin: 0 0 16px; }
.cm-pay-order-form input[type="file"] { display: block; margin-top: 4px; }
.cm-pay-order-form .cm-dash-btn[type="submit"] { display: inline-flex; margin-top: 10px; min-width: 160px; }
.cm-pay-order[style*="--cm-green"] .cm-dash-btn:not(.cm-dash-btn-light) { background: var(--cm-green); }
.cm-pay-order__msg { margin: 0 0 14px; }

/* ===== صفحه‌ی کارت‌به‌کارت: تمام‌صفحه، بدون اسکرول؛ دکمه‌ی بستن بالا می‌ماند ===== */
.cm-modal-overlay.cm-modal-overlay--full { background: #fff; align-items: stretch; justify-content: stretch; }
.cm-modal.cm-modal--full {
	width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0;
	box-sizing: border-box; padding: 52px 16px 14px; overflow-y: auto;
	display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.cm-modal--full .cm-modal-step[data-step="card-to-card"] { width: 100%; max-width: 440px; }
.cm-modal--full .cm-modal-close { position: fixed; top: 8px; left: 12px; z-index: 5; }
.cm-modal--full h3 { margin: 0 0 4px; font-size: 1.15rem; text-align: center; }
.cm-modal--full .cm-card { margin: 8px 0; padding: 14px; gap: 8px; }
.cm-modal--full .cm-card__amt { padding-top: 8px; gap: 6px; }
.cm-modal--full .cm-receipt-form p { margin-bottom: 8px; }
.cm-modal--full .cm-receipt-form label { font-size: 12.5px; line-height: 1.8; display: block; margin-bottom: 4px; }
.cm-modal--full .cm-receipt-form .cm-btn-add-to-cart { margin-top: 6px; }
@media (max-height: 700px) { .cm-modal--full .cm-card__amt small { display: none; } }

/* ===== انتخاب فیش + نوار پیشرفت آپلود ===== */
.cm-rp { display: flex; flex-direction: column; gap: 8px; }
.cm-rp [hidden] { display: none !important; }
.cm-rp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; border: 2px dashed #9aa3af; border-radius: 10px; background: #f9fafb; color: #374151; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.cm-rp__btn:hover { border-color: #38bb3f; background: #f1faf2; }
.cm-rp__file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid #e3e6ea; border-radius: 10px; background: #fff; font-size: 13px; }
.cm-rp__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; flex: 1; }
.cm-rp__remove { border: 0; background: transparent; color: #b3261e; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cm-rp__bar { height: 10px; border-radius: 100px; background: #e5e7eb; overflow: hidden; }
.cm-rp__fill { height: 100%; width: 0; border-radius: 100px; background: #38bb3f; transition: width .15s linear; }
.cm-rp__status { font-size: 13px; line-height: 1.8; color: #4b5563; min-height: 1.2em; }
.cm-rp__status.is-ok { color: #1f7a3a; font-weight: 700; }
.cm-rp__status.is-error { color: #b3261e; }
.cm-receipt-form button[type="submit"]:disabled,
.cm-pay-order-form button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
