/* KSP Multi-Format Book Download v2 — Đồng bộ 100% nút ĐỌC KINH, cùng 1 hàng, ẩn Đánh giá & chuẩn theme */

/* 1. Ẩn hoàn toàn khu vực Đánh giá (Reviews) trên trang chi tiết kinh sách */
.single-product #reviews,
.single-product .reviews_tab,
.single-product #tab-reviews,
.single-product .woocommerce-product-rating,
.single-product .woocommerce-Reviews {
	display: none !important;
}

/* 2. Hàng nút hành động chính: ĐỌC KINH + TẢI SÁCH VỀ MÁY cùng 1 hàng */
.single-product .ksp-cta-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 14px !important;
	margin: 0 0 14px !important;
}

.single-product .ksp-cta-row > .btn.is-page-flip,
.single-product .single-product-summary > .btn.is-page-flip {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 32px !important;
	margin: 0 !important;
	background-color: #8b5a2b !important;
	color: #fff !important;
	border-radius: 25px !important;
	border: none !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	box-shadow: 0 5px 15px rgba(139, 90, 43, 0.36) !important;
	transition: all 0.25s ease !important;
}

.single-product .ksp-cta-row > .btn.is-page-flip i.icon-book-open {
	display: none !important;
}

.single-product .ksp-cta-row > .btn.is-page-flip:hover {
	background-color: #a06b35 !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 20px rgba(139, 90, 43, 0.46) !important;
}

.ksp-dl-box {
	margin: 10px 0 12px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 10px !important;
}

.ksp-dl-dropdown {
	position: relative !important;
	display: inline-block !important;
	max-width: 100% !important;
}

/* Nút TẢI SÁCH VỀ MÁY — giống hệt style nút ĐỌC KINH */
.single-product button.ksp-dl-toggle,
button.ksp-dl-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 28px !important;
	margin: 0 !important;
	border-radius: 25px !important;
	border: none !important;
	background: #8b5a2b !important;
	background-color: #8b5a2b !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: 0 5px 15px rgba(139, 90, 43, 0.36) !important;
	transition: all 0.25s ease !important;
}

.single-product button.ksp-dl-toggle:hover,
.single-product button.ksp-dl-toggle:focus-visible,
button.ksp-dl-toggle:hover,
button.ksp-dl-toggle:focus-visible {
	background: #a06b35 !important;
	background-color: #a06b35 !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 20px rgba(139, 90, 43, 0.46) !important;
	outline: none !important;
}

.ksp-dl-caret {
	flex: 0 0 auto !important;
	transition: transform 0.2s ease !important;
}

.ksp-dl-dropdown.is-open .ksp-dl-caret {
	transform: rotate(180deg) !important;
}

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

/* Menu chọn định dạng xổ nổi gọn dưới nút TẢI SÁCH VỀ MÁY */
.ksp-dl-popover {
	position: absolute !important;
	top: calc(100% + 10px) !important;
	left: 0 !important;
	min-width: 310px !important;
	max-width: calc(100vw - 32px) !important;
	padding: 10px !important;
	border-radius: 12px !important;
	border: 1px solid #e2d5be !important;
	background: #fdfbf7 !important;
	box-shadow: 0 14px 34px rgba(45, 30, 12, 0.22) !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	z-index: 9999 !important;
}

.ksp-dl-popover[hidden] {
	display: none !important;
}

.ksp-dl-pop-title {
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	color: #7a6448 !important;
	padding: 4px 10px 2px !important;
}

.ksp-dl-opt {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	border: 1px solid #eadfcd !important;
	background: #fff !important;
	color: #3a2a1a !important;
	font-size: 13.5px !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease !important;
}

.ksp-dl-opt:hover,
.ksp-dl-opt:focus-visible {
	background: #f5ecdc !important;
	border-color: #8b5a2b !important;
	color: #5c3716 !important;
	transform: translateX(2px) !important;
}

.ksp-dl-opt--primary {
	border-color: #d6b68c !important;
	background: #fbf5ea !important;
}

.ksp-dl-opt small {
	flex: 0 0 auto !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #8b5a2b !important;
	white-space: nowrap !important;
}

.ksp-dl-opt.is-busy {
	opacity: 0.72 !important;
	cursor: wait !important;
}

.ksp-fb-community-row {
	margin-top: 2px !important;
}

.ksp-fb-community-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 7px 14px !important;
	border-radius: 20px !important;
	border: 1px dashed #c8b08a !important;
	background: #faf6ee !important;
	color: #6b4823 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

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

/* Nút tải nổi trong trình đọc lật trang Odrin (tách khỏi nút LiveChat góc dưới trái) */
.ksp-pdf-fab-wrap {
	position: fixed !important;
	left: 88px !important;
	bottom: 20px !important;
	z-index: 99999 !important;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.ksp-pdf-fab-wrap.is-visible {
	display: flex !important;
}

.ksp-pdf-fab {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	padding: 10px 18px !important;
	border-radius: 999px !important;
	border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
	background: #8b5a2b !important;
	color: #fff !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
}

.ksp-pdf-fab:hover {
	background: #a06b35 !important;
}

.ksp-pdf-fab-menu {
	display: none;
	min-width: 220px;
	padding: 6px;
	border-radius: 10px;
	border: 1px solid #d9c8ab;
	background: #fdfbf7;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	flex-direction: column;
	gap: 4px;
}

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

.ksp-pdf-fab-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	padding: 8px 10px !important;
	border-radius: 7px !important;
	color: #3a2a1a !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.ksp-pdf-fab-item:hover {
	background: #f3e8d5 !important;
	color: #5c3716 !important;
}

.ksp-pdf-fab-item small {
	font-size: 11.5px;
	color: #8b5a2b;
}

@media (max-width: 560px) {
	.ksp-pdf-fab-wrap {
		left: 16px !important;
		bottom: 86px !important;
	}
	.single-product .ksp-cta-row {
		gap: 10px !important;
	}
	.single-product .ksp-cta-row > .btn.is-page-flip,
	.single-product button.ksp-dl-toggle {
		padding: 0 20px !important;
		font-size: 13.5px !important;
		height: 45px !important;
		min-height: 45px !important;
	}
	.ksp-dl-popover {
		left: 0 !important;
		min-width: 280px !important;
	}
}

/* Đồng bộ mục "Giới thiệu chung", "Mục lục", "Phần mở đầu" & khung SEO theo theme giấy cổ / nâu trầm */
.single-product .SingleProductInfoBox {
	margin: 12px 0 34px !important;
	padding: 28px 34px !important;
	background: #faf6ee !important;
	border: 1px solid #e6dac8 !important;
	border-left: 4px solid #8b5a2b !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 18px rgba(92, 55, 22, 0.05) !important;
}
.single-product .SingleProductInfoBox .ElementHeading,
.single-product .ksp-book-text .ElementHeading {
	margin: 0 0 16px !important;
	padding: 0 0 10px !important;
	border-bottom: 1px solid #e6dac8 !important;
	text-align: left !important;
}
.single-product .SingleProductInfoBox .ElementHeading .element-title,
.single-product .ksp-book-text .ElementHeading .element-title {
	font-family: "Lora", "Playfair Display", Georgia, "Times New Roman", serif !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #5c3716 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	text-transform: none !important;
}
.single-product .SingleProductInfoBox .ElementHeading .element-title::after,
.single-product .SingleProductInfoBox .ElementHeading .element-title::before {
	display: none !important;
}
.single-product .info-box-panel-description.special-first-letter > p:first-of-type::first-letter {
	font-family: "Lora", Georgia, serif !important;
	color: #8b5a2b !important;
	font-weight: 700 !important;
}
.single-product .info-box-panel-description p {
	font-family: "Lora", Georgia, "Times New Roman", serif !important;
	font-size: 16.5px !important;
	line-height: 1.85 !important;
	color: #463528 !important;
	margin: 0 0 12px !important;
}
.single-product .info-box-panel-description p:last-child {
	margin-bottom: 0 !important;
}
.single-product .ksp-seo-info-card {
	background: #faf6ee !important;
	border: 1px solid #e6dac8 !important;
	border-radius: 10px !important;
	font-family: "Lora", Georgia, "Times New Roman", serif !important;
	color: #463528 !important;
}
.single-product .ksp-seo-info-card h2 {
	color: #5c3716 !important;
	border-bottom-color: #e6dac8 !important;
	font-family: "Lora", Georgia, serif !important;
	font-size: 20px !important;
}
.single-product .ksp-seo-info-card a {
	color: #8b5a2b !important;
}
@media (max-width: 768px) {
	.single-product .SingleProductInfoBox {
		padding: 20px 18px !important;
	}
	.single-product .SingleProductInfoBox .ElementHeading .element-title,
	.single-product .ksp-book-text .ElementHeading .element-title {
		font-size: 20px !important;
	}
}
