.ghestihub-product-hint {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--gh-hint-bg, #e7f4f1);
	color: var(--gh-text, #134e4a);
	font-size: 13px;
}

.ghestihub-product-hint__label {
	font-weight: 600;
}

.ghestihub-product-hint__gateways {
	opacity: 0.85;
}

/*
 * Installment methods on classic checkout and the order-pay page.
 * Rules are scoped and marked important so theme checkout styles
 * (radios, labels, payment-box arrow, fonts, inputs) do not leak in.
 */
#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 12px;
	align-items: center;
	box-sizing: border-box !important;
	width: auto !important;
	margin: 0 0 12px !important;
	padding: 14px 16px !important;
	list-style: none !important;
	float: none !important;
	clear: both !important;
	background: var(--gh-surface, #fff) !important;
	color: var(--gh-text, #134e4a) !important;
	border: 1px solid var(--gh-border, #cde5df) !important;
	border-radius: 18px !important;
	box-shadow: 0 10px 28px rgba(var(--gh-primary-rgb, 15, 118, 110), 0.08) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	text-align: start !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"]::before,
#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"]::after {
	content: none !important;
	display: none !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"]:hover {
	border-color: var(--gh-primary-light, #14b8a6) !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"]:has(> input.input-radio:checked) {
	border-color: var(--gh-primary, #0f766e) !important;
	background:
		linear-gradient(165deg, rgba(var(--gh-primary-rgb, 15, 118, 110), 0.08), transparent 42%),
		var(--gh-surface, #fff) !important;
	box-shadow:
		0 0 0 1px var(--gh-primary, #0f766e),
		0 16px 36px rgba(var(--gh-primary-rgb, 15, 118, 110), 0.16) !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > input.input-radio {
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
	align-self: center;
	appearance: none !important;
	-webkit-appearance: none !important;
	position: static !important;
	display: inline-block !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid var(--gh-primary, #0f766e) !important;
	border-radius: 50% !important;
	background: var(--gh-surface, #fff) !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	clip: auto !important;
	clip-path: none !important;
	-webkit-clip-path: none !important;
	cursor: pointer !important;
	float: none !important;
	transform: none !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > input.input-radio:checked {
	background: var(--gh-primary, #0f766e) !important;
	box-shadow: inset 0 0 0 4px var(--gh-surface, #fff) !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > input.input-radio:focus-visible {
	outline: 2px solid var(--gh-primary-light, #14b8a6) !important;
	outline-offset: 2px !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > label {
	grid-column: 2;
	grid-row: 1;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--gh-text, #134e4a) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > label::before,
#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > label::after {
	content: none !important;
	display: none !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] img.ghestihub-gateway-icon {
	order: -1;
	flex: 0 0 auto;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	margin: 0 !important;
	padding: 4px !important;
	object-fit: contain !important;
	display: block !important;
	visibility: visible !important;
	vertical-align: middle !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--gh-bg-soft, #f7fbfa) !important;
	box-shadow: none !important;
	float: none !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] .ghestihub-method__badge {
	margin-inline-start: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	flex: 0 0 auto;
	padding: 3px 10px !important;
	border-radius: 999px !important;
	background: var(--gh-primary, #0f766e) !important;
	color: var(--gh-on-primary, #fff) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	white-space: nowrap;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > .payment_box {
	grid-column: 1 / -1;
	grid-row: 2;
	position: static !important;
	box-sizing: border-box !important;
	width: auto !important;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	color: var(--gh-text, #134e4a) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > .payment_box::before,
#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] > .payment_box::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
}

.ghestihub-paybox,
.ghestihub-paybox * {
	box-sizing: border-box;
}

.ghestihub-paybox {
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	color: var(--gh-text, #134e4a) !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
	text-align: start !important;
}

.ghestihub-paybox__desc,
.ghestihub-paybox__desc p,
.ghestihub-blocks-payment__desc {
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: var(--gh-muted, #5b6f6b) !important;
	background: transparent !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.8 !important;
}

.ghestihub-paybox__desc p:last-child {
	margin-bottom: 0 !important;
}

.ghestihub-installment-preview {
	margin: 0 !important;
	padding: 14px !important;
	border: 1px solid var(--gh-soft-border, #dbe7e4) !important;
	border-radius: 16px !important;
	background: linear-gradient(180deg, var(--gh-bg, #f3fbf9), var(--gh-surface, #fff)) !important;
	color: var(--gh-text, #134e4a) !important;
	box-shadow: none !important;
}

.ghestihub-installment-preview__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 12px;
}

.ghestihub-installment-preview__badge {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--gh-hint-bg, #e7f4f1) !important;
	color: var(--gh-primary-dark, #115e59) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

.ghestihub-installment-preview__badge svg {
	display: block;
	flex: 0 0 auto;
}

.ghestihub-installment-preview__title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--gh-muted, #5b6f6b) !important;
	background: transparent !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
}

.ghestihub-installment-preview__total {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px !important;
	padding: 12px 14px !important;
	border-radius: 14px !important;
	background: var(--gh-primary, #0f766e) !important;
	color: var(--gh-on-primary, #fff) !important;
}

.ghestihub-installment-preview__total-label {
	font-size: 12px !important;
	font-weight: 600 !important;
	opacity: 0.9;
}

.ghestihub-installment-preview__total-amount,
.ghestihub-installment-preview__total-amount .woocommerce-Price-amount,
.ghestihub-installment-preview__total-amount .woocommerce-Price-currencySymbol {
	color: var(--gh-on-primary, #fff) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	background: transparent !important;
}

.ghestihub-installment-preview__plans {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ghestihub-installment-preview__plans:not(:has(.ghestihub-installment-preview__plan + .ghestihub-installment-preview__plan)) .ghestihub-installment-preview__plan {
	flex-direction: row;
	align-items: baseline;
	justify-content: flex-start;
	gap: 6px 12px;
}

.ghestihub-installment-preview__plans:not(:has(.ghestihub-installment-preview__plan + .ghestihub-installment-preview__plan)) .ghestihub-installment-preview__amount {
	margin-inline-start: auto;
}

.ghestihub-installment-preview__plan {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	margin: 0 !important;
	padding: 12px !important;
	border: 1px solid var(--gh-plan-border, #dceee9) !important;
	border-radius: 14px !important;
	background: var(--gh-surface, #fff) !important;
	color: var(--gh-text, #134e4a) !important;
	box-shadow: 0 6px 16px rgba(var(--gh-primary-rgb, 15, 118, 110), 0.05);
}

.ghestihub-installment-preview__months {
	color: var(--gh-primary, #0f766e) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}

.ghestihub-installment-preview__amount,
.ghestihub-installment-preview__amount .woocommerce-Price-amount,
.ghestihub-installment-preview__amount .woocommerce-Price-currencySymbol {
	color: var(--gh-text, #134e4a) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	background: transparent !important;
}

.ghestihub-installment-preview__per,
.ghestihub-installment-preview__last,
.ghestihub-installment-preview__last .woocommerce-Price-amount,
.ghestihub-installment-preview__last .woocommerce-Price-currencySymbol {
	color: var(--gh-muted, #5b6f6b) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	background: transparent !important;
}

.ghestihub-installment-preview__note {
	margin: 12px 0 0 !important;
	padding: 0 !important;
	color: var(--gh-muted, #5b6f6b) !important;
	background: transparent !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
}

.ghestihub-baloan-fields {
	display: grid;
	gap: 10px;
	margin: 14px 0 0 !important;
	padding: 0 !important;
}

.ghestihub-baloan-fields .form-row {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ghestihub-baloan-fields__hint,
.ghestihub-baloan-otp-status {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--gh-muted, #5b6f6b) !important;
	background: transparent !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
}

.ghestihub-baloan-otp-status.is-error {
	color: var(--gh-error, #b42318) !important;
}

.ghestihub-baloan-fields label,
.ghestihub-baloan-fields__label {
	display: block !important;
	float: none !important;
	width: auto !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	color: var(--gh-text, #134e4a) !important;
	background: transparent !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

.ghestihub-baloan-fields .required {
	color: var(--gh-error, #b42318) !important;
}

.ghestihub-baloan-fields input.input-text {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1px solid var(--gh-border, #cde5df) !important;
	border-radius: 12px !important;
	background: var(--gh-surface, #fff) !important;
	color: var(--gh-text, #134e4a) !important;
	box-shadow: none !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	outline: none !important;
	appearance: none !important;
}

.ghestihub-baloan-fields input.input-text:focus {
	border-color: var(--gh-primary, #0f766e) !important;
	box-shadow: 0 0 0 3px rgba(var(--gh-primary-rgb, 15, 118, 110), 0.18) !important;
}

.ghestihub-baloan-fields__otp-row {
	display: flex !important;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

#payment .ghestihub-baloan-send-otp.button,
.ghestihub-paybox .ghestihub-baloan-send-otp.button,
.wc-block-components-radio-control-accordion-content .ghestihub-baloan-send-otp {
	appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 11px 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--gh-primary, #0f766e) !important;
	color: var(--gh-on-primary, #fff) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	float: none !important;
}

#payment .ghestihub-baloan-send-otp.button:hover,
.ghestihub-paybox .ghestihub-baloan-send-otp.button:hover,
.wc-block-components-radio-control-accordion-content .ghestihub-baloan-send-otp:hover {
	background: var(--gh-primary-dark, #115e59) !important;
	color: var(--gh-on-primary, #fff) !important;
}

#payment .ghestihub-baloan-send-otp.button:disabled,
.ghestihub-paybox .ghestihub-baloan-send-otp.button:disabled {
	opacity: 0.65 !important;
	cursor: wait !important;
}

/* WooCommerce Blocks checkout */
.wc-block-components-radio-control-accordion-option:has(.ghestihub-blocks-label) {
	margin: 0 0 12px !important;
	padding: 0 !important;
	border: 1px solid var(--gh-border, #cde5df) !important;
	border-radius: 18px !important;
	background: var(--gh-surface, #fff) !important;
	box-shadow: 0 10px 28px rgba(var(--gh-primary-rgb, 15, 118, 110), 0.08) !important;
	overflow: hidden;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	color: var(--gh-text, #134e4a) !important;
}

.wc-block-components-radio-control-accordion-option:has(.ghestihub-blocks-label):has(input:checked) {
	border-color: var(--gh-primary, #0f766e) !important;
	background:
		linear-gradient(165deg, rgba(var(--gh-primary-rgb, 15, 118, 110), 0.08), transparent 46%),
		var(--gh-surface, #fff) !important;
	box-shadow:
		0 0 0 1px var(--gh-primary, #0f766e),
		0 16px 36px rgba(var(--gh-primary-rgb, 15, 118, 110), 0.16) !important;
}

.wc-block-components-radio-control-accordion-option:has(.ghestihub-blocks-label) .wc-block-components-radio-control__option {
	margin: 0 !important;
	padding: 14px 16px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	align-items: center !important;
}

.wc-block-components-radio-control-accordion-option:has(.ghestihub-blocks-label) .wc-block-components-radio-control__label,
.ghestihub-blocks-label {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	color: var(--gh-text, #134e4a) !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
}

.ghestihub-blocks-label__title {
	min-width: 0;
}

.ghestihub-blocks-label .ghestihub-gateway-icon,
.ghestihub-blocks-label img {
	order: -1;
	flex: 0 0 auto;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	margin: 0 !important;
	padding: 4px !important;
	object-fit: contain !important;
	display: block !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--gh-bg-soft, #f7fbfa) !important;
	box-shadow: none !important;
}

.ghestihub-blocks-label__badge,
.ghestihub-method__badge {
	margin-inline-start: auto;
}

.ghestihub-blocks-label__badge {
	display: inline-flex !important;
	align-items: center !important;
	flex: 0 0 auto;
	padding: 3px 10px !important;
	border-radius: 999px !important;
	background: var(--gh-primary, #0f766e) !important;
	color: var(--gh-on-primary, #fff) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	white-space: nowrap;
}

.wc-block-components-radio-control-accordion-content:has(.ghestihub-paybox) {
	margin: 0 !important;
	padding: 0 16px 16px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--gh-text, #134e4a) !important;
}

.wc_payment_method img.ghestihub-gateway-icon,
.ghestihub-gateway-icon {
	max-height: 32px;
	width: auto;
	display: inline-block;
	visibility: visible;
	vertical-align: middle;
}

@media (max-width: 600px) {
	#payment ul.payment_methods > li.wc_payment_method[class*="payment_method_ghestihub_"] {
		padding: 12px !important;
	}

	.ghestihub-installment-preview__plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ghestihub-installment-preview__total-amount,
	.ghestihub-installment-preview__total-amount .woocommerce-Price-amount {
		font-size: 16px !important;
	}
}
