/*
 * Payment methods page ([payment_methods_info] inside .hms-payment-methods).
 * Card grid in the site's fonts and green: logo row (or a line icon for
 * methods without a brand logo), title, short description.
 */

.hms-payment-methods ul.payment_methods {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 32px 0 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.hms-payment-methods .hms-pay-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hms-payment-methods .hms-pay-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wd-primary-color) 35%, transparent);
	box-shadow: 0 14px 30px -12px rgba(16, 24, 40, 0.18);
}

.hms-payment-methods .hms-pay-card__media {
	display: flex;
	align-items: center;
	height: 44px;
	margin-bottom: 18px;
}

.hms-payment-methods .hms-pay-card__logos {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hms-payment-methods .hms-pay-card__logos img {
	width: auto;
	max-width: 120px;
	height: 28px;
	margin: 0;
	object-fit: contain;
}

.hms-payment-methods .hms-pay-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wd-primary-color) 14%, #fff);
	color: var(--wd-primary-color);
}

.hms-payment-methods .hms-pay-card__title {
	margin: 0 0 8px;
	color: var(--wd-title-color);
	font-family: var(--wd-title-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.hms-payment-methods .hms-pay-card__text {
	margin: 0;
	color: var(--wd-text-color);
	font-size: 14.5px;
	line-height: 1.6;
}

@media (max-width: 1024px) {
	.hms-payment-methods ul.payment_methods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hms-payment-methods ul.payment_methods {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.hms-payment-methods .hms-pay-card {
		padding: 20px;
	}
}
