/* KSP Multi-Format Book Download — Burgundy, Gold & Parchment Dharma Theme */
.ksp-dl-box {
	margin: 10px 0 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ksp-dl-primary-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ksp-pdf-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 4px;
	border: 1.5px solid #6b4423;
	background: #8b0000;
	color: #fdfbf7 !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(139, 0, 0, 0.16);
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	cursor: pointer;
}

.ksp-pdf-cta:hover,
.ksp-pdf-cta:focus-visible {
	background: #6d0000;
	border-color: #c5a059;
	color: #ffffff !important;
	outline: 2px solid #8b0000;
	outline-offset: 2px;
}

.ksp-pdf-cta:active {
	transform: translateY(1px);
}

.ksp-pdf-ico {
	flex: 0 0 auto;
}

.ksp-dl-alts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.ksp-dl-alts-label {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13px;
	color: #6b5643;
	margin-right: 2px;
}

.ksp-dl-pill {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 11px;
	border-radius: 999px;
	border: 1px solid #c5a059;
	background: #fdfbf7;
	color: #6b3b1e !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ksp-dl-pill:hover,
.ksp-dl-pill:focus-visible {
	background: #8b0000;
	border-color: #8b0000;
	color: #fdfbf7 !important;
}

.ksp-fb-community-row {
	margin-top: 4px;
}

.ksp-fb-community-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px dashed #c5a059;
	background: #fbf6ec;
	color: #6b3b1e !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ksp-fb-community-link:hover {
	background: #f3e6cf;
	border-color: #8b0000;
	color: #8b0000 !important;
}

/* Nut noi "Tai sach" khi dang doc trong trinh lat trang Odrin (.book-container.showBook) */
.ksp-pdf-fab-wrap {
	position: fixed;
	left: 16px;
	bottom: 18px;
	z-index: 99992;
	display: none;
}

body.body--disabled .ksp-pdf-fab-wrap,
.ksp-pdf-fab-wrap.is-visible {
	display: block;
}

.ksp-pdf-fab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1.5px solid #c5a059;
	background: #8b0000;
	color: #fdfbf7 !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.ksp-pdf-fab:hover {
	background: #6d0000;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.ksp-pdf-fab-menu {
	position: absolute;
	left: 0;
	bottom: 50px;
	min-width: 210px;
	padding: 6px;
	border-radius: 10px;
	border: 1.5px solid #c5a059;
	background: #fdfbf7;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	display: none;
	flex-direction: column;
	gap: 4px;
}

.ksp-pdf-fab-wrap.is-open .ksp-pdf-fab-menu {
	display: flex;
}

.ksp-pdf-fab-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 7px;
	color: #2c1e14 !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ksp-pdf-fab-item:hover {
	background: #8b0000;
	color: #fdfbf7 !important;
}

.ksp-pdf-fab-item small {
	font-weight: 400;
	opacity: 0.78;
}

.ksp-pdf-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 99999;
	background: #2c1e14;
	color: #fdfbf7;
	border: 1px solid #c5a059;
	border-radius: 999px;
	padding: 10px 18px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ksp-pdf-toast.is-show {
	opacity: 1;
}

@media (max-width: 480px) {
	.ksp-pdf-fab {
		padding: 8px 12px;
		font-size: 13px;
	}
}
