/* Stock por Talle × Color en la ficha de producto. */

.ff-stock-table {
	max-width: 100%;
	margin-block: var(--wp--preset--spacing--30, 24px) 0;
	font-family: var(--ffranchesca-font-ui);
	color: var(--ffranchesca-ink);
}

.ff-stock-table__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
	line-height: 1.45;
}

.ff-stock-table__table caption {
	margin-bottom: 10px;
	text-align: left;
	font-family: var(--ffranchesca-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ffranchesca-primary);
}

.ff-stock-table__table th,
.ff-stock-table__table td {
	padding: 9px 8px;
	border-bottom: 1px solid var(--ffranchesca-border);
	text-align: left;
	overflow-wrap: anywhere;
}

.ff-stock-table__table th {
	font-weight: 600;
	color: var(--ffranchesca-primary);
}

.ff-stock-table__table th:last-child,
.ff-stock-table__table td:last-child {
	width: 34%;
}

.ff-stock-table__table th:nth-child(2),
.ff-stock-table__table td:nth-child(2) {
	width: 30%;
}

.ff-stock-table__table tr:last-child td {
	border-bottom: 0;
}

.ff-stock-table__table .is-out-of-stock td {
	color: color-mix(in srgb, var(--ffranchesca-ink) 55%, transparent);
}

@media (max-width: 380px) {
	.ff-stock-table__table th:last-child,
	.ff-stock-table__table td:last-child {
		width: 38%;
	}

	.ff-stock-table__table th:nth-child(2),
	.ff-stock-table__table td:nth-child(2) {
		width: 28%;
	}
}
