/* Theme Detector — design tokens (override on :root / body from theme or PHP) */
:root {
	/* Brand — neutral black / gray (no purple) */
	--kthb-primary: #111111;
	--kthb-primary-hover: #3f3f3f;
	/* Keep in sync with --kthb-primary when overriding (for focus ring / soft fills). */
	--kthb-primary-rgb: 17, 17, 17;

	/* Surfaces */
	--kthb-surface: #ffffff;
	--kthb-surface-muted: #f8fafc;
	--kthb-surface-subtle: #f1f5f9;
	--kthb-surface-elevated: #e2e8f0;

	/* Borders */
	--kthb-border: #e2e8f0;
	--kthb-border-muted: #f1f5f9;
	--kthb-border-faint: #eeeeee;
	--kthb-border-strong: #cbd5e1;
	--kthb-border-input-focus: #59595b;
	--kthb-border-image: #efefef;

	/* Text */
	--kthb-text: #1e293b;
	--kthb-text-secondary: #334155;
	--kthb-text-body: #475569;
	--kthb-text-muted: #64748b;
	--kthb-text-faint: #94a3b8;
	--kthb-text-on-primary: #ffffff;
	--kthb-text-input: #222222;
	--kthb-text-strong: #111111;
	--kthb-text-ai: #374151;
	--kthb-text-ai-muted: #4b5563;

	/* Status & accents */
	--kthb-danger: #dc2626;
	--kthb-danger-bg: #fef2f2;
	--kthb-danger-border: #fecaca;
	--kthb-sale: #f55157;
	--kthb-success-bg: #e6f9ee;
	--kthb-success-text: #0d7a3e;
	--kthb-success-bright: #15803d;
	--kthb-warning-bg: #fef9c3;
	--kthb-warning-border: #ca8a04;
	--kthb-warning-text: #854d0e;
	--kthb-warning-strong: #92400e;
	--kthb-rating: #f59e0b;
	--kthb-stat-down: #b91c1c;

	/* Header / inverse surfaces on gradient */
	--kthb-on-gradient-fill: rgba(255, 255, 255, 0.15);
	--kthb-on-gradient-border-soft: rgba(255, 255, 255, 0.3);
	--kthb-on-gradient-border-medium: rgba(255, 255, 255, 0.35);

	/* Shadows & focus (primary-tinted via RGB) */
	--kthb-shadow-layer-1: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
	--kthb-shadow-layer-2: 0 4px 12px rgba(0, 0, 0, 0.08);
	--kthb-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.08);
	--kthb-focus-ring: 0 0 0 3px rgba(var(--kthb-primary-rgb), 0.15);
	--kthb-primary-border-soft: rgba(var(--kthb-primary-rgb), 0.35);
	--kthb-primary-fill-soft: rgba(var(--kthb-primary-rgb), 0.08);

	/* Media */
	--kthb-media-letterbox: #000000;
	--kthb-avatar-placeholder: #cccccc;

	/* Reviews collapsed fade */
	--kthb-reviews-fade-transparent: rgba(250, 250, 249, 0);
	--kthb-reviews-fade-solid: #fafaf9;
}


.kthb-detector *,
.kthb-detector *::before,
.kthb-detector *::after {
	box-sizing: border-box;
}


#sticky-purchase-column {
	position: sticky;
	top: 40px;
}


/* ── Card ── */

.kthb-detector__card {
	background: var(--kthb-surface);
	border-radius: 16px;
	padding: 2.5rem 2rem 2rem;
}

.kthb-detector__header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.kthb-detector__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.kthb-detector__subtitle {
	font-size: 0.95rem;
	margin: 0;
}

.kthb-detector__counter {
	font-size: 0.85rem;
	margin: 0.5rem 0 0;
}

/* ── Form ── */

.kthb-detector__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 720px;
	margin: 0 auto;
}

.kthb-detector__input-group {
	display: flex;
	gap: 0.5rem;
}

.kthb-detector__input {
	flex: 1;
	padding: 0.85rem 1rem !important;
	font-size: 1rem !important;
	border: 1px solid var(--kthb-border);
	border-radius: 10px !important;
	background: var(--kthb-surface);
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	color: var(--kthb-text-input) !important;
	direction: ltr;
	text-align: end;
}

.kthb-detector__input:focus {
	border-color: var(--kthb-border-input-focus);
	box-shadow: var(--kthb-focus-ring);
	background: var(--kthb-surface);
}

.kthb-detector__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	color: var(--kthb-text-on-primary);
	background: var(--kthb-primary);
	border: none;
	border-radius: 10px !important;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
	min-width: 120px;
}

.kthb-detector__button:hover {
	background: var(--kthb-primary-hover);
}

.kthb-detector__button:active {
	transform: scale(0.97);
}

.kthb-detector__button[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

.kthb-detector__button--same-url:not([disabled]) {
	opacity: 0.88;
}

.kthb-detector__same-url-hint {
	margin: 0.35rem 0 0;
	padding: 0 0.15rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--kthb-text-muted, rgba(0, 0, 0, 0.55));
	text-align: center;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

/* ── Spinner ── */

.kthb-detector__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--kthb-on-gradient-border-soft);
	border-top-color: var(--kthb-text-on-primary);
	border-radius: 50%;
	animation: kthb-spin 0.6s linear infinite;
}

.kthb-detector__button--loading .kthb-detector__button-text {
	display: none;
}

.kthb-detector__button--loading .kthb-detector__spinner {
	display: inline-block;
}

@keyframes kthb-spin {
	to { transform: rotate(360deg); }
}

/* execution: execute — no tall empty box before the user clicks Detect */
.kthb-detector__turnstile--execute {
	min-height: 0;
}

.kthb-detector__turnstile {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	box-sizing: border-box;
	padding: 0.25rem 0 0;
}

.kthb-detector__turnstile > div {
	max-width: 100%;
}

/* ── Error ── */

.kthb-detector__error {
	margin-top: 0;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: var(--kthb-danger);
	background: var(--kthb-danger-bg);
	border: 1px solid var(--kthb-danger-border);
	border-radius: 8px;
}


.kthb-detector-inner {
	max-width: 1350px;
	margin: 3rem auto;

	@media (max-width: 600px) {
		padding: 1.5rem 1.25rem 1.25rem;
	}
}

/* ── Results ── */

.kthb-detector__results {
	animation: kthb-fadeIn 0.3s ease;
	scroll-margin-top: 1.25rem;
}

@keyframes kthb-fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}


/* ── Result header ── */

.kthb-result__header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem 2rem;
	margin-bottom: 2.5rem;
	background: linear-gradient(135deg, var(--kthb-primary) 0%, var(--kthb-primary-hover) 100%);
	color: var(--kthb-text-on-primary);
	border-radius: 16px;
}

img.kthb-result__logo {
	max-width: 150px !important;
	max-height: 60px;
	border-radius: 12px !important;
	object-fit: contain;
	padding: 10px;
	background: var(--kthb-on-gradient-fill);
	flex-shrink: 0;
}

.kthb-result__store-info {
	flex: 1;
	min-width: 0;
}

.kthb-result__store-name {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
}

.kthb-result__store-name a {
	color: inherit;
	text-decoration: none;
}

.kthb-result__store-name a:hover {
	text-decoration: underline;
	text-decoration-style: dotted;
}

.kthb-result__description {
	font-size: 0.9rem;
	line-height: 1.55;
	color: inherit;
	opacity: 0.9;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0;
}

.kthb-result__header a:not(.kthb-result__badge) {
	color: inherit;
}

.kthb-result__badge {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 16px;
	background: var(--kthb-bg, var(--kthb-surface));
}

a.kthb-result__badge {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

a.kthb-result__badge:hover {
	opacity: 0.8;
}

.kthb-result__badge-label {
	font-size: 0.80rem;
	font-weight: 600;
	opacity: 0.85;
	white-space: nowrap;
	color: var(--kthb-primary);
}

img.kthb-result__badge-logo {
	width: 100% !important;
	max-width: 100px !important;
	max-height: 50px !important;
	object-fit: contain;
}

.kthb-result__badge--cached {
	background: var(--kthb-on-gradient-fill);
	font-size: 0.7rem;
}

/* ── Sections ── */

.kthb-result__body {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 4rem;
}

.kthb-result__col-store {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--kthb-surface);
	border-radius: 16px;
	box-shadow: var(--kthb-shadow-layer-1);
	overflow: hidden;
}

.kthb-result__col-store > .kthb-result__section {
	padding: 1rem 2rem;
	border-bottom: 1px solid var(--kthb-border-muted);

	&:first-child {
		padding-top: 2rem;
	}
	
	&:last-child {
		border-bottom: none;
		padding-bottom: 2rem;
	}
}

.kthb-result__col-store > :last-child {
	border-bottom: none;
}

.kthb-result__col-theme {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.kthb-result__col-store > .kthb-result__section:has(.kthb-result__app-card) {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;

	.kthb-result__section-title {
		margin-bottom: 0;
	}
}

/* App cards: single link block (detector JSON omits coupons, samples, author, etc.) */
.kthb-result__app-card {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.kthb-result__app-card-link {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0.6rem;
	background: var(--kthb-surface-muted);
	border-radius: 18px;
	border: 1px solid var(--kthb-border);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kthb-result__app-card-link:hover {
	border-color: var(--kthb-border-strong);
	box-shadow: var(--kthb-shadow-card);
}

.kthb-result__app-card-link:focus-visible {
	outline: 2px solid var(--kthb-primary);
	outline-offset: 2px;
}

.kthb-result__app-card-top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
}

.kthb-result__app-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	text-align: start;
}

.kthb-result__app-card-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--kthb-primary);
	line-height: 1.35;
	display: block;
}

.kthb-result__app-card-link:hover .kthb-result__app-card-title {
	color: var(--kthb-primary-hover);
	text-decoration: underline;
}

.kthb-result__app-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.65rem;
}

.kthb-result__app-card-rating-stars {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1px;
	max-width: 100%;
	font-size: 0.8rem;
	color: var(--kthb-rating);
	white-space: normal;
}

.kthb-result__app-card-price .kthb-result__theme-price,
.kthb-result__app-card-price .kthb-result__app-price {
	margin-top: 0;
	font-size: 0.82rem;
	gap: 0.35rem;
}

.kthb-result__app-card-price .kthb-result__app-starts {
	font-size: 0.78rem;
}

.kthb-result__app-card-media {
	flex-shrink: 0;
	display: block;
	line-height: 0;
	align-self: flex-start;
}

img.kthb-result__app-card-thumb {
	width: 70px;
	height: 70px;
	border-radius: 14px !important;
	object-fit: cover;
	border: 1px solid var(--kthb-border) !important;
	background-color: var(--kthb-surface);
}

/* Suggested apps (and history): same cards, 3-column grid */
.kthb-result__app-grid {
	display: grid;
	gap: 0.6rem;
	align-items: stretch;
}

.kthb-result__app-grid--3col {
	grid-template-columns: repeat(3, 1fr);
}

.kthb-result__app-grid .kthb-result__app-card {
	min-width: 0;
}

.kthb-samples--suggested-apps {
	padding-top: 2rem;
}

.kthb-result__app-starts {
	font-weight: 600;
	margin-right: 0.35rem;
	color: var(--kthb-text-muted);
	font-size: 0.85rem;
}

.kthb-result__app-period {
	margin-left: 0.15rem;
	color: var(--kthb-text-muted);
	font-size: 0.9rem;
}

.kthb-result__section {
	border-bottom: 1px solid var(--kthb-border-muted);
	padding-bottom: 1.25rem;
}

.kthb-result__section:last-child {
	border-bottom: none;
}

.kthb-result__section-title {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kthb-text-faint);
	margin: 0 0 0.75rem;
}

.kthb-result__payment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kthb-result__payment-item {
	align-items: center;
	border-radius: 5px;
	display: flex;
	height: 2rem;
	justify-content: center;
	width: 4rem;
	border: 1px solid var(--kthb-border-faint);
	background-color: var(--kthb-surface);
	padding: .25rem;
}

.kthb-result__payment-icon {
	width: 40px;
	height: 40px;
	object-fit: contain;
	color: var(--kthb-text-secondary);
}

/* Shared chips: currencies, tracking pixels, social links */
.kthb-result__chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kthb-result__chip {
	display: inline-block;
	padding: 0 0.85rem;
	border-radius: 999px;
	background: var(--kthb-surface-subtle);
	color: var(--kthb-text-secondary);
	font-size: 0.75rem;
}

.kthb-result__chip--link {
	text-decoration: none;
	font-weight: 500;
	transition: background 0.2s;
	text-transform: capitalize;
}

.kthb-result__chip--link:hover {
	background: var(--kthb-surface-elevated);
}

/* ── Theme info ── */

.kthb-result__theme-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.kthb-result__theme-label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--kthb-text);
}


/* ── Matched theme ── */

.kthb-result__theme-matched {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

img.kthb-result__theme-thumb {
	width: 100% !important;
	border-radius: 16px !important;
	object-fit: cover !important;
	height: 400px !important;
	border: 1px solid var(--kthb-border-image) !important;
}

.kthb-result__theme-matched-info {
	display: flex;
	flex-direction: column;
	gap: 0.10rem;
}

.kthb-result__theme-link {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--kthb-primary);
	text-decoration: none;
	transition: color 0.2s;
}

a.kthb-result__theme-link:hover {
	color: var(--kthb-primary-hover);
}

.kthb-result__theme-matched-details {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
}

.kthb-result__theme-author {
	font-size: 0.875rem;
	color: var(--kthb-text-muted);
}

.kthb-result__theme-rating {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem;
	max-width: 100%;
	font-size: 0.875rem;
	color: var(--kthb-rating);
}

/* Rating row: RTL pages place the star group on the right (first full star at inline-end) */
.kthb-rating-stars-block {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	unicode-bidi: isolate;
}

html[dir="rtl"] .kthb-rating-stars-block,
body.rtl .kthb-rating-stars-block {
	direction: rtl;
}

/* Unified SVG stars (compare table, detector, app/theme cards, shortcodes) */
.kthb-compare__stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	flex-wrap: wrap;
	color: var(--kthb-rating);
}

html[dir="rtl"] .kthb-compare__stars,
body.rtl .kthb-compare__stars {
	direction: rtl;
}

.kthb-compare__stars svg {
	display: block;
	flex-shrink: 0;
}

/* Mirror half-star so filled side faces full stars when the SVG row is RTL */
html[dir="rtl"] .kthb-compare__star--half,
body.rtl .kthb-compare__star--half {
	transform: scaleX(-1);
}

.kthb-compare__rating-num {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--kthb-text-body);
	margin-inline-end: 0.25rem;
	direction: ltr;
	unicode-bidi: embed;
}

.kthb-compare__rating-count {
	font-size: 0.8rem;
	color: var(--kthb-text-faint);
	margin-inline-end: 0.35rem;
	direction: ltr;
	unicode-bidi: embed;
}

/* ── Category Tags ── */
.kthb-result__theme-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.35rem;
}

.kthb-result__theme-tag {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--kthb-text-body);
	background: var(--kthb-surface-subtle);
	border-radius: 9999px;
	white-space: nowrap;
}

a.kthb-result__theme-tag {
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

a.kthb-result__theme-tag:hover {
	color: var(--kthb-primary);
	background: var(--kthb-surface-elevated);
}

/* ── Price ── */
.kthb-result__theme-price {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	margin-top: 0.15rem;
}
.kthb-result__theme-price-old {
	color: var(--kthb-text-faint);
	text-decoration: line-through;
	font-size: 0.85rem;
}
.kthb-result__theme-price-current {
	color: var(--kthb-sale);
	font-weight: 700;
}

.kthb-result__theme-price-free {
	display: inline-block;
	padding: 2px 12px;
	background: var(--kthb-success-bg);
	color: var(--kthb-success-text);
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 4px;
}

/* ── Coupon code ── */
.kthb-result__theme-coupon {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: var(--kthb-warning-bg);
	border: 1px dashed var(--kthb-warning-border);
	border-radius: 6px;
}

.kthb-result__theme-coupon-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kthb-warning-text);
	white-space: nowrap;
}

.kthb-result__theme-coupon-code {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--kthb-warning-strong);
	letter-spacing: 0.05em;
	user-select: all;
}

.kthb-result__theme-coupon-discount {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--kthb-text-on-primary);
	background: var(--kthb-danger);
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	white-space: nowrap;
}

/* ── CTA button ── */
.kthb-result__theme-cta-group {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.5rem;
}

/* Product shortcode / layouts: secondary CTA above primary (full-width stack). */
.kthb-result__theme-cta-group--stacked {
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

.kthb-result__theme-cta {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.65rem 1rem;
	background: var(--kthb-primary);
	border: 1px solid var(--kthb-primary);
	color: var(--kthb-text-on-primary);
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	align-items: center;
	text-decoration: none;
	border-radius: 10px;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.kthb-result__theme-cta:hover {
	background: var(--kthb-primary-hover);
	border-color: var(--kthb-primary-hover);
	color: var(--kthb-text-on-primary);
}

.kthb-result__theme-cta--secondary {
	background: var(--kthb-bg);
	color: var(--kthb-primary);
	border-color: var(--kthb-bg);
}
.kthb-result__theme-cta--secondary:hover {
	background: var(--kthb-primary);
	color: var(--kthb-text-on-primary);
	border-color: var(--kthb-primary);
}

.kthb-result__theme-cta-sub {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0.9;
	margin-top: 0.15rem;
}

/* ── Color palette ── */

.kthb-result__color-list {
	grid-template-columns: 1fr 1fr;
	display: grid;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.kthb-result__color-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.kthb-result__color-swatch {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid var(--kthb-border-faint);
	flex-shrink: 0;
}

.kthb-result__color-info {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.kthb-result__color-label {
	font-size: 0.78rem;
	color: var(--kthb-text-body);
	line-height: 1.2;
}

.kthb-result__color-hex {
	font-size: 0.75rem;
	font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
	color: var(--kthb-primary);
	background: none;
	padding: 0;
	line-height: 1.2;
}

/* ── Tags list (apps, features, payments) ── */

.kthb-result__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.kthb-result__tag {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	font-size: 0.82rem;
	background: var(--kthb-surface-subtle);
	color: var(--kthb-text-body);
	border-radius: 6px;
}

/* ── Contact channels ── */
.kthb-result__contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.kthb-result__contact-item {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.kthb-result__contact-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kthb-text-muted);
	text-transform: capitalize;
	min-width: 70px;
}

.kthb-result__contact-value {
	font-size: 0.85rem;
	color: var(--kthb-text-secondary);
	text-decoration: none;
	word-break: break-all;
}

a.kthb-result__contact-value:hover {
	color: var(--kthb-primary);
	text-decoration: underline;
}

/* ── Description ── */

.kthb-result__old-theme-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--kthb-text);
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

/* ── Sample stores ── */

.kthb-samples {
	padding: 3rem 0;
}

.kthb-samples__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--kthb-text-secondary);
	margin: 0 0 1rem;
}

.kthb-samples__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.kthb-samples__head .kthb-samples__title {
	margin: 0;
}

.kthb-samples__title-link {
	color: inherit;
	text-decoration: none;
}

.kthb-samples__title-link:hover {
	color: var(--kthb-primary);
}

.kthb-samples__more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kthb-primary);
	text-decoration: none;
	border: 1px solid var(--kthb-primary-border-soft);
	border-radius: 8px;
	background: var(--kthb-surface);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.kthb-samples__more-btn:hover {
	background: var(--kthb-primary-fill-soft);
	border-color: var(--kthb-primary);
	color: var(--kthb-primary);
}

.kthb-samples__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}

/* Under matched theme: 6 stores max, 3 per row × 2 rows */
.kthb-samples__grid--3col {
	grid-template-columns: repeat(3, 1fr);
}

.kthb-samples--in-theme {
	padding-bottom: 0;
}

.kthb-samples--in-theme .kthb-samples__title {
	color: var(--kthb-text-faint);
}

.kthb-samples--in-theme .kthb-samples__title-link {
	color: var(--kthb-text-faint);
}

.kthb-samples--in-theme .kthb-samples__title-link:hover {
	color: var(--kthb-primary);
}

.kthb-samples__card {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--kthb-border);
	text-decoration: none;
	color: inherit;
	background-color: var(--kthb-surface);
	transition: box-shadow 0.2s, transform 0.2s;
}

.kthb-samples__card:hover {
	box-shadow: var(--kthb-shadow-layer-2);
	transform: translateY(-2px);
}

.kthb-samples__screenshot {
	width: 100%;
	aspect-ratio: 17 / 10;
	object-fit: cover;
	object-position: top;
	display: block;
	background: var(--kthb-surface-subtle);
}

/* PageSpeed gauges (detector store column; per-URL Lighthouse — not theme composite copy) */

.kthb-result__pagespeed-gauges {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.25rem 1.75rem;
}

.kthb-result__pagespeed-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.kthb-result__pagespeed-item-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kthb-text-body);
	line-height: 1.25;
	max-width: 9rem;
}

.kthb-result__pagespeed-gauge {
	position: relative;
	width: 6.75rem;
	flex-shrink: 0;
}

.kthb-result__pagespeed-gauge__svg {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.kthb-result__pagespeed-gauge__disc {
	stroke: none;
}

.kthb-result__pagespeed-gauge__track {
	stroke: rgba(0, 0, 0, 0.08);
	stroke-width: 6;
}

.kthb-result__pagespeed-gauge__arc {
	stroke-width: 6;
	stroke-linecap: round;
	fill: none;
}

.kthb-result__pagespeed-gauge__value {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -52%);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.kthb-result__pagespeed-gauge--good .kthb-result__pagespeed-gauge__disc {
	fill: #ecfdf5;
}

.kthb-result__pagespeed-gauge--good .kthb-result__pagespeed-gauge__arc {
	stroke: #16a34a;
}

.kthb-result__pagespeed-gauge--good .kthb-result__pagespeed-gauge__value {
	color: #15803d;
}

.kthb-result__pagespeed-gauge--average .kthb-result__pagespeed-gauge__disc {
	fill: #fef5ec;
}

.kthb-result__pagespeed-gauge--average .kthb-result__pagespeed-gauge__arc {
	stroke: #fa3;
}

.kthb-result__pagespeed-gauge--average .kthb-result__pagespeed-gauge__value {
	color: #c33300;
}

.kthb-result__pagespeed-gauge--poor .kthb-result__pagespeed-gauge__disc {
	fill: #fef2f2;
}

.kthb-result__pagespeed-gauge--poor .kthb-result__pagespeed-gauge__arc {
	stroke: #dc2626;
}

.kthb-result__pagespeed-gauge--poor .kthb-result__pagespeed-gauge__value {
	color: #b91c1c;
}

.kthb-samples__name {
	display: block;
	padding: 0.5rem 0.6rem 0.25rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--kthb-text-body);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kthb-samples__industry {
	display: block;
	padding: 0 0.6rem 0.5rem;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--kthb-primary);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Detector: store industry (above social) ── */

.kthb-result__section--industry .kthb-result__industry-body {
	font-size: 0.875rem;
	color: var(--kthb-text-body);
	line-height: 1.45;
}

.kthb-result__industry-line {
	margin: 0 0 0.5rem;
}

.kthb-result__industry-line:last-child {
	margin-bottom: 0;
}

.kthb-result__industry-key {
	font-weight: 600;
	color: var(--kthb-text);
	margin-inline-end: 0.35rem;
}

.kthb-result__industry-key--block {
	display: block;
	margin-bottom: 0.35rem;
}

.kthb-result__industry-value {
	font-weight: 500;
	color: var(--kthb-text-body);
}

.kthb-result__industry-subs {
	margin-top: 0.65rem;
}

.kthb-result__industry-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	margin-top: 0.25rem;
}

.kthb-result__industry-pill {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--kthb-text-body);
	background: var(--kthb-surface-muted);
	border: 1px solid var(--kthb-border);
	border-radius: 999px;
	line-height: 1.3;
}

/* ── Suggested theme card info ── */

.kthb-samples__grid--4col {
	grid-template-columns: repeat(4, 1fr);
}

.kthb-samples__card--theme {
	text-decoration: none;
}

.kthb-samples__card-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.5rem 0.6rem;
}

.kthb-samples__theme-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--kthb-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kthb-samples__theme-name:hover {
	color: var(--kthb-primary);
}


.kthb-samples__theme-price {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--kthb-text);
	margin-top: 0.15rem;
}

/* ── Samples grid pagination (paginate_links) ── */

.kthb-samples-pagination {
	margin-top: 1.25rem;
}

.kthb-samples-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kthb-samples-pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kthb-samples-pagination ul.page-numbers a.page-numbers,
.kthb-samples-pagination ul.page-numbers span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	margin: 0.15rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--kthb-text-body);
	text-decoration: none;
	background: var(--kthb-surface-muted);
	border: 1px solid var(--kthb-border);
	border-radius: 8px;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}

.kthb-samples-pagination ul.page-numbers a.page-numbers:hover,
.kthb-samples-pagination ul.page-numbers a.page-numbers:focus {
	color: var(--kthb-primary);
	background: var(--kthb-surface);
	border-color: var(--kthb-primary);
	outline: none;
}

.kthb-samples-pagination ul.page-numbers span.page-numbers.current {
	color: var(--kthb-text-on-primary);
	background: var(--kthb-primary);
	border-color: var(--kthb-primary);
}

.kthb-samples-pagination ul.page-numbers span.page-numbers.dots {
	min-width: auto;
	padding: 0 0.35rem;
	background: transparent;
	border-color: transparent;
}


/* ── Unknown platform ── */

.kthb-result__unknown {
	text-align: center;
	padding: 2.5rem 2rem;
}

.kthb-result__unknown-text {
	font-size: 1rem;
	color: var(--kthb-text-muted);
}



/* ── History / Initial themes section ── */

.kthb-history {
	margin-top: 1.5rem;
}

/* ── Product shortcode [kthb_product] ── */
.kthb-product-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 100%;
	line-height: 1;

	.kthb-result__badge{
		display: inline-flex;
		max-width: 100px;
		justify-content: center;
	}

	h1 {
		margin: 0;
	}

	.kthb-result__theme-link {
		font-size: 2rem;
	}

	.kthb-result__theme-cta {
		padding: 1.2rem 1rem;
		border-radius: 16px;
		font-size: 1.2rem;
	}

	.kthb-result__app-card-price {
		.kthb-result__theme-price {
			gap: 0.35rem;
		}
	}

	.kthb-result__theme-price {
		font-size: 1.5rem;
		justify-content: center;
		gap: 1rem;
	}

	.kthb-result__theme-price-label {
		font-size: 1rem;
		font-weight: 600;
		color: var(--kthb-text-secondary);
	}

	.kthb-result__theme-cta-sub {
		text-align: center;
		display: block;
	}
}

/* [kthb_product] apps: small_avatar — thumbnail + title row */
.kthb-product-card__small-avatar-wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.kthb-product-card__small-avatar-img {
	flex-shrink: 0;
	line-height: 0;
}

img.kthb-product-card__small-avatar-thumb {
	width: 100px;
	height: 100px;
	border-radius: 14px !important;
	object-fit: cover;
	border: 1px solid var(--kthb-border) !important;
	display: block;
}

.kthb-product-card__small-avatar-wrap .kthb-result__theme-link {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.kthb-product-card__thumb-wrap {
	line-height: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--kthb-surface-subtle);
}

a.kthb-product-card__thumb-link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

a.kthb-product-card__thumb-link:hover {
	opacity: 0.92;
}

.kthb-product-card__thumb {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ── Product reviews shortcode [kthb_product_reviews] ── */

.kthb-product-reviews {
	max-width: 100%;
}

.kthb-product-reviews__title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.kthb-product-reviews__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.kthb-product-reviews__item {
	padding: 1rem;
	border: 1px solid var(--kthb-border);
	border-radius: 12px;
	background: var(--kthb-surface);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.75rem;
}

.kthb-product-reviews__ai-summary {
	border: 1.5px solid #8b5cf6 !important;

	@media (min-width: 600px) {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}

	.kthb-product-reviews__item-inner {
		justify-content: start;
	}
}

.kthb-product-reviews__ai-typed-body {
	min-height: 2.5rem;
}

/* Typing cursor on the element currently receiving characters */
.kthb-product-reviews__ai-type-active {
	position: relative;
}

.kthb-product-reviews__ai-type-active::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-inline-start: 2px;
	background: currentColor;
	opacity: 0.85;
	vertical-align: text-bottom;
	animation: kthb-ai-cursor-blink 1s steps(1, end) infinite;
}

@keyframes kthb-ai-cursor-blink {
	0%,
	50% {
		opacity: 0.9;
	}
	51%,
	100% {
		opacity: 0;
	}
}

.kthb-product-reviews__ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 1rem;
	font-weight: 600;
	color: #7c3aed;
	margin-bottom: 0.3rem;
}

.kthb-product-reviews__ai-badge svg {
	flex-shrink: 0;
}

.kthb-product-reviews__ai-text {
	margin: 0 0 0.6rem;
	line-height: 1.7;
	font-size: 0.92rem;
	color: var(--kthb-text-ai);
}

.kthb-product-reviews__ai-section {
	margin-top: 0.5rem;
}

.kthb-product-reviews__ai-section strong {
	display: block;
	font-size: 0.82rem;
	color: var(--kthb-text-ai-muted);
	margin-bottom: 0.2rem;
}

.kthb-product-reviews__ai-section ul {
	margin: 0;
	padding-inline-start: 1.2em;
	list-style: disc;
}

.kthb-product-reviews__ai-section li {
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--kthb-text-ai);
	margin-bottom: 0.2rem;
}

.kthb-product-reviews__item-inner {
	height: stretch;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.kthb-product-reviews__item-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-top: 1px solid var(--kthb-border);
	padding-top: 0.75rem;
}

.kthb-product-reviews__avatar-wrap {
	flex-shrink: 0;
	line-height: 0;
}

img.kthb-product-reviews__avatar {
	width: 40px !important;
	height: 40px !important;
	border-radius: 9999px !important;
	object-fit: cover;
	background-color: var(--kthb-avatar-placeholder);
}

.kthb-product-reviews__item-meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	flex: 1;
	line-height: 1;
}

.kthb-product-reviews__author {
	font-weight: 600;
	color: var(--kthb-text);
	font-size: 0.8rem;
}

.kthb-product-reviews__author-link {
	color: inherit;
	text-decoration: none;
}

.kthb-product-reviews__author-link:hover {
	text-decoration: underline;
}

.kthb-product-reviews__date {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--kthb-text-faint);
}

.kthb-product-reviews__stars {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1px;
	margin-top: 0.35rem;
	font-size: 1rem;
	color: var(--kthb-rating);
}

.kthb-product-reviews__comment {
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--kthb-text-body);
	word-break: break-word;
}

.kthb-product-reviews__comment p {
	margin: 0 0 0.5rem;
}

.kthb-product-reviews__comment p:last-child {
	margin-bottom: 0;
}

/* Initial batch + load more: gradient over viewport until first Ajax append */
.kthb-product-reviews__viewport {
	position: relative;
}

.kthb-product-reviews__fade {
	display: none;
	pointer-events: none;
}

.kthb-product-reviews--collapsed .kthb-product-reviews__fade {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45%;
	background: linear-gradient(to bottom, var(--kthb-reviews-fade-transparent), var(--kthb-reviews-fade-solid));
}

.kthb-product-reviews--expanded .kthb-product-reviews__fade {
	display: none;
}

.kthb-product-reviews--tail-revealed {
	.kthb-product-reviews__fade {
		display: none;
	}

	.kthb-product-reviews__expand {
		margin-top: 2rem;
	}
}

.kthb-product-reviews__expand {
	display: flex;
	position: relative;
	z-index: 1;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: -5rem auto 0;
	padding: 1rem 4rem;
	font-size: 0.875rem;
	font-weight: 600;
	background: var(--kthb-primary);
	border: 1px solid var(--kthb-primary);
	color: var(--kthb-text-on-primary);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.kthb-product-reviews__expand-spinner {
	display: none;
	box-sizing: border-box;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	border: 2px solid var(--kthb-on-gradient-border-medium);
	border-top-color: var(--kthb-text-on-primary);
	border-radius: 50%;
	animation: kthbProductReviewsSpin 0.65s linear infinite;
}

.kthb-product-reviews__expand[aria-busy="true"] .kthb-product-reviews__expand-spinner {
	display: block;
	margin-inline-end: 0.45em;
}

@keyframes kthbProductReviewsSpin {
	to {
		transform: rotate(360deg);
	}
}

.kthb-product-reviews__expand:hover {
	background: var(--kthb-primary-hover);
	border-color: var(--kthb-primary-hover);
	color: var(--kthb-text-on-primary);
	opacity: 0.8;
}

/* ── Responsive ── */

@media (max-width: 900px) {
	.kthb-samples__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.kthb-result__app-grid--3col {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Product theme components (kthb_raw_data.components) */
.kthb-product-components__section-title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--kthb-text-on-primary);
}

.kthb-product-components__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
}

.kthb-product-components__item {
	display: flex;
	flex-direction: column;
	justify-content: end;
	min-width: 0;
	text-align: start;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--kthb-surface);
	border: 1px solid var(--kthb-border);
	color: var(--kthb-text-strong);
}


.kthb-product-components__img {
	width: 100%;
	height: 220px !important;
	display: block;
	object-fit: cover;
	background: var(--kthb-surface-subtle);
}

.kthb-product-components__heading {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.35;
}

.kthb-product-components__icon-wrap {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 1.35rem;
	color: var(--kthb-text-secondary);
}

.kthb-product-components__title {
	flex: 1;
	min-width: 0;

	+ .kthb-product-components__desc {
		padding: 0 1rem 1rem;
	}
}

.kthb-product-components__desc {
	padding: 1rem;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--kthb-text-muted);
}

.kthb-product-components__desc p {
	margin: 0 0 0.5rem;
}

.kthb-product-components__desc p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.kthb-product-components__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


@media (max-width: 600px) {
	.kthb-detector__card {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	.kthb-detector__input-group {
		flex-direction: column;
	}

	.kthb-detector__button {
		width: 100%;
	}

	.kthb-result__header {
		flex-direction: column;
		text-align: center;
		padding: 1.25rem;
	}

	.kthb-result__body {
		grid-template-columns: 1fr;
	}

	.kthb-result__col-store {
		border-right: none;
		border-bottom: 1px solid var(--kthb-border-muted);
	}

	.kthb-samples__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kthb-samples__grid--4col,
	.kthb-result__app-grid--3col,
	.kthb-product-components__grid {
		grid-template-columns: 1fr !important;
	}

}

/* Product theme features (kthb_raw_data.theme.features + extra_features), text-only */
.kthb-product-features__title {
	margin: 0 0 1.25rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.kthb-product-features__columns {
	display: grid;
	grid-template-columns: repeat(var(--kthb-pf-cols, 4), 1fr);
	gap: 1.5rem 2rem;
	align-items: start;
}

.kthb-product-features__column {
	min-width: 0;
}

.kthb-product-features__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kthb-product-features__item {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--kthb-text-body);
	font-weight: 400;
}

.kthb-product-features__list .kthb-product-features__item {
	position: relative;
	padding-inline-start: 1.35em;
}

.kthb-product-features__list .kthb-product-features__item::before {
	content: '\2713';
	position: absolute;
	inset-inline-start: 0;
	font-size: 1.35em;
	font-weight: 700;
	color: var(--kthb-text-muted);
	line-height: inherit;
}

.kthb-product-features__item:last-child {
	margin-bottom: 0;
}

.kthb-product-features__extra {
	margin-top: 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--kthb-border);
}

.kthb-product-features__extra-title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.kthb-product-features__list--extra {
	column-count: 2;
	column-gap: 2rem;
}

@media (max-width: 900px) {
	.kthb-product-features__columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.kthb-product-features__list--extra {
		column-count: 1;
	}
}

@media (max-width: 600px) {
	.kthb-product-features__columns {
		grid-template-columns: 1fr;
	}
}

/* Product feature images (kthb_raw_data.feature_images; excludes is_main) */
.kthb-product-feature-images {
	margin: 1.5rem 0;
}

.kthb-product-feature-images__section-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.kthb-product-feature-images__grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.kthb-product-feature-images__item {
	min-width: 0;
	text-align: start;
}

img.kthb-product-feature-images__img {
	width: 100%;
	display: block;
	background: var(--kthb-surface-subtle);
	border: 1px solid var(--kthb-border) !important;
	border-radius: 20px !important;
}

.kthb-product-feature-images__body {
	padding: 1rem 0;
}

.kthb-product-feature-images__item-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.kthb-product-feature-images__desc {
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--kthb-text-muted);
}

.kthb-product-feature-images__desc p {
	margin: 0 0 0.5rem;
}

.kthb-product-feature-images__desc p:last-child {
	margin-bottom: 0;
}

/* Best selling Salla themes shortcode [kthb_salla_best_themes] */
.kthb-best-salla-themes {
	margin: 1.5rem 0;
}

.kthb-best-salla-themes__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.kthb-best-salla-themes__intro {
	margin: 0 0 1rem;
	line-height: 1.55;
}

.kthb-best-salla-themes__meta {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--kthb-text-muted);
}

.kthb-best-salla-themes__empty {
	margin: 0;
}

.kthb-best-salla-themes__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--kthb-border);
	border-radius: 12px;
	background: var(--kthb-surface);
}

.kthb-best-salla-themes__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.kthb-best-salla-themes__table th,
.kthb-best-salla-themes__table td {
	padding: 0.65rem 0.85rem;
	text-align: start;
	border-bottom: 1px solid var(--kthb-border);
}

.kthb-best-salla-themes__table thead th {
	font-weight: 600;
	background: var(--kthb-surface-muted);
}

.kthb-best-salla-themes__table tbody tr:last-child td {
	border-bottom: none;
}

.kthb-best-salla-themes__col-rank {
	width: 3rem;
	color: var(--kthb-text-muted);
}

.kthb-best-salla-themes__col-num {
	text-align: end;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.kthb-best-salla-themes__col-num.is-up {
	color: var(--kthb-success-bright);
}

.kthb-best-salla-themes__col-num.is-down {
	color: var(--kthb-stat-down);
}

.kthb-best-salla-themes__link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- AI Reviews Analysis --- */

.kthb-ai-reviews-analysis {
	margin: 1.5em 0;
}

.kthb-ai-reviews-analysis__summary {
	margin-bottom: 1em;
	font-size: 1.05em;
	line-height: 1.7;
}

.kthb-ai-reviews-analysis__pros h4,
.kthb-ai-reviews-analysis__cons h4,
.kthb-ai-reviews-analysis__key-points h4 {
	margin: 1em 0 0.4em;
	font-size: 1em;
	font-weight: 700;
}

.kthb-ai-reviews-analysis__pros ul,
.kthb-ai-reviews-analysis__cons ul,
.kthb-ai-reviews-analysis__key-points ul {
	margin: 0;
	padding-inline-start: 1.4em;
	list-style: disc;
}

.kthb-ai-reviews-analysis__pros li,
.kthb-ai-reviews-analysis__cons li,
.kthb-ai-reviews-analysis__key-points li {
	margin-bottom: 0.3em;
	line-height: 1.6;
}

/* Product video shortcode: oEmbed (YouTube, Vimeo, …) + native MP4/WebM */
.kthb-product-video {
	margin: 1.25em 0;
	max-width: 100%;
}

.kthb-product-video__inner--embed {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
	background: var(--kthb-media-letterbox);
	border-radius: 4px;
}

.kthb-product-video__inner--embed iframe,
.kthb-product-video__inner--embed embed,
.kthb-product-video__inner--embed object {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.kthb-product-video__inner--embed .wp-block-embed__wrapper,
.kthb-product-video__inner--embed > .wp-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.kthb-product-video__inner--embed .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

.kthb-product-video__inner--native {
	max-width: 100%;
	border-radius: 4px;
	overflow: hidden;
	background: var(--kthb-media-letterbox);
}

.kthb-product-video__inner--native .kthb-product-video__el {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* PageSpeed block (Salla & Zid theme products) */
.kthb-theme-pagespeed {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--kthb-border, #e2e8f0);
	border-radius: 8px;
	background: var(--kthb-surface, #f8fafc);
}

.kthb-theme-pagespeed__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.kthb-theme-pagespeed__strategy {
	margin-top: 1rem;
}

.kthb-theme-pagespeed__strategy:first-of-type {
	margin-top: 0;
}

.kthb-theme-pagespeed__strategy-title {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--kthb-text-body, #475569);
}

.kthb-theme-pagespeed__composite {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin: 0 0 0.35rem;
}

.kthb-theme-pagespeed__strategy--solo .kthb-theme-pagespeed__composite {
	justify-content: center;
}

.kthb-theme-pagespeed__note {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
}

.kthb-theme-pagespeed__method {
	margin: 0.5rem 0 0.75rem;
	color: var(--kthb-text-body, #475569);
}
