/* DYEZ language switcher - scoped styles */

/* Force header to be a positioning context so the absolute switcher anchors to it */
header,
.site-header,
#masthead,
#header,
.header {
	position: relative;
}

.dyez-lang-switcher {
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 9999;
	display: flex;
	gap: 4px;
	padding: 4px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	font-size: 0;
	line-height: 0;
}

.dyez-lang-switcher-relocated,
.dyez-lang-switcher-primary {
	position: absolute;
	top: 12px;
	right: 16px;
	z-index: 100;
	background: transparent;
	box-shadow: none;
}

.dyez-lang-switcher-fallback.dyez-lang-switcher-needs-relocation {
	position: fixed;
}

.dyez-lang-switcher .dyez-flag {
	display: inline-block;
	width: 24px;
	height: 16px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 2px;
	overflow: hidden;
	transition: transform 0.15s ease, opacity 0.15s ease;
	text-decoration: none;
	line-height: 0;
}

.dyez-lang-switcher .dyez-flag:hover {
	transform: scale(1.1);
}

.dyez-lang-switcher .dyez-flag[aria-current="true"] {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	opacity: 1;
}

.dyez-lang-switcher .dyez-flag:not([aria-current="true"]) {
	opacity: 0.85;
}

.dyez-lang-switcher .dyez-flag-img {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.dyez-flag-fr .dyez-flag-img { background-image: url('flags/fr.svg'); }
.dyez-flag-en .dyez-flag-img { background-image: url('flags/en.svg'); }
.dyez-flag-es .dyez-flag-img { background-image: url('flags/es.svg'); }
.dyez-flag-de .dyez-flag-img { background-image: url('flags/de.svg'); }
.dyez-flag-it .dyez-flag-img { background-image: url('flags/it.svg'); }
.dyez-flag-pt .dyez-flag-img { background-image: url('flags/pt.svg'); }
.dyez-flag-nl .dyez-flag-img { background-image: url('flags/nl.svg'); }
