/**
 * Header language switcher — Old Postcards brand
 */

.ls-header-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
	float: right;
	max-width: 100%;
}

.ls-header-toolbar .cart-section {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	float: none;
	margin: 0;
}

.ls-lang-switcher {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.ls-lang-switcher__list {
	display: inline-flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 3px;
	background: var(--op-cream, #faf8f5);
	border: 1px solid var(--op-border, #e8e4de);
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(32, 43, 93, 0.06);
}

.ls-lang-switcher__item {
	margin: 0;
	padding: 0;
}

.ls-lang-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	padding: 0.38rem 0.62rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--op-navy, #202b5d);
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

a.ls-lang-switcher__link:hover,
a.ls-lang-switcher__link:focus {
	color: var(--op-burgundy, #722431);
	background: rgba(32, 43, 93, 0.05);
}

.ls-lang-switcher__link.is-active,
span.ls-lang-switcher__link.is-active {
	background: var(--op-navy, #202b5d);
	color: #fff;
	box-shadow: 0 2px 8px rgba(32, 43, 93, 0.2);
	cursor: default;
}

/* Keep toolbar visible when cart icons are hidden */
.ls-header-toolbar:only-child,
.ls-header-toolbar .ls-lang-switcher:only-child {
	margin-left: auto;
}

@media screen and (max-width: 767px) {
	.ls-header-toolbar {
		width: 100%;
		justify-content: flex-end;
		margin-top: 0.35rem;
	}

	.ls-lang-switcher__link {
		min-width: 2.15rem;
		padding: 0.42rem 0.55rem;
	}
}

@media screen and (max-width: 480px) {
	.center-wrapper-mx-width .ls-header-toolbar {
		clear: both;
	}
}
