/* Balcão Online – formulários públicos (comprovativo, pedido de peça).
   Usa as variáveis do tema Balcão quando existem; noutro tema fica neutro. */
.bo-proof,
.bo-quote-form,
.bo-quote-done {
	--bo-brand: var(--bt-brand-strong, #0b7c7a);
	--bo-ink: var(--bt-ink, #1e2326);
	--bo-line: var(--bt-line, #d9dedf);
	--bo-soft: var(--bt-brand-tint, #f2f5f5);
	--bo-err: #b42318;
	color: var(--bo-ink);
}

/* ---- comprovativo ------------------------------------------------ */
.bo-proof { margin: 0 0 32px; padding: 22px 22px 18px; border: 2px solid var(--bo-brand); border-radius: 10px; background: #fff; }
.bo-proof__title { margin: 0 0 8px; font-size: 1.35em; line-height: 1.2; }
.bo-proof__deadline, .bo-proof__hint { margin: 0 0 10px; }
.bo-proof__deadline strong { white-space: nowrap; }
.bo-proof__ok, .bo-proof__error { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; }
.bo-proof__ok { background: #e7f6ee; border-left: 4px solid #1b7f4b; }
.bo-proof__error { background: #fdecea; border-left: 4px solid var(--bo-err); }
.bo-proof__list { margin: 8px 0 14px; padding: 0; list-style: none; }
.bo-proof__list li { padding: 8px 12px; margin-bottom: 6px; background: var(--bo-soft); border-radius: 6px; overflow-wrap: anywhere; }
.bo-proof__list li::before { content: "✓ "; color: #1b7f4b; font-weight: 700; }
.bo-proof__list span { opacity: .7; font-size: .92em; }
.bo-proof__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bo-proof__file { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.bo-proof__file input { font-weight: 400; padding: 10px; border: 1px dashed var(--bo-line); border-radius: 8px; background: var(--bo-soft); max-width: 100%; }

/* ---- botões ------------------------------------------------------ */
.bo-btn, .bo-quote-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px !important; border: 0; border-radius: 8px; background: var(--bo-brand, #0b7c7a) !important; color: #fff !important; font-weight: 700; text-decoration: none; cursor: pointer; }
.bo-btn:hover, .bo-quote-btn:hover { filter: brightness(.92); }
.bo-btn:focus-visible, .bo-quote-btn:focus-visible { outline: 3px solid var(--bo-ink, #1e2326); outline-offset: 2px; }
.bo-btn--lg { min-height: 52px; font-size: 1.05em; padding: 0 30px !important; }
.bo-quote-price { font-weight: 600; opacity: .8; }
.bo-quote-single small { opacity: .75; }

/* ---- pedido de peça --------------------------------------------- */
.bo-quote-form { max-width: 860px; }
.bo-fieldset { margin: 0 0 22px; padding: 18px 20px 6px; border: 1px solid var(--bo-line); border-radius: 10px; background: #fff; }
.bo-fieldset legend { padding: 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85em; }
.bo-grid { display: grid; gap: 0 16px; }
.bo-grid--2 { grid-template-columns: 1fr 1fr; }
.bo-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.bo-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; }
.bo-field small { font-weight: 400; opacity: .7; }
.bo-field input, .bo-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid var(--bo-line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: inherit; }
.bo-field input[type="file"] { background: var(--bo-soft); border-style: dashed; }
.bo-field input:focus, .bo-field textarea:focus { outline: 2px solid var(--bo-brand); outline-offset: 0; border-color: var(--bo-brand); }
.bo-field [aria-invalid="true"] { border-color: var(--bo-err); }
.bo-field__hint { font-weight: 400; opacity: .7; font-size: .9em; }
.bo-field__error { color: var(--bo-err); font-weight: 600; font-size: .92em; }
.bo-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 14px; }
.bo-radios > span { font-weight: 600; margin-right: 4px; }
.bo-radios label { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.bo-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.bo-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.bo-form-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: #fdecea; border-left: 4px solid var(--bo-err); }
.bo-form-note { margin-top: 10px; opacity: .75; font-size: .95em; }
.bo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bo-quote-done { max-width: 620px; padding: 28px; border-radius: 12px; border: 2px solid var(--bo-brand); background: #fff; }
.bo-quote-done h2 { margin: 4px 0 10px; }
.bo-quote-done__code { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 6px; background: var(--bo-ink); color: #fff; font-weight: 700; letter-spacing: .08em; font-family: ui-monospace, Menlo, Consolas, monospace; }

@media (max-width: 720px) {
	.bo-grid--2, .bo-grid--3 { grid-template-columns: 1fr; }
	.bo-fieldset { padding: 14px 14px 4px; }
	.bo-proof { padding: 18px 16px 14px; }
	.bo-btn { width: 100%; }
}

/* ---- várias peças ------------------------------------------------ */
.bo-parts { margin: 0 0 6px; padding: 0; list-style: none; counter-reset: bo-part; }
.bo-part { display: grid; grid-template-columns: 30px minmax(0, 1fr) 118px 40px; gap: 10px; align-items: center; margin-bottom: 10px; counter-increment: bo-part; }
.bo-part::before { content: counter(bo-part); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bo-soft); font-weight: 700; font-size: .9em; }
.bo-part .bo-field { margin: 0; }
.bo-part__qtd { flex-direction: row !important; align-items: center; gap: 8px !important; }
.bo-part__qtd input { width: 70px; text-align: center; }
.bo-part__x { font-weight: 600; font-size: .9em; opacity: .75; }
.bo-part__remove { width: 40px; height: 40px; border: 1px solid var(--bo-line); border-radius: 8px; background: #fff; color: var(--bo-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.bo-part__remove:hover { border-color: var(--bo-err); color: var(--bo-err); }
.bo-part__remove[hidden] { display: block; visibility: hidden; }
.bo-add-part { margin: 2px 0 6px 40px; padding: 10px 16px; min-height: 44px; border: 1px dashed var(--bo-brand); border-radius: 8px; background: var(--bo-soft); color: var(--bo-brand); font: inherit; font-weight: 700; cursor: pointer; }
.bo-add-part:hover { background: #fff; }
.bo-add-part[hidden] { display: none; }
.bo-parts__hint { display: block; margin: 0 0 16px 40px; }
.bo-fieldset > .bo-field__error { display: block; margin: 0 0 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 720px) {
	.bo-part { grid-template-columns: 26px minmax(0, 1fr) 40px; grid-template-areas: "n d d" ". q r"; row-gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--bo-line); }
	.bo-part::before { grid-area: n; width: 24px; height: 24px; }
	.bo-part__desc { grid-area: d; }
	.bo-part__qtd { grid-area: q; }
	.bo-part__remove { grid-area: r; }
	.bo-add-part { margin-left: 0; width: 100%; }
	.bo-parts__hint { margin-left: 0; }
}

/* ---- entrega grátis a partir de ---------------------------------- */
.bo-free-ship { margin: 0 0 18px; padding: 12px 16px 14px; border-radius: 10px; background: var(--bt-brand-tint, #e4f4f3); color: var(--bt-ink, #1e2326); }
.bo-free-ship__text { margin: 0 0 8px; }
.bo-free-ship__bar { display: block; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.bo-free-ship__bar span { display: block; height: 100%; background: var(--bt-brand-strong, #0b7c7a); transition: width .3s ease; }
.bo-free-ship.is-done { background: #e7f6ee; }
.bo-free-ship.is-done .bo-free-ship__bar span { background: #1b7f4b; }
