/* Calculadora de materiais · usa as cores do tema da loja (variáveis --gc-*), com valores de reserva. */
.gcb-calc {
	--b: var(--gc-blue, #004aad); --b7: var(--gc-blue-700, #003a8a); --b5: var(--gc-blue-50, #eaf1fc); --navy: var(--gc-navy, #0b1b3f);
	--ink: var(--gc-ink, #172033); --muted: var(--gc-muted, #5b6577); --line: var(--gc-line, #e3e8f0); --wa: var(--gc-wa, #15803d);
	max-width: var(--gc-wrap, 1240px); margin: 0 auto; padding: 0 20px 64px; color: var(--ink); font-size: 16px; line-height: 1.5;
}
.gcb-calc *, .gcb-calc *::before, .gcb-calc *::after { box-sizing: border-box; }
.gcb-calc [hidden] { display: none !important; }
.gcb-intro { margin-bottom: 24px; }
.gcb-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--b); font-weight: 700; margin: 0 0 6px; }
.gcb-intro h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 600; color: var(--navy); }
.gcb-intro p:last-child { margin: 10px 0 0; color: var(--muted); max-width: 640px; }
.gcb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.gcb-panel, .gcb-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--gc-radius, 16px); box-shadow: 0 4px 15px #102a5810; }
.gcb-panel { padding: 24px; min-width: 0; }
.gcb-title { font-size: 17px; font-weight: 700; margin: 0 0 16px; color: var(--navy); }
.gcb-label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 8px; }

/* Botões: o tema Hello pinta botões de rosa no hover; aqui tudo é explícito. */
#gcb-root button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; line-height: 1.3; box-shadow: none; }
#gcb-root button:disabled { opacity: .5; cursor: not-allowed; }
#gcb-root button:focus-visible, .gcb-calc select:focus-visible, .gcb-calc input:focus-visible, .gcb-calc a:focus-visible { outline: 3px solid #28b9cb; outline-offset: 2px; }
.gcb-choice { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
#gcb-root .gcb-choice button, #gcb-root .gcb-choice button:hover, #gcb-root .gcb-choice button:focus { background: #fff; color: #4a5670; border: 1px solid #d5deea; border-radius: 10px; padding: 11px 16px; font-size: 15px; font-weight: 600; }
#gcb-root .gcb-choice button:hover { border-color: #9ab5df; }
#gcb-root .gcb-choice button[aria-pressed="true"] { background: var(--b5); border-color: #91b5eb; color: var(--b7); }
#gcb-root .gcb-primary, #gcb-root .gcb-primary:hover, #gcb-root .gcb-primary:focus { background: var(--b); color: #fff; border: 0; border-radius: 10px; padding: 13px 22px; font-size: 15px; font-weight: 600; }
#gcb-root .gcb-primary:hover { background: var(--b7); }
.gcb-meter { display: flex; align-items: center; gap: 12px; max-width: 360px; }
.gcb-meter input { width: 100%; min-width: 0; font-size: 20px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
.gcb-meter span { color: var(--muted); }
.gcb-hint { font-size: 14px; color: var(--muted); margin: 8px 0 16px; }
.gcb-details { border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.gcb-details summary { cursor: pointer; color: #47546d; }
.gcb-details select { display: block; width: 100%; max-width: 360px; margin-top: 6px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; }
#gcb-ceiling-options { border: 0; padding: 0 0 16px; }
.gcb-feedback { font-size: 14px; color: var(--muted); margin: 12px 0 0; min-height: 1px; }
.gcb-feedback.is-error { color: #a11818; }
#gcb-results { margin-top: 18px; }

.gcb-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.gcb-table { width: 100%; border-collapse: collapse; min-width: 560px; margin: 0; border: 0; }
.gcb-table th { background: #f6f8fb; color: #68758c; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .45px; padding: 11px 10px; border: 0; font-weight: 600; }
.gcb-table td { border: 0; border-bottom: 1px solid #edf0f5; padding: 12px 10px; font-size: 14px; vertical-align: top; background: none; }
.gcb-table td:first-child { font-weight: 600; width: 44%; }
.gcb-table td:not(:first-child) { white-space: nowrap; }
.gcb-table td a { color: var(--navy); text-decoration: none; }
.gcb-table td a:hover { color: var(--b); text-decoration: underline; }
.gcb-table td small { display: block; font-size: 12px; color: #8490a4; margin-top: 3px; font-weight: 400; }
.gcb-table tr.is-swappable td { background: #fbfdff; }
.gcb-table tbody tr:hover > td { background-color: inherit; }
.gcb-status { display: block; color: #8d4200; font-size: 13px; font-weight: 500; margin-top: 6px; }
.gcb-swap { display: block; width: 100%; min-width: 220px; border: 1.5px solid #6f9be0; background: #f5f9ff; color: #0d2d63; font-weight: 600; font-size: 14px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.gcb-swap:hover { border-color: var(--b); background: var(--b5); }
.gcb-swap-state { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.gcb-swap-state.is-changed { color: #0f6a37; font-weight: 600; }
#gcb-root .gcb-link, #gcb-root .gcb-link:hover, #gcb-root .gcb-link:focus { background: none; border: 0; padding: 0; color: var(--b); text-decoration: underline; font-size: inherit; font-weight: 600; }
/* Itens que o cliente tirou da lista ("já tenho"): X vermelho na direita, fixo mesmo com a tabela rolando no celular. */
.gcb-calc .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gcb-table .gcb-x-cell { position: sticky; right: 0; width: 40px; padding: 8px 4px; text-align: center; }
/* O tema listra as linhas; aqui o fundo é fixo para a coluna do X (sticky) não destoar. */
#gcb-root .gcb-table tbody td { background-color: #fff; }
#gcb-root .gcb-table tbody tr.is-swappable > td { background-color: #fbfdff; }
#gcb-root .gcb-table tbody tr.is-removed > td { background-color: #f7f8fa; }
#gcb-root .gcb-x, #gcb-root .gcb-x:hover, #gcb-root .gcb-x:focus { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d63638; }
#gcb-root .gcb-x:hover { background: #fdecec; }
#gcb-root .gcb-x.is-undo { color: var(--b); }
#gcb-root .gcb-x.is-undo:hover { background: var(--b5); }
.gcb-x svg { width: 18px; height: 18px; }
.gcb-x::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 3; padding: 5px 9px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; box-shadow: 0 4px 12px #0b1b3f33; }
.gcb-x:hover::after, .gcb-x:focus-visible::after { opacity: 1; }
.gcb-table tr.is-removed td { color: #9aa3b2; }
.gcb-table tr.is-removed td:not(:first-child) { text-decoration: line-through; }
.gcb-removed-name { text-decoration: line-through; font-weight: 500; }
.gcb-removed-note { background: #f3f6fb; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #47546d; margin: 0 0 10px; }
.gcb-estimate { background: #fff7e6; border: 1px solid #f1d39a; border-left: 4px solid #d48a0b; border-radius: 8px; padding: 12px 14px; font-size: 14px; color: #5f4209; margin: 4px 0 8px; }
.gcb-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.gcb-summary { position: sticky; top: 110px; overflow: hidden; }
.gcb-summary-top { background: var(--navy); color: #fff; padding: 22px; }
.gcb-sumlabel { font-size: 12px; color: #c6d4f1; font-weight: 600; letter-spacing: .4px; }
.gcb-pix-badge { display: inline-block; margin-top: 14px; padding: 4px 9px; border: 1px solid #a7edc6; border-radius: 6px; background: #d9fbe8; color: #135b34; font-size: 14px; font-weight: 700; }
.gcb-total { font-size: 32px; font-weight: 700; margin: 6px 0 2px; color: #fff; }
.gcb-per { font-size: 13px; color: #c6d4f1; }
.gcb-pix-saving { color: #b7f7cf; font-size: 15px; font-weight: 600; margin: 10px 0 14px; }
.gcb-pix-saving:empty, .gcb-installments:empty { display: none; }
.gcb-pay-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #ffffff40; padding: 14px 0 4px; font-size: 15px; }
.gcb-pay-option strong { font-size: 20px; white-space: nowrap; }
.gcb-installments { color: #c6d4f1; font-size: 14px; margin: 6px 0 0; }
.gcb-sumbody { padding: 18px 22px 22px; }
.gcb-summary-model { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.gcb-summary-model:empty { display: none; }
.gcb-status-box { background: #fff3d6; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
#gcb-root .gcb-cart-button, #gcb-root .gcb-cart-button:hover, #gcb-root .gcb-cart-button:focus { width: 100%; background: var(--b); color: #fff; border: 0; border-radius: 10px; padding: 15px; font-size: 16px; font-weight: 700; margin: 4px 0 10px; }
#gcb-root .gcb-cart-button:hover { background: var(--b7); }
.gcb-cart-result { background: #ecfbf1; border: 1px solid #b6e8c8; color: #0f4f2a; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 10px; }
.gcb-cart-result a { color: var(--b); font-weight: 700; }
.gcb-cart-result small { display: block; color: #5b4a12; margin-top: 6px; font-size: 13px; }
.gcb-cart-result.is-error { background: #fff3f3; border-color: #f2c4c4; color: #7a1515; }
#gcb-root .gcb-secondary, #gcb-root .gcb-secondary:hover, #gcb-root .gcb-secondary:focus { width: 100%; background: #fff; border: 1px solid #cfd8e7; color: #34415a; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 600; margin-top: 8px; }
#gcb-root .gcb-secondary:hover { border-color: #9ab5df; color: var(--navy); }
#gcb-root #gcb-whatsapp:not(:disabled) { border-color: #a6dfb9; color: var(--wa); }
.gcb-fineprint { text-align: center; color: #8b96a8; font-size: 12px; margin: 12px 0 0; }

@media (max-width: 900px) {
	.gcb-layout { grid-template-columns: 1fr; }
	.gcb-summary { position: static; }
}
@media (max-width: 620px) {
	.gcb-calc { padding: 22px 14px 48px; }
	.gcb-panel { padding: 18px 14px; }
	.gcb-table { min-width: 480px; }
}

/* Orçamento em PDF (impressão do navegador): só o documento aparece. */
#gcb-print-quote { display: none; }
@media print {
	@page { size: A4 portrait; margin: 14mm 12mm; }
	body { background: #fff !important; margin: 0; }
	body > *:not(#gcb-print-quote) { display: none !important; }
	#gcb-print-quote { display: block; font: 9pt/1.4 Arial, sans-serif; color: #17233d; }
	.gcb-q-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #004aad; padding-bottom: 10px; gap: 20px; }
	.gcb-q-brand { font-size: 18pt; font-weight: 800; line-height: 1.05; }
	.gcb-q-brand strong { display: block; font-size: 13pt; color: #004aad; }
	.gcb-q-contact { text-align: right; line-height: 1.6; }
	.gcb-q-heading { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; }
	.gcb-q-heading p { margin: 0; font-size: 8pt; letter-spacing: 1px; color: #004aad; }
	.gcb-q-heading h1 { font-size: 22pt; margin: 4px 0; }
	.gcb-q-heading > div:last-child { font-size: 8pt; text-align: right; }
	.gcb-q-project { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border: 1px solid #cbd5e1; padding: 10px; margin: 10px 0; }
	.gcb-q-project dt { font-size: 8pt; color: #526078; }
	.gcb-q-project dd { margin: 3px 0 0; font-weight: bold; }
	.gcb-q-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8pt; }
	.gcb-q-table th { text-align: left; padding: 6px 5px; border-bottom: 2px solid #004aad; color: #004aad; }
	.gcb-q-table th:first-child { width: 44%; }
	.gcb-q-table td { padding: 5px; border-bottom: 1px solid #cbd5e1; vertical-align: top; }
	.gcb-q-table td:last-child, .gcb-q-table th:last-child { text-align: right; }
	.gcb-q-table small { display: block; font-size: 7.5pt; margin-top: 3px; }
	.gcb-q-table tr { break-inside: avoid; }
	.gcb-q-warning { color: #844600; }
	.gcb-q-have { margin: 8px 0 0; font-size: 8.5pt; color: #526078; }
	.gcb-q-alert { margin: 10px 0; padding: 8px 10px; font-size: 8.5pt; border: 1px solid #c98a1c; border-left: 4px solid #c98a1c; background: #fff8ea; color: #734000; }
	.gcb-q-totals { margin: 10px 0; padding: 8px 0; border-top: 3px solid #14823d; break-inside: avoid; }
	.gcb-q-totals h2 { font-size: 9pt; margin: 0 0 4px; font-weight: 600; }
	.gcb-q-payment { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 20px; }
	.gcb-q-payment > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; }
	.gcb-q-payment strong { font-size: 15pt; }
	.gcb-q-payment small { grid-column: 1 / -1; text-align: right; font-size: 8pt; }
	.gcb-q-pix strong, .gcb-q-pix span { color: #126b36; }
	.gcb-q-pix strong { font-size: 20pt; }
	.gcb-q-terms { border-top: 1px solid #cbd5e1; padding-top: 8px; font-size: 7.5pt; }
	.gcb-q-terms p { margin: 4px 0; }
}

/* Campos: o tema usa borda escura e grossa. */
#gcb-root .gcb-meter input { border: 1px solid #cbd5e1; border-radius: 10px; }
#gcb-root .gcb-meter input:focus { border-color: var(--b); box-shadow: 0 0 0 3px #004aad1f; outline: 0; }
