/*
 * YITH Quote Quantity for Product Loops
 */

/* Esconde o botão nativo do YITH somente no loop/grid. */
ul.products li.product .yith-ywraq-add-to-quote {
	display: none !important;
}

/* Bloco completo no card. */
ul.products li.product .yqql-loop {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	margin-top: 16px;
}

/* Faixa cinza da quantidade. */
ul.products li.product .yqql-quantity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	background: #f6f6f6;
	border-radius: 9px;
	box-sizing: border-box;
}

/* Texto "Quantidade:". */
ul.products li.product .yqql-quantity__label {
	flex: 1;
	color: #333333;
	font-size: 15px;
	font-weight: 400;
	text-align: left;
	white-space: nowrap;
}

/* Botões - e +. */
ul.products li.product .yqql-quantity__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 34px;
	margin: 0;
	padding: 0;
	color: #222222;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 7px;
	box-shadow: none;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

ul.products li.product .yqql-quantity__button:hover:not(:disabled) {
	color: #008b00;
	border-color: #008b00;
}

ul.products li.product .yqql-quantity__button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Campo numérico central. */
ul.products li.product .yqql-quantity__input {
	width: 42px;
	height: 34px;
	margin: 0;
	padding: 0;
	color: #333333;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 7px;
	box-shadow: none;
	font-size: 15px;
	font-weight: 400;
	line-height: 34px;
	text-align: center;
	-moz-appearance: textfield;
}

ul.products li.product .yqql-quantity__input:focus {
	outline: none;
	border-color: #008b00;
}

ul.products li.product .yqql-quantity__input::-webkit-outer-spin-button,
ul.products li.product .yqql-quantity__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Botão verde de adicionar à cotação. */
ul.products li.product .yqql-add-to-quote.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 12px 16px !important;
	color: #ffffff !important;
	background: #008c00 !important;
	border: 1px solid #008c00 !important;
	border-radius: 5px !important;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

ul.products li.product .yqql-add-to-quote.button:hover,
ul.products li.product .yqql-add-to-quote.button:focus {
	color: #ffffff !important;
	background: #006f00 !important;
	border-color: #006f00 !important;
}

ul.products li.product .yqql-add-to-quote.button.is-loading {
	opacity: 0.7;
	cursor: wait;
}

/* Mensagem após a ação. */
ul.products li.product .yqql-status {
	min-height: 18px;
	color: #555555;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

ul.products li.product .yqql-status a {
	color: #008c00;
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 420px) {
	ul.products li.product .yqql-quantity {
		padding: 9px 10px;
		gap: 8px;
	}

	ul.products li.product .yqql-quantity__label {
		font-size: 14px;
	}

	ul.products li.product .yqql-quantity__button {
		width: 34px;
	}
}
