/* Scoped presentation controls; existing theme layout remains authoritative. */
#lupet-language-desktop[hidden],
#lupet-language-mobile[hidden],
#lupet-translation-draft-note[hidden] { display: none !important; }

#lupet-language-desktop {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.35rem;
	margin-inline-start: 0.75rem;
	color: inherit;
	font-family: inherit;
	font-size: 0.6875rem;
	line-height: 1.4;
	letter-spacing: 0.025em;
}

#lupet-language-desktop label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#lupet-language-desktop select {
	width: auto;
	min-width: 5.5rem;
	max-width: 8rem;
	min-height: 2.75rem;
	height: auto;
	margin: 0;
	padding: 0.45rem 0.25rem;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	appearance: auto;
}

#lupet-language-desktop select option { background: #f2eee6; color: #171714; }
#lupet-language-desktop select:focus-visible,
#lupet-language-mobile a:focus-visible,
#lupet-whatsapp-bubble:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

#lupet-language-mobile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin-block: 1.25rem 0.5rem;
	padding-block: 0.75rem;
	border-top: 1px solid currentColor;
	color: inherit;
}

#lupet-language-mobile a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.45rem 0.35rem;
	border: 0;
	border-radius: 0;
	color: inherit;
	background: transparent;
	font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-decoration: none;
}

#lupet-language-mobile a[aria-current="page"],
#lupet-language-mobile a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.3em; }

/* Blocksy's dark mobile panel otherwise inherits the page's dark body text.
 * Links and their existing focus outline inherit this inverse brand color. */
#offcanvas .ct-panel-content[data-device="mobile"] #lupet-language-mobile {
	color: var(--lupet-color-inverse, #f2eee6);
}

#lupet-translation-draft-note {
	box-sizing: border-box;
	width: calc(100% - 2.5rem);
	max-width: 75rem;
	margin: 1.5rem auto;
	padding: 0.8rem 1rem;
	border: 1px solid #c8bba7;
	background: #f2eee6;
	color: #42362d;
	font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
	font-size: 0.8125rem;
	line-height: 1.65;
	letter-spacing: normal;
}

#lupet-whatsapp-bubble {
	--lupet-bubble-lift: 0px;
	position: fixed;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + var(--lupet-bubble-lift));
	z-index: 15;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	padding: 13px;
	border: 1px solid #b4a182;
	border-radius: 50%;
	background: #f2eee6;
	color: #3f332a;
	box-shadow: 0 3px 16px rgba(23, 23, 20, 0.12);
	text-decoration: none;
	cursor: pointer;
	animation: none;
	transition: none;
}

#lupet-whatsapp-bubble svg { display: block; width: 100%; height: 100%; fill: currentColor; }
#lupet-whatsapp-bubble:hover { background: #e9e0d2; color: #261e18; }
#lupet-whatsapp-bubble.is-obscured { visibility: hidden; pointer-events: none; }

@media (max-width: 767px) {
	#lupet-language-desktop { display: none; }
	#lupet-whatsapp-bubble {
		width: 48px;
		height: 48px;
		padding: 12px;
		right: max(0.875rem, env(safe-area-inset-right));
		bottom: calc(max(0.875rem, env(safe-area-inset-bottom)) + var(--lupet-bubble-lift));
	}
}

@media print {
	#lupet-language-desktop, #lupet-language-mobile, #lupet-whatsapp-bubble { display: none !important; }
}
