.sodamc-youth-protection {
	--syp-accent: #178a55;
	--syp-accent-hover: #0e6c41;
	--syp-background: #ffffff;
	--syp-border: #dce8e2;
	--syp-heading: #18352a;
	--syp-text: #5d6d66;
	position: fixed;
	left: 24px;
	bottom: 28px;
	z-index: 9999;
	width: 54px;
	height: 54px;
	cursor: default;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
	letter-spacing: 0;
}

.sodamc-youth-protection__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid var(--syp-border);
	border-radius: 50%;
	background: var(--syp-background);
	box-shadow: 0 6px 22px rgba(22, 50, 38, 0.2);
	color: var(--syp-accent) !important;
	line-height: 1;
	transition: color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sodamc-youth-protection__trigger svg {
	display: block;
	width: 34px;
	height: 34px;
	fill: currentColor;
}

.sodamc-youth-protection__trigger:hover {
	color: var(--syp-accent-hover) !important;
	box-shadow: 0 8px 26px rgba(22, 50, 38, 0.28);
	transform: translateY(-2px);
}

.sodamc-youth-protection__panel {
	position: absolute;
	left: 64px;
	bottom: 0;
	display: flex;
	align-items: center;
	width: 288px;
	min-height: 62px;
	padding: 12px 14px 12px 16px;
	border: 1px solid var(--syp-border);
	border-radius: 8px;
	background: var(--syp-background);
	box-shadow: 0 8px 28px rgba(22, 50, 38, 0.18);
	color: var(--syp-text);
	opacity: 0;
	pointer-events: none;
	transform: translateX(-8px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.sodamc-youth-protection:hover .sodamc-youth-protection__panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
}

.sodamc-youth-protection__message {
	min-width: 0;
}

.sodamc-youth-protection__message strong,
.sodamc-youth-protection__message span {
	display: block;
}

.sodamc-youth-protection__message strong {
	overflow: hidden;
	color: var(--syp-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sodamc-youth-protection__message span {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.45;
	white-space: nowrap;
}

.theme-dark .sodamc-youth-protection {
	--syp-accent: #68d69e;
	--syp-accent-hover: #91e7ba;
	--syp-background: #292a2d;
	--syp-border: rgba(255, 255, 255, 0.12);
	--syp-heading: #f0f5f2;
	--syp-text: #b6c1bc;
}

@media (max-width: 700px) {
	.sodamc-youth-protection {
		left: 10px;
		bottom: calc(14vw + env(safe-area-inset-bottom) + 8px);
	}

	.sodamc-youth-protection__panel {
		left: 0;
		bottom: 64px;
		width: min(320px, calc(100vw - 20px));
		padding: 11px 12px;
		transform: translateY(8px);
	}

	.sodamc-youth-protection:hover .sodamc-youth-protection__panel {
		transform: translateY(0);
	}

	.sodamc-youth-protection__message strong {
		font-size: 13px;
	}

	.sodamc-youth-protection__message span {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sodamc-youth-protection__trigger,
	.sodamc-youth-protection__panel {
		transition: none;
	}
}
