/* Sitomat – Matrika velikosti */

/* Skrij privzeto količino + gumb "Dodaj v košarico" obrazca variacij */
form.variations_form.sitomat-matrix-active .woocommerce-variation-add-to-cart,
form.variations_form.sitomat-matrix-active .single_variation {
	display: none !important;
}

form.variations_form.sitomat-matrix-active {
	margin-bottom: 0 !important;
}

.sitomat-matrix {
	margin: 1rem 0;
}

.sm-table {
	width: 100%;
	border-collapse: collapse;
	/*margin-bottom: 1rem;*/
}

.sm-table thead th {
	font-size: 12px;
	font-weight: 600;
	color: #6c757d;
	text-transform: none;
	text-align: right;
	/*padding: 0.4rem 0.5rem;*/
	padding-bottom: 8px;
	border-bottom: 1px solid #dee2e6;
}

.sm-table thead th.sm-col-size {
	text-align: left;
}

.sm-table thead th.sm-col-qty {
	text-align: center;
}

.sm-table td {
	padding: 8px;
	/*border-bottom: 1px solid #f1f3f5;*/
	text-align: right;
	vertical-align: middle;
	font-size: 12px;
	font-weight: 500;
}

.sm-table td.sm-size {
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}

.sm-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2ecc71;
	margin-right: 0.5rem;
	vertical-align: middle;
}

.sm-stock {
	display: block;
	width: fit-content;
	margin-top: 4px;
	padding: 0 8px;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: #495057;
	background: #f1f3f5;
	border-radius: 50px;
}

.sm-stock:empty {
	display: none;
}

.sm-row.sm-disabled td.sm-size {
	color: #adb5bd;
}

.sm-row.sm-disabled .sm-dot {
	background: #dee2e6;
}

.sm-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	overflow: hidden;
	background: #f8f9fa;
}

.sm-qty .sm-minus,
.sm-qty .sm-plus {
	border: 0;
	background: transparent;
	width: 1.5rem;
	cursor: pointer;
	color: #6c757d;
	font-size: 12px;
	line-height: 1;
	padding: 0;
}

.sm-qty .sm-minus:hover,
.sm-qty .sm-plus:hover {
	color: #212529;
}

.sm-qty .sm-input {
	width: 1.5rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 12px;
	padding: 0.35rem 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.sm-qty .sm-input::-webkit-outer-spin-button,
.sm-qty .sm-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sm-qty .sm-input:disabled {
	color: #adb5bd;
}

.sm-row.sm-disabled .sm-qty {
	opacity: 0.5;
}

.sm-out {
	color: #adb5bd;
	font-size: 12px;
}

.sm-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	/*padding-top: 24px;
	margin-top: 16px;
	border-top: 1px solid #dee2e6;*/
}

.sm-total-wrap {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	gap: 6px;
}

.sm-total {
	font-size: 24px;
	font-weight: 800;
}

.sm-total-wrap small {
	color: #6c757d;
	font-size: 12px;
}

.sm-msg {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}

.sm-msg.sm-msg-success {
	color: #198754;
}

.sm-msg.sm-msg-error {
	color: #dc3545;
}

.sm-msg.sm-msg-info {
	color: #6c757d;
}

/* Skrij tabelo, dokler barva ni izbrana (JS doda razred sm-needs-choice);
   cena in gumb v nogi ostaneta vidna */
.sitomat-matrix.sm-needs-choice .sm-table {
	display: none;
}
