/* Savol matni va ikonka bitta flex-element bo'lib, chapda birga turadi */
.faq-sub__title {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.faq-copy-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	vertical-align: middle;
	opacity: .6;
	transition: opacity .2s;
}
.faq-copy-link:hover,
.faq-copy-link.is-copied {
	opacity: 1;
}

/* Ikonka ustida chiqadigan "Nusxalandi" yozuvi */
.faq-copy-link::after {
	content: attr(data-copied);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translate(-50%, 4px);
	padding: 4px 10px;
	border-radius: 6px;
	background: #2ec995;
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, transform .2s, visibility .2s;
}
.faq-copy-link.is-copied::after {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* Pastda markazda chiqadigan toast (JS uni body ichiga ko'chiradi) */
.faq-copied-toast {
	position: fixed;
	left: 50%;
	bottom: 30px;
	transform: translate(-50%, 20px);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 10px;
	background: #1f2937;
	color: #fff;
	font-size: 15px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .25s, transform .25s, visibility .25s;
}
.faq-copied-toast::before {
	content: "¹3";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #2ec995;
	font-size: 12px;
}
.faq-copied-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.faq-sub {
	scroll-margin-top: 100px;
}
/* Havola orqali ochilgan savolni ajratib ko'rsatish: yashil ramka + pulslanuvchi nur */
.faq-sub--highlight {
	animation: faq-sub-pulse 1.2s ease-out 3;
	box-shadow: 0 0 0 2px #2ec995;
	transition: box-shadow .6s ease;
}
.faq-sub--highlight > summary {
	color: #2ec995;
}
@keyframes faq-sub-pulse {
	0% {
		box-shadow: 0 0 0 2px #2ec995, 0 0 0 0 rgba(46, 201, 149, .45);
		background-color: #effbf6;
	}
	70% {
		box-shadow: 0 0 0 2px #2ec995, 0 0 0 14px rgba(46, 201, 149, 0);
		background-color: #fff;
	}
	100% {
		box-shadow: 0 0 0 2px #2ec995, 0 0 0 0 rgba(46, 201, 149, 0);
		background-color: #fff;
	}
}
@media (prefers-reduced-motion: reduce) {
	.faq-sub--highlight {
		animation: none;
	}
}
