/* TSQ Product Download Button – by tonysquang */
.tsq-dl-box {
	--tsq-c1: #ff512f;
	--tsq-c2: #dd2476;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 18px 0 22px;
	clear: both;
}

.tsq-dl-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 30px 12px 12px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--tsq-c1) 0%, var(--tsq-c2) 100%);
	background-size: 160% 160%;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 10px 24px -10px var(--tsq-c2), inset 0 1px 0 rgba(255, 255, 255, .25);
	overflow: hidden;
	isolation: isolate;
	transition: transform .2s ease, box-shadow .25s ease, background-position .5s ease;
	animation: tsq-glow 2.8s ease-in-out infinite;
}

.tsq-dl-btn:hover,
.tsq-dl-btn:focus-visible {
	transform: translateY(-2px);
	background-position: 100% 0;
	box-shadow: 0 18px 32px -12px var(--tsq-c2), inset 0 1px 0 rgba(255, 255, 255, .3);
	color: #fff !important;
	outline: none;
}

.tsq-dl-btn:active { transform: translateY(0) scale(.98); }

.tsq-dl-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .2);
	backdrop-filter: blur(2px);
}

.tsq-dl-icon svg { width: 24px; height: 24px; }

.tsq-dl-btn:hover .tsq-arrow { animation: tsq-bounce .7s ease infinite; }

.tsq-dl-text {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.tsq-dl-label {
	font-size: 17px;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.tsq-dl-sub {
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	opacity: .9;
}

/* Vệt sáng chạy ngang nút */
.tsq-dl-shine {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: tsq-shine 3.2s ease-in-out infinite;
	pointer-events: none;
}

.tsq-dl-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 14px;
	background: rgba(127, 127, 127, .14);
	border: 1px solid rgba(127, 127, 127, .22);
	color: inherit;
}

.tsq-dl-meta svg { color: var(--tsq-c1); }

/* Trạng thái đang chuyển hướng */
.tsq-dl-btn.is-loading { pointer-events: none; opacity: .9; }
.tsq-dl-btn.is-loading .tsq-dl-icon svg { display: none; }
.tsq-dl-btn.is-loading .tsq-dl-icon::after {
	content: "";
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tsq-spin .7s linear infinite;
}

.tsq-dl-full .tsq-dl-btn { width: 100%; justify-content: center; }
.tsq-dl-full .tsq-dl-meta { margin: 0 auto; }

@media (max-width: 549px) {
	.tsq-dl-btn { width: 100%; }
	.tsq-dl-label { font-size: 16px; }
}

@keyframes tsq-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes tsq-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes tsq-spin { to { transform: rotate(360deg); } }
@keyframes tsq-glow {
	0%, 100% { box-shadow: 0 10px 24px -10px var(--tsq-c2), inset 0 1px 0 rgba(255, 255, 255, .25); }
	50% { box-shadow: 0 12px 30px -6px var(--tsq-c2), inset 0 1px 0 rgba(255, 255, 255, .25); }
}

@media (prefers-reduced-motion: reduce) {
	.tsq-dl-btn, .tsq-dl-shine, .tsq-dl-btn:hover .tsq-arrow { animation: none; }
}

/* Nút khoá – sản phẩm trả phí chưa thanh toán */
.tsq-dl-locked .tsq-dl-btn {
	background: linear-gradient(135deg, #3a3f4b 0%, #23262e 100%);
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .12);
	animation: none;
}
.tsq-dl-locked .tsq-dl-btn:hover { background: linear-gradient(135deg, var(--tsq-c1), var(--tsq-c2)); }
.tsq-dl-locked .tsq-dl-icon { background: rgba(255, 196, 0, .18); color: #ffc400; }
.tsq-dl-locked .tsq-dl-btn:hover .tsq-dl-icon { color: #fff; background: rgba(255, 255, 255, .2); }
.tsq-dl-login { flex-basis: 100%; font-size: 13.5px; opacity: .85; }
.tsq-dl-login a { font-weight: 700; text-decoration: underline; }
