/* Lista de Orçamento — botão flutuante + drawer + botão "Adicionar" nos
   produtos. Só tokens --chb-* (chb-tokens.css já carregado antes disto). */

.chb-quote-fab {
	position: fixed; right: 20px; bottom: 90px; z-index: 240;
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--chb-primary); color: var(--chb-primary-ink, #fff); border: 0;
	padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
	box-shadow: var(--chb-shadow, 0 10px 30px -12px rgba(20,50,70,.4));
	cursor: pointer; transition: transform .15s ease;
}
.chb-quote-fab:hover { transform: translateY(-2px); }
.chb-quote-fab__count { background: rgba(0,0,0,.16); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.chb-quote-fab__count[hidden] { display: none; }

@media (max-width: 768px) {
	.chb-quote-fab { bottom: 84px; right: 14px; padding: 11px 14px; }
	.chb-quote-fab__label { display: none; }
	/* Sobe o botão quando a barra fixa mobile do ch-builder também estiver na tela. */
	body.chb-has-mobile-bar .chb-quote-fab { bottom: 144px; }
}

.chb-quote-drawer { position: fixed; inset: 0; z-index: 260; background: rgba(15,40,55,.55); display: flex; justify-content: flex-end; }
.chb-quote-drawer[hidden] { display: none; }
.chb-quote-drawer__panel {
	background: var(--chb-paper, #fff); width: min(420px, 100%); height: 100%;
	display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(0,0,0,.2);
}
.chb-quote-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--chb-line); }
.chb-quote-drawer__head h2 { font-family: var(--chb-font-display); font-size: 18px; margin: 0; }
.chb-quote-drawer__close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--chb-ink-mute); }

.chb-quote-drawer__items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.chb-quote-drawer__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--chb-line); }
.chb-quote-drawer__item-media { width: 48px; height: 48px; border-radius: var(--chb-radius, 8px); overflow: hidden; background: var(--chb-paper-alt); flex: none; }
.chb-quote-drawer__item-media img { width: 100%; height: 100%; object-fit: contain; }
.chb-quote-drawer__item-body { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.chb-quote-drawer__item-body strong { font-size: 13.5px; }
.chb-quote-drawer__item-body span { color: var(--chb-ink-mute); }
.chb-quote-drawer__item-remove { background: none; border: 0; font-size: 20px; color: var(--chb-ink-mute); cursor: pointer; padding: 4px 8px; }
.chb-quote-drawer__item-remove:hover { color: #e53935; }

.chb-quote-drawer__empty { padding: 40px 20px; text-align: center; color: var(--chb-ink-mute); font-size: 14px; }

.chb-quote-drawer__customer { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--chb-line); }
.chb-quote-drawer__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.chb-quote-drawer__field input {
	font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--chb-line);
	border-radius: var(--chb-radius, 8px); width: 100%;
}
.chb-quote-drawer__field input:focus { outline: 2px solid var(--chb-primary); outline-offset: 1px; }
.chb-quote-drawer__field--error input { border-color: #e53935; }
.chb-quote-drawer__field-msg { color: #e53935; font-size: 12px; font-weight: 400; display: none; }
.chb-quote-drawer__field--error .chb-quote-drawer__field-msg { display: block; }

.chb-quote-drawer__foot { padding: 16px 20px; border-top: 1px solid var(--chb-line); }
.chb-quote-drawer__foot button[disabled] { opacity: .6; cursor: not-allowed; }

/* Botão "Adicionar à Lista de Orçamento" (nos hooks do WooCommerce). */
.chb-quote-add {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border: 1px solid var(--chb-primary);
	background: var(--chb-primary); color: var(--chb-primary-ink, #fff);
	font: 600 13px/1.2 var(--chb-font); padding: 9px 14px; border-radius: var(--chb-radius, 6px); cursor: pointer;
	transition: filter .15s ease;
}
.chb-quote-add:hover { filter: brightness(.94); }
.chb-quote-add--loop { width: 100%; margin-top: 8px; }
.chb-quote-add--single { width: 100%; max-width: 340px; margin-top: 14px; padding: 13px 18px; font-size: 15px; }
