/* =========================================================
   RankTools Woo Tabs – public / frontend stylesheet
   ========================================================= */

/* ── Call For Price wrapper ─────────────────────────────── */
.rt-cfp-wrap {
	margin: 20px 0 24px;
	background: #f4f4f5;
	border-radius: 12px;
	padding: 24px 28px 20px;
}

.rt-cfp-heading {
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
	margin: 0 0 16px;
}

/* ── Buttons row ────────────────────────────────────────── */
.rt-cfp-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rt-cfp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	flex: 1 1 0;
	min-width: 140px;
	padding: 15px 24px;
	border-radius: 10px;
	font-size: 1em;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.18s ease, transform 0.12s ease;
	line-height: 1.2;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}

.rt-cfp-btn:hover {
	filter: brightness(0.88);
	transform: translateY(-1px);
}

.rt-cfp-btn svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* Phone */
.rt-cfp-btn--phone {
	background-color: #1a1f2e;
	color: #fff;
}

.rt-cfp-btn--phone:hover {
	color: #fff;
}

/* WhatsApp */
.rt-cfp-btn--whatsapp {
	background-color: #2ecc5a;
	color: #fff;
}

.rt-cfp-btn--whatsapp:hover {
	color: #fff;
}

/* ── Footnote ───────────────────────────────────────────── */
.rt-cfp-footnote {
	margin: 12px 0 0;
	font-size: 0.82em;
	color: #9ca3af;
	text-align: center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media ( max-width: 520px ) {
	.rt-cfp-wrap {
		padding: 18px 16px 16px;
	}

	.rt-cfp-buttons {
		flex-direction: column;
	}

	.rt-cfp-btn {
		flex: none;
		width: 100%;
	}
}

/* =========================================================
   Category Description
   ========================================================= */

.rt-cat-desc-wrap {
	margin-bottom: 24px;
}

.rt-cat-desc-wrap--bottom {
	margin-top: 40px;
	margin-bottom: 0;
}

/* Collapsible text area */
.rt-cat-desc-inner {
	position: relative;
	transition: max-height 0.35s ease;
	overflow: hidden;
}

.rt-cat-desc-inner.is-collapsed {
	max-height: var( --rt-cd-max-height, 6.8em );
}

/* Fade overlay – only in collapsed state */
.rt-cat-desc-inner.is-collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5em;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.85) 55%,
		rgba(255, 255, 255, 1) 100%
	);
	pointer-events: none;
}

.rt-cat-desc-inner.is-expanded {
	max-height: none;
}

/* Toggle button */
.rt-cat-desc-toggle {
	display: block;
	margin: 12px auto 0;
	padding: 11px 32px;
	background-color: #cc1111;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.95em;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.18s ease, transform 0.12s ease;
}

.rt-cat-desc-toggle:hover {
	filter: brightness( 0.88 );
	transform: translateY( -1px );
	color: #fff;
}

/* ── Product card Read More link ────────────────────────── */
.rt-product-card-read-more {
	display: block;
	margin-top: 8px;
	padding: 7px 18px;
	background: #1a1f2e;
	color: #fff;
	font-size: 0.88em;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	transition: filter 0.18s ease, transform 0.12s ease;
}

.rt-product-card-read-more:hover {
	filter: brightness( 1.25 );
	transform: translateY( -1px );
	color: #fff;
}
