/* =============================================
   02_UI_COMPONENTS / ui-button-copy
   Кнопка «Скопировать».
   ============================================= */

.copybutton {
	background-color: var(--grayColor);
	border-radius: 10px;
	font-weight: 500;
	color: var(--greenColor4);
	transition: background-color 0.3s;
}
.copybutton > span {
	display: flex;
}
.copybutton > span.copybutton__copied {
	display: none;
}
.copybutton._copied > span.copybutton__copied {
	display: flex;
}
.copybutton img,
.copybutton svg {
	width: 24px;
	height: 24px;
	object-fit: contain;
}
._copied .copybutton__notcopied {
	display: none;
}
.copybutton[disabled] {
	color: var(--greenColor5);
	pointer-events: none;
}
.copybutton[disabled] svg path {
	stroke: var(--greenColor5);
}

/* ── Responsive ── */

@media (max-width: 63.99875em) {
	.copybutton {
		padding: 10px;
	}
	.copybutton > span span {
		display: none;
	}
}
@media (min-width: 63.99875em) {
	.copybutton {
		padding: 14px 28px;
	}
	.copybutton > span {
		gap: 8px;
		justify-content: center;
		align-items: center;
	}
}

/* ── Hover ── */

@media (any-hover: hover), (pointer: fine) {
	html:not([data-fls-touch]) .copybutton:hover {
		background-color: var(--greenColor6);
	}
}
