/* ── Sprachauswahl-Popup (Polylang) ──────────────────────────────── */
.wcco-lang-modal {

	/* Deutlich schmaler als Wishlist/Compare — es ist nur eine kurze Liste */
	.wcco-modal__inner--lang {
		width: min(92vw, 400px);
		max-width: 400px;
	}

	.wcco-lang-list {
		list-style: none;
		margin: 0;
		padding: 8px;
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.wcco-lang-item {
		margin: 0;
		padding: 0;
		list-style: none;

		&::before,
		&::marker {
			content: none;
		}
	}

	.wcco-lang-link {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 11px 14px;
		border-radius: 3px;
		border: 1px solid transparent;
		color: #333;
		text-decoration: none;
		font-size: .95rem;
		line-height: 1.3;
		transition: background .15s, border-color .15s, color .15s;

		&:hover,
		&:focus-visible {
			background: #f5f5f5;
			border-color: #ccc;
			color: #1a1a1a;
			text-decoration: none;
		}

		&:focus-visible {
			outline: 2px solid #1a1a1a;
			outline-offset: 1px;
		}
	}

	.wcco-lang-flag {
		flex: 0 0 auto;
		width: 24px;
		height: 16px;
		object-fit: cover;
		border-radius: 2px;
		box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
		display: block;
	}

	.wcco-lang-flag--placeholder {
		background: #e8e8e8;
	}

	.wcco-lang-name {
		flex: 1 1 auto;
		min-width: 0;
	}

	.wcco-lang-check {
		flex: 0 0 auto;
		color: #1a1a1a;
	}

	/* ── Aktive Sprache hervorheben ──────────────────────────── */
	.wcco-lang-item--current .wcco-lang-link {
		background: #f0f0f0;
		border-color: #999;
		color: #1a1a1a;
		font-weight: 600;
		cursor: default;

		&:hover {
			background: #ebebeb;
		}
	}

	/* ── Seite ohne Übersetzung: führt zur Startseite ────────── */
	.wcco-lang-item--no-translation .wcco-lang-link {
		opacity: .62;
	}
}

/* ── Auslöser-Button aus dem Shortcode ───────────────────────────── */
.wcco-lang-trigger-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	background: none;
	border: 1px solid #ccc;
	border-radius: 3px;
	cursor: pointer;
	font-size: .85rem;
	color: #555;
	transition: background .15s, border-color .15s, color .15s;

	&:hover {
		background: #f5f5f5;
		border-color: #999;
		color: #1a1a1a;
	}
}
