/* ==========================================================================
   NUT CHIA SE MANG XA HOI                                    01/09/2026
   Dung kem library/chia_se.php + js/chia-se.js.
   Xem ghi chu day du (vi sao bo 3 SDK cu) trong library/chia_se.php.
   ========================================================================== */

.cs-hang {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	/* Ban cu de style="float:right" nen tren dien thoai no do len chu ben
	   canh. Khoi nay luon dung rieng mot hang. */
	float: none;
	clear: both;
}
.cs-nhan {
	margin-right: 2px;
	font-size: 13px;
	font-weight: 600;
	color: #777;
}

.cs-nut {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #999;
	color: #fff;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, filter .12s ease;
	-webkit-appearance: none;
}
.cs-nut:hover,
.cs-nut:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	filter: brightness(1.1);
}
.cs-nut:active { transform: translateY(0); }
.cs-nut img { display: block; width: 18px; height: auto; }

/* Mau chinh thuc cua tung mang */
.cs-facebook { background: #1877f2; }
.cs-x        { background: #000; }
.cs-linkedin { background: #0a66c2; }
.cs-email    { background: #6b7280; }
.cs-chep     { background: #374151; }

/* Bao "Da chep" hien 2 giay sau khi bam nut chep dia chi */
.cs-chep { position: relative; }
.cs-chep.cs-xong { background: #16a34a; }
.cs-chep .cs-bao {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 9px;
	border-radius: 4px;
	background: #16a34a;
	color: #fff;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}
.cs-chep .cs-bao::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: #16a34a;
}

@media (max-width: 767px) {
	.cs-hang { gap: 7px; margin-bottom: 16px; }
	.cs-nhan { width: 100%; margin-bottom: 2px; font-size: 12px; }
	/* 36px thay vi 34px: ngon tay to hon con tro chuot. */
	.cs-nut { width: 36px; height: 36px; font-size: 16px; }
}
@media (max-width: 360px) {
	.cs-nut { width: 33px; height: 33px; font-size: 15px; }
	.cs-hang { gap: 6px; }
}
