/* ==========================================================================
   Product Specifications Accessible & Responsive Frontend Stylesheet
   ========================================================================== */

.stdollar-specs-wrapper {
	direction: rtl;
	text-align: right;
	font-family: inherit;
	margin: 20px 0;
	box-sizing: border-box;
}

.stdollar-specs-wrapper *, 
.stdollar-specs-wrapper *::before, 
.stdollar-specs-wrapper *::after {
	box-sizing: border-box;
}

/* Specifications Table UI */
.stdollar-specs-table-view {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 25px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.stdollar-specs-table-view tbody tr:nth-child(even) {
	background: #f8fafc;
}

.stdollar-specs-table-view tbody tr:hover {
	background: #f1f5f9;
}

.stdollar-specs-table-view th[scope="row"] {
	width: 35%;
	min-width: 160px;
	padding: 14px 18px;
	text-align: right;
	font-size: 14px;
	font-weight: 800;
	color: #1e293b;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	background: rgba(241, 245, 249, 0.5);
}

.stdollar-specs-table-view td {
	padding: 14px 18px;
	text-align: right;
	font-size: 14px;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	font-weight: 500;
}

.stdollar-specs-table-view tbody tr:last-child th,
.stdollar-specs-table-view tbody tr:last-child td {
	border-bottom: none;
}

.spec-icon {
	margin-left: 8px;
	display: inline-block;
	vertical-align: middle;
	font-size: 15px;
}

.spec-label {
	vertical-align: middle;
}

.spec-value {
	display: inline-block;
	word-break: break-word;
}

/* Warning Component (Empty Data -> Zero Markup) */
.stdollar-specs-warning-box {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-right: 4px solid #f59e0b;
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 20px;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.warning-header {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #92400e;
	font-size: 15px;
	font-weight: 800;
	margin-bottom: 6px;
}

.warning-body {
	color: #78350f;
	font-size: 13.5px;
	line-height: 1.6;
}

.warning-body p {
	margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 640px) {
	.stdollar-specs-table-view {
		display: block;
		border-radius: 12px;
	}

	.stdollar-specs-table-view tbody {
		display: block;
	}

	.stdollar-specs-table-view tr {
		display: flex;
		flex-direction: column;
		border-bottom: 1px solid #e2e8f0;
		padding: 10px 14px;
	}

	.stdollar-specs-table-view tr:last-child {
		border-bottom: none;
	}

	.stdollar-specs-table-view th[scope="row"] {
		width: 100%;
		padding: 4px 0;
		border-bottom: none;
		background: transparent;
		font-size: 13px;
		color: #64748b;
	}

	.stdollar-specs-table-view td {
		width: 100%;
		padding: 2px 0 6px 0;
		border-bottom: none;
		font-size: 14px;
		font-weight: 700;
		color: #0f172a;
	}
}
