/*
 * The catalogue's products in the shop: swatches, size buttons, the personalisation tab and the
 * quote button. Colours and fonts are the theme's; only what is new here gets a style.
 */

.debisual-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 6px;
}

/* The select WooCommerce keeps, hidden but still the one the form sends. */
.debisual-selector + .debisual-select {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.debisual-muestra {
	width: 32px;
	height: 32px;
	padding: 3px;
	border: 1px solid #d5d5cf;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color 120ms ease, transform 120ms ease;
}

.debisual-muestra span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.debisual-boton {
	min-width: 44px;
	padding: 6px 10px;
	border: 1px solid #d5d5cf;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.875em;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 120ms ease;
}

.debisual-muestra:hover,
.debisual-boton:hover {
	border-color: #181818;
}

.debisual-muestra.elegido,
.debisual-boton.elegido {
	border-color: #181818;
	box-shadow: 0 0 0 1px #181818;
}

.debisual-muestra.agotado,
.debisual-boton.agotado {
	opacity: 0.35;
	cursor: not-allowed;
}

.debisual-boton.agotado {
	text-decoration: line-through;
}

.debisual-muestra:focus-visible,
.debisual-boton:focus-visible {
	outline: 2px solid #2f5aa8;
	outline-offset: 2px;
}

.debisual-presupuesto {
	margin: 12px 0;
}

.debisual-ref {
	color: #6b6b68;
	font-size: 0.875em;
}

.debisual-entrada {
	color: #6b5600;
	font-size: 0.875em;
}

.debisual-desde {
	font-size: 0.8em;
	font-weight: normal;
}

table.debisual-marcaje td,
table.debisual-marcaje th {
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

@media (prefers-reduced-motion: reduce) {
	.debisual-muestra,
	.debisual-boton {
		transition: none;
	}
}
