.estimate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.estimate-actions .back-link { margin: 0; }
.estimate-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.estimate-section-heading h3 { margin: 0; font-size: 16px; }
.estimate-optional { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.estimate-form .bags-form__grid { margin-top: 14px; }
.estimate-form .estimate-field--missing input:not([type="checkbox"]), .estimate-form .estimate-field--missing select { background: color-mix(in srgb, var(--danger) 5%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.estimate-form .bags-form__field .estimate-required-note,.estimate-form summary .estimate-required-note { color: var(--danger); font-weight: 550; }
.estimate-required-note[hidden] { display: none; }
.estimate-geis-note { color: var(--danger); font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.estimate-form .estimate-field--missing input[type="checkbox"] { outline: 1px solid var(--danger); outline-offset: 2px; }
#geis-pallet-plan { scroll-margin-top: 20px; }
.estimate-form [data-product-state], .estimate-form [data-tare-state] { color: var(--ink); }
.estimate-form [data-load-product] { align-self: start; margin-top: 6px; }
.estimate-field--url { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 6px 12px; }
.estimate-field--url > label,.estimate-field--url > small,.estimate-field--url > .bags-form__error { grid-column: 1 / -1; }
.estimate-form .estimate-field--url [data-load-product] { margin-top: 0; min-height: 40px; }
.estimate-form .bags-form__field small { line-height: 1.55; }
.estimate-form .bags-form__field.bags-form__field--check { display: grid; grid-template-columns: 17px minmax(0,1fr); grid-auto-flow: row; align-items: start; align-self: start; gap: 6px 10px; }
.estimate-form .bags-form__field--check > input { grid-column: 1; grid-row: 1; margin-top: 2px; }
.estimate-form .bags-form__field--check > label { grid-column: 2; grid-row: 1; }
.estimate-form .bags-form__field--check > small,.estimate-form .bags-form__field--check > .bags-form__error { grid-column: 1 / -1; }
.estimate-row { min-width: 0; margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.estimate-row legend { padding: 0 7px; font-size: 13px; font-weight: 650; }
.estimate-row[hidden] { display: none; }
.estimate-form [data-legacy-packing][hidden], .estimate-form [data-estimate-cell][hidden] { display: none; }
.estimate-carton-summary { margin: 14px 0 0; color: var(--ink); font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.estimate-row-footer { display: flex; justify-content: end; margin-top: 12px; }
.estimate-delete-field { display: none; }
.estimate-more { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.estimate-more summary { width: fit-content; max-width: 100%; cursor: pointer; font-size: 13px; font-weight: 550; padding: 4px 0; color: var(--ink); }
.estimate-more summary:hover { color: var(--accent); }
.estimate-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.estimate-more p { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.estimate-submit { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 16px 0 24px; }
.estimate-submit .estimate-actions { margin: 0; }
.estimate-notice { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--surface); margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.estimate-notice--error { border-color: var(--danger); }
.estimate-notice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.estimate-notice p { margin: 4px 0 0; }
.estimate-quote-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.estimate-quote { min-width: 0; background: var(--surface); padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.estimate-status { display: inline-flex; padding: 4px 8px; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.4; }
.estimate-quote--historical .estimate-status { border-style: dashed; }
.estimate-price { margin: 18px 0; font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.estimate-price small { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: normal; white-space: nowrap; }
.estimate-no-price { margin: 18px 0; font-size: 16px; font-weight: 550; }
.estimate-costs { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; font-size: 12px; line-height: 1.5; }
.estimate-costs dt { color: var(--muted); }
.estimate-costs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.estimate-costs dt:has(strong),.estimate-costs dd:has(strong) { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); }
.estimate-reason { font-size: 13px; line-height: 1.6; }
.estimate-packing-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; padding: 12px 0; }
.estimate-packing-summary > div { display: grid; gap: 5px; font-size: 13px; }
.estimate-packing-summary span { color: var(--muted); }
.estimate-leg-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.estimate-leg-result > h3 { margin: 0; font-size: 14px; }
.estimate-component + .estimate-component { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.estimate-component > strong { font-size: 12px; }
.estimate-table-wrap { overflow: auto; margin-top: 14px; }
.estimate-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; text-align: left; }
.estimate-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.estimate-table th,.estimate-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.estimate-table td { overflow-wrap: anywhere; max-width: 360px; }
.estimate-empty { padding: 30px 12px; text-align: center; font-size: 13px; line-height: 1.6; }
.estimate-total { padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.estimate-results { scroll-margin-top: 20px; }
.estimate-pallet-result { padding: 20px 0 8px; }
.estimate-pallet-result h4 { margin: 0 0 8px; font-size: 14px; }
.estimate-pallet-result > .button { margin-top: 12px; }
@media (max-width: 768px) { .estimate-quote-grid { grid-template-columns: 1fr; } .estimate-section-heading { flex-wrap: wrap; gap: 10px; } .estimate-row { padding: 10px; } .estimate-quote { padding: 14px; } .estimate-submit { align-items: start; } }
@media (prefers-reduced-motion: reduce) { .estimate-form *, .estimate-results * { transition: none !important; } }
@media (max-width: 480px) { .estimate-field--url { grid-template-columns: 1fr; } .estimate-field--url [data-load-product] { justify-self: start; } }
