/* Kafelki wyboru wariantu vouchera. Zastepuja systemowe listy rozwijane. */

.woocommerce div.product form.cart .variations {
	margin-bottom: 1.5rem;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.woocommerce div.product form.cart .variations label {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #000;
}

/* Select zostaje dla WooCommerce, ale znika z widoku. */
.woocommerce div.product form.cart .variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.woocommerce div.product form.cart .variations .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #6b6b6b;
}

.biela-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 1.75rem;
}

.biela-swatch {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 6.5rem;
	margin: 0;
	padding: 0.9rem 1.25rem;
	font-family: inherit;
	text-align: center;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.biela-swatch:hover {
	border-color: #000;
	transform: translateY(-1px);
}

.biela-swatch:focus-visible {
	outline: 2px solid #db2b39;
	outline-offset: 2px;
}

.biela-swatch__label {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
}

.biela-swatch__desc {
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.35;
	color: #6b6b6b;
}

.biela-swatch.is-selected {
	background: #db2b39;
	border-color: #db2b39;
}

.biela-swatch.is-selected .biela-swatch__label,
.biela-swatch.is-selected .biela-swatch__desc {
	color: #fff;
}

/* Wariant niedostepny w tej kombinacji. */
.biela-swatch.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}

.biela-swatch.is-disabled:hover {
	border-color: #d8d8d8;
	transform: none;
}

/* Forma dostawy: szersze kafelki, bo maja opis. */
.biela-swatches--forma .biela-swatch {
	flex: 1 1 13rem;
	align-items: flex-start;
	text-align: left;
}

/* Podsumowanie ceny wariantu. */
.woocommerce div.product form.cart .single_variation_wrap {
	padding-top: 0.5rem;
}

.woocommerce div.product .woocommerce-variation-price .price {
	font-size: 1.6rem;
	font-weight: 700;
	color: #000;
}

@media (max-width: 600px) {
	.biela-swatch {
		flex: 1 1 calc(50% - 0.6rem);
		min-width: 0;
		padding: 0.8rem 0.5rem;
	}

	.biela-swatches--forma .biela-swatch {
		flex: 1 1 100%;
	}
}
