body.asp-pp-open { overflow: hidden; }
.asp-pp-overlay { position: fixed; inset: 0; z-index: 999999; background: rgba(17, 24, 39, .55); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.asp-pp { background: #fff; color: #1f2937; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; padding: 20px; box-sizing: border-box; font-family: inherit; text-align: right; }
.asp-pp * { box-sizing: border-box; }
.asp-pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.asp-pp-title { font-size: 18px; font-weight: 700; }
.asp-pp-sub { font-size: 14px; color: #6b7280; margin-top: 2px; }
.asp-pp-close { background: none; border: 0; font-size: 28px; line-height: 1; color: #9ca3af; cursor: pointer; padding: 0 4px; }
.asp-pp-close:hover { color: #374151; }
.asp-pp-seg { display: flex; border: 1px solid #d1d5db; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.asp-pp-seg button { flex: 1; border: 0; background: #fff; padding: 11px 8px; font-size: 14px; cursor: pointer; color: #374151; font-family: inherit; }
.asp-pp-seg button.is-on { background: #eef4ff; color: #1d4ed8; font-weight: 700; }
.asp-pp-hint { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.asp-pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.asp-pp-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 12px; text-align: center; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; outline: none; }
.asp-pp-card:hover { border-color: #93c5fd; }
.asp-pp-card:focus-visible { box-shadow: 0 0 0 3px #bfdbfe; }
.asp-pp-card.is-on { border: 2px solid #f59e0b; background: #fffbeb; padding: 13px 11px; }
.asp-pp-logo { width: 52px; height: 52px; object-fit: contain; display: block; margin: 0 auto 8px; }
.asp-pp-initial { border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.asp-pp-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.asp-pp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.asp-pp-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.asp-pp-off { background: #dcfce7; color: #166534; }
.asp-pp-fee { background: #fee2e2; color: #991b1b; }
.asp-pp-credit { background: #fef3c7; color: #92400e; }
.asp-pp-coupon { font-size: 12px; padding: 4px 12px; border-radius: 8px; border: 1px dashed #f59e0b; background: #fffbeb; color: #b45309; cursor: pointer; font-family: inherit; }
.asp-pp-coupon:hover { background: #fef3c7; }
.asp-pp-coupon.is-applied { border-style: solid; border-color: #16a34a; background: #f0fdf4; color: #166534; cursor: default; }
.asp-pp-amount-box { margin-top: 12px; cursor: default; }
.asp-pp-amount { width: 100%; height: 46px; font-size: 17px; text-align: center; direction: ltr; border: 1px solid #d1d5db; border-radius: 10px; padding: 0 10px; background: #fff; font-family: inherit; }
.asp-pp-amount:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px #dbeafe; }
.asp-pp-fill { width: 100%; height: 40px; margin-top: 8px; border-radius: 10px; border: 1px solid #93c5fd; background: #eff6ff; color: #1d4ed8; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.asp-pp-fill:hover { background: #dbeafe; }
.asp-pp-note { font-size: 12px; color: #6b7280; margin-top: 6px; }
.asp-pp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; position: sticky; bottom: -20px; background: #fff; padding-bottom: 4px; }
.asp-pp-sum-label { font-size: 13px; color: #6b7280; }
.asp-pp-sum-label.is-warn { color: #b91c1c; }
.asp-pp-sum-value { font-size: 20px; font-weight: 700; }
.asp-pp-confirm { background: #16a34a; color: #fff; border: 0; border-radius: 12px; height: 48px; padding: 0 32px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.asp-pp-confirm:hover { background: #15803d; }
.asp-pp-error { color: #b91c1c; font-size: 13px; margin-top: 8px; min-height: 1em; }
.asp-co { margin-top: 8px; }
.asp-co-line { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 6px; font-size: 14px; background: #fff; }
.asp-co-empty { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.asp-co-warn { color: #b91c1c; }
.asp-co-open { width: 100%; }
@media (max-width: 640px) {
	.asp-pp-overlay { padding: 0; align-items: flex-end; }
	.asp-pp { max-height: 92vh; border-radius: 18px 18px 0 0; padding: 16px; }
	.asp-pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.asp-pp-foot { bottom: -16px; }
	.asp-pp-confirm { padding: 0 22px; }
}

/* حالت «فقط دکمه‌ی انتخاب روش پرداخت»: بدون رادیو و عنوان روش، فقط دکمه و خلاصه‌ی برنامه */
body.asp-only-split .wc_payment_method.payment_method_apexa_split > input.input-radio,
body.asp-only-split .wc_payment_method.payment_method_apexa_split > label { display: none !important; }
body.asp-only-split .wc_payment_methods { border: 0 !important; padding: 0 !important; }
body.asp-only-split .wc_payment_method.payment_method_apexa_split { list-style: none; padding: 0 !important; border: 0 !important; background: none !important; }
body.asp-only-split .payment_method_apexa_split .payment_box { display: block !important; background: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
body.asp-only-split .payment_method_apexa_split .payment_box::before { display: none !important; }
body.asp-only-split label[for="radio-control-wc-payment-method-options-apexa_split"] { display: none !important; }
body.asp-only-split .wc-block-components-radio-control-accordion-option { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
body.asp-only-split .wc-block-components-radio-control-accordion-content { padding: 0 !important; }
body.asp-only-split .asp-co-open { display: block; width: 100%; height: 50px; border: 0 !important; border-radius: 12px !important; background: #16a34a !important; color: #fff !important; font-size: 16px !important; font-weight: 700; cursor: pointer; }
body.asp-only-split .asp-co-open:hover { background: #15803d !important; }
body.asp-only-split .asp-co-empty:not(.asp-co-warn) { display: none; }
.asp-pp-card.is-split { cursor: default; }
.asp-pp-card.is-locked { opacity: .45; }
.asp-pp-card.is-locked:hover { border-color: #e5e7eb; }
.asp-pp-amount:disabled, .asp-pp-fill:disabled { background: #f3f4f6; cursor: not-allowed; }
.asp-pp-note:empty { display: none; }
.asp-pp-grid.is-covered .asp-pp-card { opacity: .45; }
.asp-pp-wallet { margin-top: 14px; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 14px; background: #fafafa; }
.asp-pp-wallet.is-on { border: 2px solid #f59e0b; background: #fffbeb; padding: 11px 13px; }
.asp-pp-wallet-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; margin: 0; }
.asp-pp-wallet-head input { width: 20px; height: 20px; margin: 0; }
.asp-pp-wallet-title { font-weight: 700; font-size: 15px; }
.asp-pp-wallet-avail { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.asp-pp-wallet-body { margin-top: 10px; max-width: 360px; }

/* قوانین درگاه */
.asp-pp-card.is-blocked{opacity:.55;cursor:not-allowed;filter:grayscale(.6)}
.asp-pp-card.is-blocked:hover{transform:none;box-shadow:none}
.asp-pp-reason{font-size:12px;line-height:1.6;color:#8a5300;margin-top:6px}
.asp-pp-card.is-blocked .asp-pp-reason{color:#b32d2e}
.asp-pp-rules{background:#fcf0f1;color:#8a1f1f;border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:13px;line-height:1.7}
