/**
 * Liqi Bag responsive display fixes.
 * Scope: the WoodMart / Elementor single-product layout (ID 504) only.
 */

/*
 * Elementor set this action-button container to a fixed 500px at tablet size.
 * Its parent becomes narrower than 500px between 769px and 1024px, so the
 * container was being clipped. Keep its existing button styling, but make
 * the container follow the available column width.
 */
@media (min-width: 769px) and (max-width: 1024px) {
	.single-product .elementor-504 .elementor-element.elementor-element-771a0fa {
		--width: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

/*
 * Long product names should not occupy most of the desktop product summary.
 * Semantic H1 markup is untouched, so this has no SEO impact.
 */
@media (min-width: 1025px) {
	.single-product .elementor-504 .product_title {
		font-size: clamp(38px, 3.2vw, 46px) !important;
		line-height: 1.15 !important;
	}
}

/*
 * Product tabs previously formed a 496px-wide inline row on a phone. The
 * FAQ tab was therefore cut off. Compact the labels and keep horizontal
 * scrolling available for every tab on narrow screens.
 */
@media (max-width: 767px) {
	.single-product .elementor-504 .wd-nav-tabs {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.single-product .elementor-504 .wd-nav-tabs > li {
		flex: 0 0 auto;
	}

	.single-product .elementor-504 .wd-nav-tabs .wd-nav-link {
		padding: 10px 12px !important;
		font-size: 15px !important;
		line-height: 1.25 !important;
		white-space: nowrap;
	}
}

/* Bible organizer category: compact, readable intro without inline CSS. */
body.term-storage-bags-bible-covers .term-description,
body.term-storage-bags-bible-covers .woocommerce-products-header__description,
body.term-storage-bags-bible-covers .wd-term-desc {
	width: 100% !important;
	max-width: none !important;
}

.liqi-bible-intro,
.liqi-bible-intro * {
	box-sizing: border-box;
}

.liqi-bible-intro {
	width: 100%;
	color: #656565;
}

.liqi-bible-intro h1 {
	margin: 0 0 24px;
	color: #252525;
	font-size: 30px;
	line-height: 1.25;
}

.liqi-bible-layout {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 36px 60px;
	align-items: start;
}

.liqi-bible-intro p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.75;
}

.liqi-bible-intro h2 {
	margin: 0 0 18px;
	color: #252525;
	font-size: 23px;
	line-height: 1.3;
}

.liqi-bible-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.liqi-bible-options li {
	position: relative;
	margin: 0;
	padding-left: 19px;
	font-size: 15px;
	line-height: 1.55;
}

.liqi-bible-options li::before {
	position: absolute;
	top: 0;
	left: 0;
	color: #8f9b7d;
	font-weight: 700;
	content: "\2022";
}

.liqi-bible-contact {
	margin-top: 22px;
}

.liqi-bible-button {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 3px;
	background: #8f9b7d;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease;
}

.liqi-bible-button:hover,
.liqi-bible-button:focus-visible {
	background: #707b61;
	color: #fff !important;
}

@media (max-width: 900px) {
	.liqi-bible-layout {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

@media (max-width: 600px) {
	.liqi-bible-intro h1 {
		margin-bottom: 18px;
		font-size: 25px;
	}

	.liqi-bible-intro h2 {
		font-size: 21px;
	}

	.liqi-bible-options {
		grid-template-columns: 1fr;
		gap: 9px;
	}
}
