.wsyi-switcher {
	--wsyi-bg: #1e1e1e;
	--wsyi-text: #ffffff;
	--wsyi-muted: #9a9a9a;
	--wsyi-accent: #7a5cff;
	--wsyi-border: #3a3a3a;
	--wsyi-radius: 30px;
	--wsyi-fontsize: 14px;
	position: relative;
	display: inline-block;
	font-family: inherit;
}

.wsyi-switcher .wsyi-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--wsyi-bg);
	color: var(--wsyi-text);
	border: 1px solid var(--wsyi-border);
	border-radius: var(--wsyi-radius);
	padding: 8px 14px;
	font-size: var(--wsyi-fontsize);
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.wsyi-switcher .wsyi-trigger:hover,
.wsyi-switcher.is-open .wsyi-trigger {
	border-color: var(--wsyi-accent);
}

.wsyi-switcher .wsyi-globe {
	display: inline-flex;
	color: var(--wsyi-muted);
}

.wsyi-switcher .wsyi-label {
	color: var(--wsyi-text);
	font-weight: 600;
}

.wsyi-switcher .wsyi-current {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	color: var(--wsyi-muted);
}

.wsyi-switcher .wsyi-arrow {
	display: inline-flex;
	color: var(--wsyi-muted);
	transition: transform .2s ease, color .2s ease;
}

.wsyi-switcher .wsyi-trigger:hover .wsyi-arrow,
.wsyi-switcher.is-open .wsyi-arrow {
	color: var(--wsyi-accent);
}

.wsyi-switcher.is-open .wsyi-arrow {
	transform: rotate(180deg);
}

.wsyi-switcher .wsyi-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 180px;
	max-width: calc(100vw - 20px);
	box-sizing: border-box;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--wsyi-bg);
	border: 1px solid var(--wsyi-border);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(0,0,0,.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 999;
}

.wsyi-switcher.is-open .wsyi-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wsyi-switcher .wsyi-option {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wsyi-text);
	font-size: var(--wsyi-fontsize);
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
}

.wsyi-switcher .wsyi-option:hover,
.wsyi-switcher .wsyi-option.is-active {
	background: rgba(255,255,255,.08);
	color: var(--wsyi-accent);
}

.wsyi-switcher .wsyi-flag {
	font-size: 1.1em;
	line-height: 1;
}

/* Código de país (ES, EN...) — solo visible en mobile, oculto en escritorio */
.wsyi-switcher .wsyi-current-code {
	display: none;
	font-weight: 700;
	letter-spacing: .03em;
	color: var(--wsyi-muted);
}

@media (max-width: 600px) {
	.wsyi-switcher .wsyi-hide-mobile {
		display: none !important;
	}
	.wsyi-switcher .wsyi-current-code {
		display: inline-flex;
	}
	.wsyi-switcher .wsyi-trigger {
		padding: 8px 12px;
		gap: 6px;
	}
	.wsyi-switcher .wsyi-dropdown {
		left: auto;
		right: 0;
		min-width: 140px;
		max-width: calc(100vw - 24px);
	}
}

/* Modo edición de textos (front-end) */
body.wsyi-edit-mode {
	padding-top: 40px !important;
}

.wsyi-edit-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100001;
	background: #1a1a1a;
	color: #fff;
	font-size: 13px;
	padding: 9px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.wsyi-edit-banner strong {
	color: #b6a5ff;
}

.wsyi-edit-banner a {
	color: #fff;
	background: rgba(255,255,255,.12);
	padding: 4px 12px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.wsyi-edit-banner a:hover {
	background: rgba(255,255,255,.22);
	color: #fff;
}

body.wsyi-edit-mode [data-wsyi-editable]:hover {
	cursor: pointer;
	background: rgba(122,92,255,.12);
	box-shadow: inset 0 -2px 0 var(--wsyi-accent, #7a5cff);
}

.wsyi-edit-popup {
	position: fixed;
	z-index: 100000;
	background: #1f1f1f;
	color: #fff;
	border-radius: 12px;
	padding: 16px;
	width: 320px;
	box-shadow: 0 20px 45px rgba(0,0,0,.45);
	font-size: 14px;
}

.wsyi-edit-popup h4 {
	margin: 0 0 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .7;
}

.wsyi-edit-popup textarea {
	width: 100%;
	min-height: 70px;
	border-radius: 8px;
	border: 1px solid #3a3a3a;
	background: #141414;
	color: #fff;
	padding: 8px;
	box-sizing: border-box;
	font-size: 14px;
}

.wsyi-edit-popup .wsyi-popup-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 10px;
}

.wsyi-edit-popup button {
	border: none;
	border-radius: 8px;
	padding: 7px 14px;
	cursor: pointer;
	font-size: 13px;
}

.wsyi-edit-popup .wsyi-btn-save {
	background: #7a5cff;
	color: #fff;
}

.wsyi-edit-popup .wsyi-btn-cancel {
	background: transparent;
	color: #ccc;
}

/* Evita el banner nativo de Google Translate */
.goog-te-banner-frame,
body > .skiptranslate {
	display: none !important;
}
body {
	top: 0 !important;
}

/* v1.0.1 — popup de edición por idioma */
.wsyi-edit-popup .wsyi-popup-label {
	margin: 8px 0 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .55;
}

.wsyi-edit-popup .wsyi-popup-original {
	margin: 0 0 6px;
	font-size: 13px;
	opacity: .85;
	max-height: 90px;
	overflow: auto;
}

.wsyi-edit-popup .wsyi-btn-reset {
	background: transparent;
	color: #ff8a8a;
	margin-right: auto;
}

#wp-admin-bar-wsyi-edit-mode.wsyi-is-on > a {
	background: #7a5cff !important;
	color: #fff !important;
}
