/* Lista de Orçamento — botão flutuante + drawer. Usa as mesmas variáveis
   do tema bluideias-v2 (--brand, --whats, --radius, --shadow, --line),
   carregadas nas mesmas páginas de loja. */

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

@media (max-width: 768px) {
	.bd-fab { bottom: 84px; right: 14px; padding: 11px 14px; }
	.bd-fab__label { display: none; }
	/* A barra fixa do ch-builder (chb-mobile-bar) agora aparece em toda
	   página, inclusive loja/produto — sobe o botão pra não ficar em cima. */
	body.chb-has-mobile-bar .bd-fab { bottom: 144px; }
}

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

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

.bd-drawer__empty { padding: 40px 20px; text-align: center; color: var(--muted, #6b7a85); font-size: 14px; }

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

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