/* ==========================================================================
   MikroTik RouterOS Licenses - child theme content styles
   Layout/typography come from Blocksy; this file styles content patterns
   used across pages (trust grid, FAQ, comparison table, contact form).
   ========================================================================== */

/*
 * The theme's default accent (#2872fa) fails WCAG AA contrast (4.3:1 on
 * white buttons, 4.15:1 as link text on #fafbfc; both need 4.5:1).
 * Reusing the theme's own hover shade as the base color clears AA without
 * changing the palette or design - same blue family, just deep enough.
 */
:root {
	--theme-palette-color-1: #1559ed;
	--theme-palette-color-2: #103fc0;
}

/*
 * WooCommerce's product meta row (SKU / category) uses the theme's muted
 * gray (#748393) at 3.74:1 on #fafbfc - below the 4.5:1 AA minimum. Darken
 * it slightly; same gray family, same layout.
 */
.product_meta,
.product_meta a,
.product_meta span {
	color: #5b6b7c !important;
	opacity: 1 !important;
}

/* Legal links row under the footer (matches the theme's footer background) */
.mtl-legal-links {
	text-align: center;
	padding: 16px 20px;
	font-size: 0.82rem;
	color: #5b6b7c;
	background: #f2f5f7;
	border-top: 1px solid #e2e8f0;
}

.mtl-legal-links a {
	color: #334155;
	text-decoration: underline;
}

.mtl-legal-links span {
	margin: 0 10px;
}

/* Short description checklist (near price / Add to Cart) */
.mtl-short-list {
	list-style: none;
	margin: 16px 0;
	padding: 0;
}

.mtl-short-list li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 8px;
	font-size: 0.94rem;
	color: #334155;
	line-height: 1.5;
}

.mtl-short-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 0;
	color: #16a34a;
	font-weight: 700;
}

/* Trust / feature grid (homepage + reused on other pages) */
.mtl-trust-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 32px 0;
}

.mtl-trust-item {
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.mtl-trust-item h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
}

.mtl-trust-item p {
	margin: 0;
	color: #475569;
	font-size: 0.92rem;
	line-height: 1.55;
}

@media (max-width: 782px) {
	.mtl-trust-grid {
		grid-template-columns: 1fr;
	}
}

/* FAQ accordion - pure CSS via <details>/<summary>, no JS needed */
.mtl-faq {
	margin: 24px 0;
	border-top: 1px solid #e2e8f0;
}

.mtl-faq details {
	border-bottom: 1px solid #e2e8f0;
	padding: 16px 0;
}

.mtl-faq summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.mtl-faq summary::-webkit-details-marker {
	display: none;
}

.mtl-faq summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.3rem;
	color: var(--theme-palette-color-1, #2563eb);
}

.mtl-faq details[open] summary::after {
	content: '\2212';
}

.mtl-faq .mtl-faq-answer {
	margin-top: 12px;
	color: #475569;
	line-height: 1.6;
}

/* License comparison table */
.mtl-compare-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
}

.mtl-compare-table th,
.mtl-compare-table td {
	border: 1px solid #e2e8f0;
	padding: 12px 16px;
	text-align: left;
	font-size: 0.92rem;
}

.mtl-compare-table th {
	background: #f8fafc;
	font-weight: 700;
}

.mtl-compare-table td:first-child,
.mtl-compare-table th:first-child {
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.mtl-compare-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
}

/* Product page notices */
.mtl-software-id-notice {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.9rem;
	color: #1e3a8a;
	margin: 12px 0;
}

.mtl-software-id-notice a {
	font-weight: 600;
}

.mtl-coming-soon-notice {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.9rem;
	color: #92400e;
	margin: 12px 0;
}

.mtl-coming-soon-badge {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Contact form */
.mtl-contact-form-wrap {
	max-width: 640px;
}

.mtl-contact-form .mtl-field {
	margin-bottom: 18px;
}

.mtl-contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
}

.mtl-contact-form input[type="text"],
.mtl-contact-form input[type="email"],
.mtl-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
}

.mtl-contact-form .mtl-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mtl-contact-submit {
	background: var(--theme-palette-color-1, #2563eb);
	color: #fff;
	border: none;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
}

.mtl-form-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.92rem;
}

.mtl-form-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.mtl-form-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.mtl-form-error ul {
	margin: 0;
	padding-left: 20px;
}

/* Breadcrumbs rendered via Rank Math on non-product pages */
.mtl-breadcrumbs {
	font-size: 0.82rem;
	color: #64748b;
	margin: 16px 0;
}

.mtl-breadcrumbs a {
	color: #64748b;
	text-decoration: underline;
}

/* Buying guide / step lists */
.mtl-steps {
	counter-reset: mtl-step;
	list-style: none;
	margin: 24px 0;
	padding: 0;
}

.mtl-steps li {
	counter-increment: mtl-step;
	position: relative;
	padding: 0 0 24px 48px;
	border-left: 2px solid #e2e8f0;
	margin-left: 18px;
}

.mtl-steps li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.mtl-steps li::before {
	content: counter(mtl-step);
	position: absolute;
	left: -19px;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--theme-palette-color-1, #2563eb);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
}

.mtl-steps h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
}

.mtl-steps p {
	margin: 0;
	color: #475569;
}
