/**
 * SMT Woo Specifications — frontend styles.
 * All classes use the smt-* prefix. Theme-agnostic.
 */

/* -------------------------------------------------- Subtitle */
.smt-specs-subtitle {
	display: block;
	margin: 4px 0 6px;
	font-size: 0.85em;
	line-height: 1.4;
	color: #6b7280;
	font-weight: 400;
}

.smt-specs-subtitle--single {
	margin: 6px 0 12px;
	font-size: 1em;
	color: #555;
}

/* -------------------------------------------------- Specs block */
.smt-specs {
	margin: 0 0 20px;
}

.smt-specs-short {
	margin: 0 0 14px;
}

.smt-specs-title {
	margin: 0 0 12px;
}

.smt-specs-title__text {
	display: inline-block;
	text-transform: capitalize;
	font-size: 16px;
	font-weight: 700;
	border-bottom: 2px solid rgb(255, 0, 0);
	padding: 10px 0;
	margin-right: 0;
}

.smt-specs-short__content {
	font-size: 13px;
	line-height: 1.6;
}

/* Specs tables and lists */
.smt-specs-content tr td:first-child {
	font-weight: bold;
}

.smt-specs-content ol,
.smt-specs-content ul {
	padding-left: 15px;
	margin: 0 0 10px;
}

.smt-specs-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 10px;
}
.smt-specs-content table thead{
background-color: #ededed;
text-align: center;
}
.smt-specs-content table thead th{
	text-align: center;
}

.smt-specs-content th,
.smt-specs-content td {
	padding: 6px 10px;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
	font-size: 1em;
}
.smt-specs-content td:first-child, .smt-specs-content th:first-child {
	padding-left: 10px !important;
}
.smt-specs-content p:last-child {
	margin-bottom: 0;
}

/* Datasheet link */
.smt-specs-datasheet {
	margin: 10px 0 0;
	text-align: center;
}

.smt-specs-datasheet__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.smt-specs-datasheet__link:hover {
	color: #d33;
}

.smt-specs-datasheet__icon::before {
	content: "PDF";
	display: inline-block;
	padding: 1px 5px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	background: #d33;
	border-radius: 2px;
	letter-spacing: 0.02em;
}

/* Popup trigger button */
.smt-specs-popup-trigger {
	color: #555;
	text-align: center;
	padding: 5px 15px;
	border-radius: 22px;
	border: 1px solid #666;
	display: block;
	margin: 15px 0;
	font-weight: bold;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.smt-specs-popup-trigger:hover {
	color: red;
	border-color: red;
}

/* -------------------------------------------------- Popup: HTML dialog (default) */
.smt-specs-dialog {
	width: min(760px, calc(100% - 32px));
	max-width: 760px;
	max-height: 85vh;
	margin: auto;
	padding: 24px 28px;
	border: none;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	overflow: auto;
}

.smt-specs-dialog:not([open]) {
	display: none;
}

.smt-specs-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.smt-specs-dialog.smt-specs-dialog--fallback {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100000;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5), 0 12px 40px rgba(0, 0, 0, 0.25);
}

body.smt-specs-dialog-lock {
	overflow: hidden;
}

.smt-specs-dialog__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	color: red;
	background: transparent;
	border: none;
	cursor: pointer;
}

.smt-specs-dialog__close:hover {
	color: #b71c1c;
}

.smt-specs-dialog__title {
	margin: 0 0 16px;
	padding-right: 32px;
}

.smt-specs-dialog__content {
	font-size: 13px;
	line-height: 1.7;
}

/* -------------------------------------------------- Popup: Fancybox (opt-in) */
.smt-fancybox .fancybox__content {
	max-width: 760px;
	padding: 24px 28px;
	border-radius: 8px;
}

.smt-fancybox .fancybox__content > .f-button.is-close-btn {
	top: 0;
	color: red;
}

.smt-fancybox.is-compact .fancybox__content > .f-button.is-close-btn {
	width: 40px;
	height: 40px;
}

@media (max-width: 600px) {
	.smt-specs-dialog {
		padding: 18px 16px;
	}
}
