/*
 * The "Open in agent" menu. Bottom-left, because the fused chat widget sits
 * bottom-right; self-contained, because it lands on themes this plugin has
 * never seen. Everything is scoped to .tynkhano-agent-menu.
 */
.tynkhano-agent-menu {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #1c1c1c;
}

.tynkhano-agent-menu > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #1c1c1c;
	color: #fff;
	cursor: pointer;
	list-style: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	user-select: none;
}

.tynkhano-agent-menu > summary::-webkit-details-marker {
	display: none;
}

.tynkhano-agent-menu > summary::after {
	content: "▴";
	font-size: 11px;
	opacity: 0.7;
}

.tynkhano-agent-menu[open] > summary::after {
	content: "▾";
}

.tynkhano-agent-menu > summary:focus-visible {
	outline: 2px solid #2e74f0;
	outline-offset: 2px;
}

.tynkhano-agent-menu > ul {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.tynkhano-agent-menu > ul > li {
	margin: 0;
	padding: 0;
}

.tynkhano-agent-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: #1c1c1c;
	text-decoration: none;
}

.tynkhano-agent-menu a:hover,
.tynkhano-agent-menu a:focus-visible {
	background: #f1f1f1;
	outline: none;
}

@media print {
	.tynkhano-agent-menu {
		display: none;
	}
}
