/**
 * Riyad Bank Payment Gateway — payment icon styles.
 *
 * Official brand logos as inline SVG: crisp on retina displays and
 * fully responsive. Each logo sits on a white card chip so it stays
 * legible on any background (including dark footers).
 */

.rbpg-icons {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	vertical-align: middle;
	line-height: 1;
}

.rbpg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	background: #ffffff;
	border: 1px solid #d9dee4;
	border-radius: 5px;
	padding: 0 6px;
	height: 28px;
	min-width: 44px;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(20, 30, 45, 0.06);
}

.rbpg-icons svg {
	height: 15px;
	width: auto;
	max-width: 40px;
	display: block;
}

/* Mastercard's mark is squarer — give it a touch more height. */
.rbpg-icon--mastercard svg {
	height: 18px;
}

/* Checkout: keep icons compact next to the gateway title. */
.rbpg-checkout-icons .rbpg-icon {
	height: 26px;
	min-width: 40px;
}

.rbpg-checkout-icons svg {
	height: 13px;
}

.rbpg-checkout-icons .rbpg-icon--mastercard svg {
	height: 16px;
}

/* Footer strip */
.rbpg-footer-icons {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 14px 0;
}

.rbpg-footer-row .rbpg-icon {
	height: 30px;
	min-width: 48px;
}

.rbpg-footer-row svg {
	height: 16px;
}

.rbpg-footer-row .rbpg-icon--mastercard svg {
	height: 20px;
}

/* Single product page: secure checkout trust badge. */
.rbpg-product-badge {
	margin: 18px 0 6px;
	padding: 14px 16px 16px;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	background: #fafbfc;
	text-align: center;
	max-width: 420px;
}

.rbpg-product-badge__heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0 0 11px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #3c434a;
	line-height: 1.3;
}

/* Decorative side lines around the heading. */
.rbpg-product-badge__heading::before,
.rbpg-product-badge__heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #dcdfe3;
	min-width: 14px;
}

/* Lock icon: hard-capped size so theme SVG rules can never inflate it. */
.rbpg-product-badge .rbpg-lock,
.rbpg-product-badge__heading svg.rbpg-lock {
	width: 15px !important;
	height: 15px !important;
	max-width: 15px !important;
	max-height: 15px !important;
	min-width: 0 !important;
	flex: 0 0 auto !important;
	display: inline-block;
	vertical-align: middle;
	color: #1f7a3d;
}

.rbpg-product-badge .rbpg-icons {
	display: flex;
	justify-content: center;
}

.rbpg-product-row .rbpg-icon {
	height: 30px;
	min-width: 48px;
}

.rbpg-product-row svg {
	height: 16px;
}

.rbpg-product-row .rbpg-icon--mastercard svg {
	height: 20px;
}

@media (max-width: 600px) {
	.rbpg-product-badge {
		max-width: 100%;
		margin: 14px 0 4px;
		padding: 12px 10px 13px;
	}

	.rbpg-product-badge__heading {
		font-size: 12px;
		letter-spacing: 0.04em;
	}

	.rbpg-product-badge .rbpg-lock,
	.rbpg-product-badge__heading svg.rbpg-lock {
		width: 13px !important;
		height: 13px !important;
		max-width: 13px !important;
		max-height: 13px !important;
	}

	.rbpg-product-badge .rbpg-icons {
		flex-wrap: wrap;
		gap: 5px;
	}

	.rbpg-product-row .rbpg-icon {
		height: 26px;
		min-width: 42px;
	}

	.rbpg-product-row svg {
		height: 14px;
	}

	.rbpg-product-row .rbpg-icon--mastercard svg {
		height: 17px;
	}
}

/* Mobile: center the row and scale gently. */
@media (max-width: 480px) {
	.rbpg-icons {
		justify-content: center;
	}

	.rbpg-icon {
		height: 26px;
		min-width: 40px;
	}

	.rbpg-icons svg {
		height: 13px;
	}

	.rbpg-icon--mastercard svg {
		height: 16px;
	}
}
