/* Light-theme rendered Markdown/HTML for storefront category content */
.tpmtv-rendered-preview {
	color: var(--gray-dark, #374151);
	font-size: 0.95rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.tpmtv-rendered-preview h2 {
	font-family: var(--font-h1h2, 'Archivo', sans-serif);
	font-size: 1.35rem;
	margin-top: 1.2rem;
	margin-bottom: 0.75rem;
	color: var(--black, #111);
	border-bottom: 2px solid var(--orange, #f37021);
	padding-bottom: 8px;
	display: inline-block;
}

.tpmtv-rendered-preview h3 {
	font-size: 1.15rem;
	margin-top: 1rem;
	margin-bottom: 0.55rem;
	color: var(--black, #111);
}

.tpmtv-rendered-preview h4 {
	font-size: 1.05rem;
	margin-top: 0.85rem;
	margin-bottom: 0.4rem;
	color: var(--gray-content, #4b5563);
}

.tpmtv-rendered-preview p {
	margin-bottom: 1rem;
}

.tpmtv-rendered-preview ul,
.tpmtv-rendered-preview ol {
	margin: 0 0 1rem 1.25rem;
}

.tpmtv-rendered-preview ul {
	list-style-type: disc;
}

.tpmtv-rendered-preview ol {
	list-style-type: decimal;
}

.tpmtv-rendered-preview li {
	margin-bottom: 0.35rem;
}

.tpmtv-rendered-preview a {
	color: var(--orange, #f37021);
	text-decoration: underline;
}

.tpmtv-rendered-preview img {
	max-width: 100%;
	border-radius: 8px;
	margin: 12px 0;
}

.tpmtv-rendered-preview blockquote {
	border-left: 4px solid var(--orange, #f37021);
	padding: 8px 0 8px 16px;
	margin: 16px 0;
	color: var(--gray-content, #4b5563);
	font-style: italic;
	background: rgba(0, 0, 0, 0.02);
}

.tpmtv-rendered-preview code {
	font-family: ui-monospace, monospace;
	background: rgba(0, 0, 0, 0.05);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9rem;
}

.tpmtv-rendered-preview pre {
	background: #f8f9fa;
	border: 1px solid var(--gray-border, #e5e7eb);
	border-radius: 6px;
	padding: 12px 16px;
	overflow-x: auto;
	margin-bottom: 1rem;
}

.tpmtv-rendered-preview pre code {
	background: transparent;
	padding: 0;
}

.tpmtv-rendered-preview table {
	display: block;
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.2rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tpmtv-rendered-preview th,
.tpmtv-rendered-preview td {
	border: 1px solid var(--gray-border, #e5e7eb);
	padding: 8px 12px;
	font-size: 0.88rem;
}

.tpmtv-rendered-preview th {
	background: rgba(0, 0, 0, 0.03);
	font-weight: 700;
}

.products-seo[hidden] {
	display: none !important;
}

.products-category-content > :first-child {
	margin-top: 0;
}

/* Shortcode widgets */
.tpmtv-rendered-preview .cta-box-widget,
.tpmtv-rendered-preview .tpmtv-widget {
	background: linear-gradient(135deg, rgba(243, 112, 33, 0.12) 0%, rgba(243, 112, 33, 0.02) 100%);
	border: 1.5px solid var(--orange, #f37021);
	border-radius: 10px;
	padding: 20px;
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tpmtv-rendered-preview .tpmtv-widget--related {
	background: #fff;
	border-color: var(--gray-border, #e5e7eb);
}

.tpmtv-rendered-preview .tpmtv-widget--calc {
	border-style: dashed;
	background: rgba(243, 112, 33, 0.04);
}

.tpmtv-rendered-preview .cta-box-title,
.tpmtv-rendered-preview .tpmtv-widget__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--orange, #f37021);
	margin: 0;
}

.tpmtv-rendered-preview .cta-box-desc,
.tpmtv-rendered-preview .tpmtv-widget__desc {
	font-size: 0.9rem;
	color: var(--gray-content, #4b5563);
	margin: 0;
}

.tpmtv-rendered-preview .cta-box-btn {
	align-self: flex-start;
	background: var(--orange, #f37021);
	color: #111;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	margin-top: 4px;
	box-shadow: 0 4px 10px rgba(243, 112, 33, 0.25);
}

.tpmtv-rendered-preview .cta-box-btn:hover {
	filter: brightness(1.05);
	text-decoration: none;
}

.tpmtv-rendered-preview .tpmtv-widget__link {
	align-self: flex-start;
	border: 1px solid var(--orange, #f37021);
	color: var(--orange, #f37021);
	font-weight: 700;
	font-size: 0.85rem;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	margin-top: 4px;
}

.tpmtv-rendered-preview .tpmtv-video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid var(--gray-border, #e5e7eb);
	margin: 20px 0;
}

.tpmtv-rendered-preview .tpmtv-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
