/**
 * Footer bottom row: language switcher (start) and payment methods (end).
 * Layout from the iFit build of this theme; colours follow the footer colour options
 * (--title-color / --description-color set by hs-footer-template.php), so it works on light and dark footers.
 *
 * Author: Hesham Saad
 * Author URI: https://heshamsaad.com
 */
.hs-main-footer-level-3 {
	padding: 1.5em 0 2em;
	border-top: 1px solid color-mix(in srgb, var(--description-color, currentColor) 20%, transparent);
}
.hs-main-footer-level-3__wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 1.5rem 2em;
}
@media (max-width: 767px) {
	.hs-main-footer-level-3__wrap {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Language switcher: segmented pill, flag + native name, current language filled. */
.hs-lang {
	display: inline-flex;
	justify-self: start;
	gap: 4px;
	padding: 4px;
	border: 1px solid color-mix(in srgb, var(--description-color, currentColor) 25%, transparent);
	border-radius: 999px;
}
.hs-lang__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 18px 6px 8px;
	border-radius: 999px;
	color: var(--description-color, inherit);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}
a.hs-lang__item:hover {
	color: var(--title-color, inherit);
	background: color-mix(in srgb, var(--description-color, currentColor) 12%, transparent);
}
a.hs-lang__item:focus-visible {
	outline: 2px solid var(--title-color, currentColor);
	outline-offset: 2px;
}
.hs-lang__item.is-active {
	background: var(--title-color, #222);
	color: var(--bg-color, #fff);
}
.hs-lang__flag {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.hs-main-footer .payment-methods {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	justify-self: end;
	max-width: 100%;
}
@media (max-width: 767px) {
	.hs-main-footer .payment-methods {
		align-items: flex-start;
		justify-self: start;
	}
}
.payment-methods__label {
	color: var(--description-color, inherit);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
footer .payment-methods .payment_methods_wrap {
	max-width: 240px;
	margin: 0;
	padding: 0;
}
footer .payment-methods .payment_methods_image {
	display: block;
	width: 100%;
	height: auto;
}

/* Arabic: no letter-spacing on the label (breaks letter joins). */
[dir="rtl"] .payment-methods__label {
	letter-spacing: 0;
}
