.quote-builder { max-width: 760px; margin: 40px auto 0; color: #302821; font-size: 16px; line-height: 1.4; letter-spacing: -.01em; }
.quote-builder[hidden], .quote-builder [hidden] { display: none !important; }
.quote-builder .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.quote-workspace { border: 1px solid #e8e1da; border-radius: 24px; background: #fff; padding: 40px; scroll-margin-top: 128px; }
.quote-progress { margin-bottom: 28px; }
.quote-progress p { color: #62584f; font-size: 14px; margin-bottom: 12px; }
.quote-progress [role="progressbar"] { height: 4px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.quote-progress [role="progressbar"] span { display: block; width: 16.666%; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s; }
.quote-panel h3 { font-size: 36px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 24px; }
.quote-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; }
.quote-type { position: relative; cursor: pointer; min-width: 0; }
.quote-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quote-type > span { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid #dcd4cd; border-radius: 14px; height: 100%; transition: border-color .2s, background .2s; }
.quote-type input:checked + span { border-color: var(--accent); background: #85021607; box-shadow: inset 0 0 0 1px var(--accent); }
.quote-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.quote-type svg { width: 36px; height: 36px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.quote-type strong { font-size: 16px; font-weight: 500; line-height: 1.3; }
.quote-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: nowrap; }
.quote-actions .quote-link[data-action="back"] { flex: none; min-height: 46px; padding: 10px 18px; border: 1px solid #ded6d0; border-radius: 999px; background: #f7f4f0; color: #62584f; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.quote-actions .quote-link[data-action="back"]:hover { background: #85021608; color: var(--accent); border-color: #85021655; }
.quote-actions .quote-link[data-action="back"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quote-actions > .unified-cta:last-child { margin-left: auto; }
.quote-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 8px 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font: 400 15px/1.3 "Elms Sans", sans-serif; letter-spacing: -.01em; cursor: pointer; }
.quote-link:disabled { opacity: .5; cursor: not-allowed; }
.quote-help { font-size: 15px; line-height: 1.4; color: #62584f; margin: -8px 0 24px; }
.quote-help:empty, .quote-status:empty { display: none; }
.quote-fields { display: grid; gap: 20px; }
.quote-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.quote-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 16px; }
.quote-field input, .quote-field select, .quote-field textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #dcd4cd; border-radius: 10px; padding: 12px; background: var(--surface); color: var(--ink); font: 400 16px/1.4 "Elms Sans", sans-serif; letter-spacing: -.01em; }
.quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.quote-field [aria-invalid="true"] { border-color: var(--accent); }
.quote-field input:disabled { opacity: .4; cursor: not-allowed; }
.quote-field textarea { resize: vertical; min-height: 96px; }
.quote-field > small { color: var(--accent); font-size: 14px; line-height: 1.35; }
.quote-field > small:empty { display: none; }
.quote-quantity input, #quote-drawers-field input { max-width: 110px; }
.quote-check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; cursor: pointer; }
.quote-check input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.quote-extras { display: flex; flex-direction: column; gap: 16px; }
.quote-extras .quote-field { margin-top: 8px; }
.finish-texture { background-color: #f8f6f0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.quote-finish-preview { margin: 20px 0 0; }
.quote-swatch { height: 220px; border: 1px solid #e8e1da; border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff30; }
.quote-finish-preview figcaption { margin-top: 8px; color: #746960; font-size: 12px; text-align: right; }
.quote-select { position: relative; min-width: 0; }
.quote-select-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid #dcd4cd; border-radius: 12px; background: #faf8f5; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.quote-select-trigger:hover { border-color: #85021670; }
.quote-select-trigger:focus-visible, .quote-select-trigger[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #85021610; }
.quote-select-thumb { display: block; flex: none; width: 32px; height: 32px; border: 1px solid #00000010; border-radius: 7px; }
.quote-select-chevron { flex: none; width: 8px; height: 8px; margin: 0 3px 4px auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.quote-select-trigger[aria-expanded="true"] .quote-select-chevron { transform: rotate(225deg); margin-bottom: -4px; }
.quote-select-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 12; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e8e1da; border-radius: 14px; padding: 6px; background: #fff; box-shadow: 0 12px 36px #30282120; scrollbar-width: thin; scrollbar-color: #c5b6af transparent; }
.quote-select-group { padding: 16px 10px 7px; color: #746960; font-size: 12px; font-weight: 500; }
.quote-select-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.quote-select-option:hover, .quote-select-option.is-active { background: #f6f2ee; }
.quote-select-option[aria-selected="true"] { color: var(--accent); background: #85021608; }
.quote-select-option[aria-selected="true"]::after { content: '✓'; margin-left: auto; font-weight: 600; }
.quote-details { margin-top: 20px; border-top: 1px solid #e8e1da; padding-top: 8px; }
.quote-details summary, .quote-item-details summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--accent); font-size: 15px; }
.quote-details p { margin: 8px 0 16px; font-size: 15px; line-height: 1.4; color: #62584f; }
.quote-details > .quote-field { margin-top: 12px; }
.quote-summary { padding: 24px; border-radius: 16px; background: var(--accent); color: #fff; margin-bottom: 16px; }
.quote-summary p { color: #fff; font-size: 15px; }
.quote-summary output { display: block; margin: 10px 0 12px; font-size: clamp(25px, 3vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.quote-summary .quote-disclaimer { font-size: 14px; line-height: 1.4; color: #ffffffdc; }
.quote-assembly { margin: 8px 0; }
#quote-count { margin: 8px 0 16px; }
.quote-items { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.quote-item { border: 1px solid #e8e1da; border-radius: 14px; padding: 20px; }
.quote-item h4 { font: 500 17px/1.3 "Elms Sans", sans-serif; letter-spacing: -.01em; }
.quote-item p { font-size: 15px; line-height: 1.4; white-space: pre-line; margin-top: 8px; color: #62584f; }
.quote-item .quote-item-price { color: var(--accent); font-weight: 500; }
.quote-item-actions { display: flex; gap: 24px; }
.quote-project-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 12px; }
.quote-status { margin: 12px 0 0; font-size: 15px; line-height: 1.4; color: var(--accent); }
.quote-noscript { margin-top: 24px; padding: 24px; border: 1px solid #85021630; border-radius: 16px; }
.whatsapp-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; display: grid; place-items: center; background: var(--accent, #850216); color: #fff; border-radius: 50%; box-shadow: 0 5px 20px #0003; transition: transform .2s, background .2s; }
.whatsapp-float:hover { transform: translateY(-3px); background: #690211; }
.whatsapp-float { overflow: hidden; isolation: isolate; }
.whatsapp-float svg { width: 30px; height: 30px; }
.foot-credit a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-root { padding-bottom: 96px; }
@media (max-width: 809px) {
  .quote-builder { margin-top: 32px; }
  .quote-workspace { padding: 24px; border-radius: 20px; scroll-margin-top: 104px; }
  .quote-panel h3 { font-size: 30px; }
  .quote-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quote-type > span { padding: 14px; gap: 10px; }
  .quote-type strong { font-size: 15px; }
  .quote-type svg { width: 30px; height: 30px; }
  .quote-dimensions { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .quote-dimensions .quote-field { display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 6px 12px; }
  .quote-dimensions .quote-field > small { grid-column: 1 / -1; }
  .quote-summary, .quote-item { padding: 18px; }
  .whatsapp-float { width: 54px; height: 54px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .quote-workspace { padding: 20px 16px; }
  .quote-actions { gap: 10px; }
  .quote-type > span { padding: 12px 10px; }
  .quote-dimensions .quote-field { grid-template-columns: minmax(0, 1fr) 96px; }
}
@media (max-width: 420px) {
  .quote-actions .quote-link[data-action="back"] { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .quote-actions .unified-cta { gap: 7px; padding-left: 12px; font-size: 13px; min-height: 44px; }
  .quote-actions .unified-cta .cta-icon-circle { width: 30px; height: 30px; }
  .quote-swatch { height: 180px; }
}
