.probonoseo-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	cursor: pointer;
	position: relative;
}

.probonoseo-toggle.is-locked {
	cursor: not-allowed;
	opacity: 0.6;
}

.probonoseo-toggle-label {
	min-width: 140px;
	max-width: 160px;
	font-size: 12px;
	font-weight: 500;
	color: #333;
	user-select: none;
	text-align: center;
	line-height: 1.3;
	word-wrap: break-word;
}

.probonoseo-toggle-switch {
	flex-shrink: 0;
	position: relative;
	user-select: none;
}

.probonoseo-toggle-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 128px;
	height: 32px;
	border-radius: 999px;
	background: #d1d5db;
	padding: 0;
	box-sizing: border-box;
	transition: background 0.3s ease;
}

.probonoseo-toggle.is-on .probonoseo-toggle-pill {
	background: #4a90e2;
}

.probonoseo-toggle.is-locked .probonoseo-toggle-pill {
	background: #d3d7db;
	cursor: not-allowed;
}

.probonoseo-toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	transition: transform 0.3s ease, background 0.3s ease;
	z-index: 2;
}

.probonoseo-toggle.is-on .probonoseo-toggle-knob {
	transform: translateX(96px);
	background: #ffffff;
}

.probonoseo-toggle.is-locked .probonoseo-toggle-knob {
	background: #9ca3af;
}

.probonoseo-toggle-state {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	font-size: 13px;
	font-weight: 700;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.probonoseo-toggle-state-off {
	color: #374151;
}

.probonoseo-toggle-state-on {
	color: #ffffff;
}

.probonoseo-toggle.is-on .probonoseo-toggle-state-off {
	opacity: 0;
}

.probonoseo-toggle:not(.is-on) .probonoseo-toggle-state-on {
	opacity: 0;
}

.probonoseo-toggle-lock {
	font-size: 11px;
	color: #666;
	user-select: none;
	margin-top: 4px;
}

.probonoseo-toggle-tooltip {
	position: absolute;
	display: none;
	font-size: 13px;
	color: #fff;
	background: #1e1e1e;
	border-radius: 6px;
	padding: 10px 14px;
	white-space: nowrap;
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	user-select: none;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	opacity: 1;
}

.probonoseo-toggle.is-locked .probonoseo-toggle-tooltip {
	opacity: 1;
}

.probonoseo-toggle-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1e1e1e;
}

.probonoseo-toggle-tooltip.show {
	display: block;
	animation: tooltipFadeIn 0.3s ease;
	opacity: 1;
}

@keyframes tooltipFadeIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

.probonoseo-toggle-switch:hover .probonoseo-toggle-pill {
	filter: brightness(1.05);
}

.probonoseo-toggle.is-locked .probonoseo-toggle-pill {
	filter: none;
}

.probonoseo-toggle.is-locked .probonoseo-toggle-switch:hover .probonoseo-toggle-pill {
	filter: none;
}

.probonoseo-toggle-switch:active .probonoseo-toggle-knob {
	transform: scale(0.96);
}

.probonoseo-toggle.is-on .probonoseo-toggle-switch:active .probonoseo-toggle-knob {
	transform: translateX(96px) scale(0.96);
}

.probonoseo-toggle-container {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: 100px;
}

.probonoseo-toggle {
	margin-top: 0;
	margin-bottom: 0;
}

@media screen and (max-width: 900px) {
	.probonoseo-toggle-container {
		justify-content: flex-start;
		min-height: auto;
	}
}

@media screen and (max-width: 480px) {
	.probonoseo-toggle-tooltip {
		max-width: 260px;
		white-space: normal;
	}
}