@font-face {
	font-family: 'DargahPay-Vazirmatn';
	src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'DargahPay-Vazirmatn';
	src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'DargahPay-Vazirmatn';
	src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.dargahpay-instructions,
.dargahpay-instructions * {
	font-family: 'DargahPay-Vazirmatn', -apple-system, "Segoe UI", Tahoma, sans-serif !important;
}

.dargahpay-gateway-desc,
.dargahpay-gateway-desc *,
.dargahpay-wallet-features,
.dargahpay-wallet-features *,
.dargahpay-note {
	font-family: 'DargahPay-Vazirmatn', -apple-system, "Segoe UI", Tahoma, sans-serif !important;
}

/* فاصله‌ی مناسب بین گزینه‌های روش پرداخت - هم چک‌اوت کلاسیک هم بلوکی */
ul.wc_payment_methods li,
ul.payment_methods li,
.wc-block-components-radio-control__option {
	margin-bottom: 10px !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}
.wc-block-components-radio-control-accordion-option,
.wc-block-components-payment-method-label {
	margin-bottom: 6px;
}
.dargahpay-gateway-logo {
	height: 22px;
	vertical-align: middle;
	margin-left: 6px;
	display: inline-block;
}

/* محدودکردن اندازه‌ی آیکون درگاه‌ها در لیست روش‌های پرداخت چک‌اوت -
   چون WooCommerce تصویر آیکون را در اندازه‌ی اصلی فایل نمایش می‌دهد */
ul.wc_payment_methods li img,
ul.payment_methods li img,
.woocommerce-checkout-payment ul li img {
	max-height: 22px !important;
	width: auto !important;
	max-width: 90px !important;
	vertical-align: middle !important;
	margin: 0 6px !important;
	object-fit: contain;
}

/* عنوان درگاه‌های درگاه‌پی را برجسته‌تر نشان بده */
ul.wc_payment_methods li label[for^="payment_method_dargahpay"],
ul.payment_methods li label[for^="payment_method_dargahpay"] {
	font-weight: 700 !important;
	font-family: 'DargahPay-Vazirmatn', -apple-system, "Segoe UI", Tahoma, sans-serif !important;
}

/* -------------------------------------------------------------------- */
/* فاصله‌ی دکمه‌های عملیات در جدول «سفارش‌های من» (پرداخت/مشاهده/لغو)      */
/* -------------------------------------------------------------------- */
.woocommerce-orders-table__cell-order-actions {
	white-space: normal !important;
}

.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-orders .button {
	display: inline-block !important;
	margin: 3px 4px !important;
}

.dargahpay-instructions .button.alt {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

#dargahpay-tracking-message {
	font-size: 13px;
	min-height: 18px;
}

/* -------------------------------------------------------------------- */
/* صفحه‌ی راهنمای پرداخت (order-pay) — چیدمان تازه                       */
/* -------------------------------------------------------------------- */
.dargahpay-pay-wrap {
	max-width: 460px;
	margin: 30px auto;
	direction: rtl;
}

.dargahpay-pay-card {
	background: #ffffff;
	border: 1px solid #e6e9ef;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(30, 41, 59, 0.08);
}

.dargahpay-pay-header {
	background: linear-gradient(135deg, #2952a3, #1a3a75);
	padding: 20px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.dargahpay-pay-header-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.dargahpay-pay-header-logo img {
	background: #fff;
	border-radius: 6px;
	padding: 2px 4px;
}

.dargahpay-pay-body {
	padding: 26px;
}

.dargahpay-pay-eyebrow {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	margin: 0 0 6px;
	text-align: center;
}

.dargahpay-pay-amount {
	font-size: 30px;
	font-weight: 700;
	color: #1a2b4c;
	text-align: center;
	margin: 14px 0 28px;
}

.dargahpay-pay-card-number-row {
	position: relative;
	margin-bottom: 10px;
}

.dargahpay-pay-card-number {
	display: block;
	font-size: 21px;
	font-weight: 500;
	letter-spacing: 1px;
	direction: ltr;
	text-align: center;
	background: #f4f6fb;
	border: 1px dashed #c7cfdd;
	border-radius: 10px;
	padding: 14px 46px;
	color: #1a2b4c;
}

.dargahpay-pay-copy-btn {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #d6dbe4;
	border-radius: 8px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #2952a3;
	transition: background .15s ease, border-color .15s ease;
}

.dargahpay-pay-copy-btn:hover {
	background: #eef2fb;
	border-color: #2952a3;
}

.dargahpay-pay-copy-btn.is-copied {
	color: #1e7e3e;
	border-color: #1e7e3e;
}

.dargahpay-pay-card-holder {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 22px;
}

.dargahpay-pay-steps {
	background: #f8f9fc;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 22px;
}

.dargahpay-pay-step {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #4b5568;
	margin-bottom: 10px;
}

.dargahpay-pay-step:last-child {
	margin-bottom: 0;
}

.dargahpay-pay-step-num {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #2952a3;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dargahpay-pay-divider {
	border: none;
	border-top: 1px solid #eef0f4;
	margin: 22px 0;
}

.dargahpay-pay-label {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	color: #374151;
	margin: 18px 0 10px;
}

.dargahpay-pay-input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border: 1px solid #d6dbe4;
	border-radius: 14px;
	font-size: 15px;
	margin-bottom: 16px;
	background: #fbfcfe;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.dargahpay-pay-input:focus {
	outline: none;
	border-color: #2952a3;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(41, 82, 163, 0.12);
}

.dargahpay-pay-submit,
.dargahpay-pay-submit:invalid,
.dargahpay-pay-submit:focus,
.dargahpay-pay-submit:focus-visible,
.dargahpay-pay-submit:active {
	width: 100%;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 10px;
	background: #2952a3;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 0;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.dargahpay-pay-submit:hover {
	background: #1f3f80;
}

.dargahpay-pay-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

#dargahpay-tracking-message {
	margin-top: 14px;
	font-size: 13.5px;
	text-align: center;
	min-height: 18px;
}

#dargahpay-tracking-message.is-success {
	color: #1e7e3e;
}

#dargahpay-tracking-message.is-error {
	color: #c62828;
}

.dargahpay-pay-note {
	font-size: 12px;
	color: #9aa2b1;
	text-align: center;
	margin-top: 8px;
}
