/**
 * Incrementador de Quantidade para WooCommerce.
 *
 * CSS mínimo e neutro: não define cores de fundo, bordas coloridas nem
 * tipografia própria, para não conflitar com o tema. Tudo herda do tema e
 * pode ser sobrescrito com uma única regra.
 */

.wcqi-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
	max-width: 100%;
}

.wcqi-wrap .quantity {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.wcqi-btn {
	appearance: none;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 3px;
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	min-width: 2.25em;
	min-height: 2.25em;
	opacity: 0.75;
	padding: 0 0.5em;
	text-align: center;
}

.wcqi-btn:hover,
.wcqi-btn:focus {
	opacity: 1;
}

.wcqi-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.wcqi-unit {
	font-size: 0.95em;
	opacity: 0.8;
	white-space: nowrap;
}

.wcqi-unit--cart {
	margin-left: 0.35em;
}

.wcqi-rules {
	display: flex;
	flex-direction: column;
	font-size: 0.85em;
	gap: 0.15em;
	margin: 0.5em 0;
	opacity: 0.8;
}

.wcqi-rules__note {
	font-style: italic;
}

.wcqi-error {
	font-size: 0.9em;
	font-weight: 600;
	margin: 0.5em 0;
}

.wcqi-total {
	font-size: 1.05em;
	margin: 0.5em 0 1em;
}

.wcqi-total__label::after {
	content: ":";
}

.wcqi-total__value {
	font-weight: 700;
}

.wcqi-price-unit {
	font-size: 0.8em;
	opacity: 0.75;
}

/* Orçamento sob medida ---------------------------------------------------- */

.wcqi-quote-price {
	font-weight: 600;
}

.wcqi-quote {
	margin: 1em 0;
}

.wcqi-quote__text {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 0.5em;
}

/* Herda a aparência do botão do tema; só garante o mínimo se não houver .button */
.wcqi-quote__button {
	display: inline-block;
	max-width: 100%;
	text-align: center;
	text-decoration: none;
}

.wcqi-quote__button:not(.button) {
	border: 1px solid currentColor;
	border-radius: 3px;
	padding: 0.6em 1.2em;
}

.wcqi-quote__warning {
	font-size: 0.85em;
	font-style: italic;
	margin: 0.5em 0 0;
	opacity: 0.8;
}

.wcqi-wrap [hidden],
.wcqi-rules[hidden],
.wcqi-total[hidden],
.wcqi-error[hidden] {
	display: none !important;
}

@media (max-width: 480px) {
	.wcqi-btn {
		min-width: 2.75em;
		min-height: 2.75em;
	}
}
