/* Quotation controls reuse the public navy/blue theme and fonts. */
.cart-modal-box>#closeCartModal{position:sticky;float:right;top:0;right:auto;margin:-24px -24px 0 0;min-width:44px;min-height:44px;background:#f8f6f0;border-radius:50%;color:#102452}
#quoteForm .quote-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
#quoteForm label{display:grid;gap:7px;min-width:0;color:var(--ink);font-size:13px;font-weight:600}
#quoteForm .quote-field-wide{grid-column:1/-1}
#quoteForm input,#quoteForm select,#quoteForm textarea{width:100%;min-width:0;padding:12px;border:1px solid #cbd7e4;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:16px;font-weight:400;line-height:1.4}
#quoteForm textarea{resize:vertical;max-height:260px}
#quoteForm input:focus-visible,#quoteForm select:focus-visible,#quoteForm textarea:focus-visible{outline:3px solid #087daa;outline-offset:2px}
#quoteForm .quote-note{font-size:12px;line-height:1.6;color:#526480;overflow-wrap:anywhere}
.quote-actions{display:grid;gap:10px;margin-top:20px}
#quoteForm .quote-actions button{min-height:48px;white-space:normal;text-align:center;font:600 15px/1.4 'DM Sans','Kanit',sans-serif}
#quoteForm .quote-line-button{background:#fff;color:#102452;border:1px solid #b8cddd}
#quoteForm .quote-line-button:hover:not(:disabled){background:#eaf5fa}
#quoteForm button:disabled{opacity:.65;cursor:not-allowed;box-shadow:none}
.quote-copy-button{background:none;border:0;color:#126b9f;min-height:44px;padding:8px 0;font:600 13px/1.4 'DM Sans','Kanit',sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.quote-privacy-link{display:inline-block;color:#126b9f;font-size:12px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
.quote-status{margin:12px 0 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.quote-status:empty{display:none}
.quote-status[data-kind="error"]{color:#a4252d}
.quote-status[data-kind="success"]{color:#23704c}
.quote-status[data-kind="info"]{color:#526480}
#quoteForm .quote-trap,#quoteForm .quote-manual-copy[hidden]{display:none}
#quoteForm .quote-manual-copy textarea{font-size:13px;font-weight:400}
@media(max-width:600px){#quoteForm .quote-fields{grid-template-columns:minmax(0,1fr);gap:13px}.cart-modal-box{max-height:92dvh;width:calc(100vw - 24px)}.cart-modal-box>#closeCartModal{margin:-14px -10px 0 0}.cart-modal-box h2{font-size:30px;letter-spacing:-1px}}
/* Expanded estimate uses the site's font, navy, blue and neutral card tokens. */
@font-face{font-family:AAI Quote;src:url('assets/vendor/pdf/Kanit-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:AAI Quote;src:url('assets/vendor/pdf/Kanit-SemiBold.ttf') format('truetype');font-weight:600 700;font-display:swap}
.quote-estimate-action{border-top:1px solid #d5e0e9;border-bottom:1px solid #d5e0e9;padding:20px 0;margin:20px 0}
#quotePreviewPane[hidden]{display:none}
.cart-modal-box.quote-preview-open{width:min(1160px,100%);background:var(--cream);min-width:0}
#quoteFormMount,#quotePreviewPane,#quoteDocument,.estimate-sheet,.estimate-details>section{min-width:0;max-width:100%}
.cart-modal-box.quote-preview-open>#closeCartModal{margin:-12px -8px 0 0}
.quote-preview-open>.eyebrow,.quote-preview-open>h2,.quote-preview-open>#cartItems,.quote-preview-open>.quote-summary,.quote-preview-open #quoteForm{display:none}
.quote-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding-right:24px;flex-wrap:wrap}
.quote-preview-toolbar h2{font-size:28px;margin:0 0 8px;letter-spacing:-.7px}
.quote-preview-toolbar p{font-size:14px;color:var(--muted);margin:0;max-width:480px;line-height:1.6}
.quote-preview-actions{display:flex;gap:10px;flex-wrap:wrap}
.quote-preview-actions button{min-height:44px;padding:12px 16px;border-radius:6px;font:600 14px/1.4 var(--aai-font,'DM Sans','Kanit',sans-serif)}
.quote-preview-actions .quote-line-button{border:1px solid #b8cddd;background:white;color:var(--ink)}
.quote-preview-actions button:disabled{opacity:.65;cursor:wait}
.estimate-sheet{background:white;border:1px solid #d5e0e9;border-top:3px solid #2c9bd6;border-radius:8px;padding:32px;margin:20px auto;max-width:940px;color:#102452;font:400 14px/1.6 var(--aai-font,'DM Sans','Kanit',sans-serif)}
.estimate-sheet:lang(th){font-family:'AAI Quote','Kanit',sans-serif}
.estimate-brand{display:flex;gap:26px;align-items:center;border-bottom:1px solid #d5e0e9;padding-bottom:20px;margin-bottom:24px}
.estimate-brand img{width:124px;height:auto;flex-shrink:0}
.estimate-brand strong{font-weight:700;font-size:15px}
.estimate-brand p{font-size:11px;color:#526480;margin:5px 0;line-height:1.6}
.estimate-title{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.estimate-sheet h3{font-size:22px;letter-spacing:-.3px;font-weight:600;margin:0 0 12px}
.estimate-title span{background:#eaf5fa;color:#126b9f;font-size:11px;font-weight:700;padding:6px 10px;border-radius:4px}
.estimate-disclaimer{font-size:12px;color:#526480;line-height:1.7;margin:12px 0 20px}
.estimate-details{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:24px 0}
.estimate-sheet h4{font-size:14px;font-weight:700;margin:0 0 10px}
.estimate-sheet dl{margin:0}
.estimate-sheet dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;padding:5px 0;align-items:start}
.estimate-sheet dt{font-size:12px;color:#526480}.estimate-sheet dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px}
.estimate-table-scroll{overflow:auto;max-width:100%;border:1px solid #d5e0e9;border-radius:5px}
.estimate-table{border-collapse:collapse;width:100%;min-width:730px;font-size:12px;table-layout:fixed}
.estimate-table caption{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.estimate-table th{background:#eaf5fa;font-size:11px;font-weight:700;text-align:left;padding:12px 8px;vertical-align:top}
.estimate-table td{padding:12px 8px;border-top:1px solid #d5e0e9;vertical-align:top;overflow-wrap:anywhere}
.estimate-table th:first-child{width:5%}.estimate-table th:nth-child(2){width:14%}.estimate-table th:nth-child(3){width:12%}.estimate-table th:nth-child(4){width:29%}.estimate-table th:nth-child(5){width:6%}.estimate-table th:nth-child(6),.estimate-table th:nth-child(7){width:17%}
.estimate-table td:nth-child(n+5),.estimate-table th:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums}
.estimate-totals{margin:18px 0 18px auto;max-width:350px}
.estimate-totals dl>div{grid-template-columns:1fr 140px}.estimate-totals dd{text-align:right;font-variant-numeric:tabular-nums}
.estimate-totals dl>div:last-child{background:#eaf5fa;padding:12px;border-radius:5px;margin-top:8px}
.estimate-totals dl>div:last-child dd{font-size:19px;font-weight:700}.estimate-totals dl>div:last-child dt{font-weight:700;color:#102452}
.estimate-terms section{margin:24px 0}.estimate-customer-notes{white-space:pre-wrap;overflow-wrap:anywhere;color:#526480;font-size:13px}
.estimate-terms li{padding:0 0 12px;color:#526480;font-size:13px;line-height:1.8}
.estimate-approval{border-top:1px solid #d5e0e9;margin-top:28px;padding-top:18px}
:is(.quote-preview-actions button,.estimate-table-scroll):focus-visible{outline:3px solid #087daa;outline-offset:3px}
@media(max-width:768px){.quote-preview-open{padding:26px 20px}.quote-preview-toolbar{padding-right:24px}.estimate-sheet{padding:22px}.estimate-details{grid-template-columns:minmax(0,1fr);gap:20px}.estimate-brand{gap:16px;align-items:flex-start}.estimate-brand img{width:90px}}
@media(max-width:440px){.quote-preview-open{padding:22px 14px}.quote-preview-toolbar{padding-right:0}.quote-preview-toolbar h2{font-size:21px;padding-right:44px}.quote-preview-actions{width:100%;display:grid;grid-template-columns:1fr}.quote-preview-actions #backToQuote{grid-column:1/-1}.estimate-sheet{padding:18px 14px}.estimate-brand{display:block}.estimate-brand img{width:105px;margin-bottom:12px}.estimate-sheet dl>div{grid-template-columns:100px minmax(0,1fr);gap:10px}.estimate-totals dl>div{grid-template-columns:1fr 110px}.estimate-totals dl>div:last-child dd{font-size:17px}}
@page{size:letter;margin:12mm}
@media print{
 body.printing-estimate{background:white!important;overflow:visible!important;font-size:10pt}
 body.printing-estimate> :not(#cartModal){display:none!important}
 body.printing-estimate #cartModal{position:static!important;display:block!important;background:white!important;padding:0!important;inset:auto!important}
 body.printing-estimate .cart-modal-box{width:100%!important;max-height:none!important;overflow:visible!important;padding:0!important;background:white!important;box-shadow:none!important}
 body.printing-estimate #closeCartModal,body.printing-estimate .quote-preview-toolbar,body.printing-estimate #quoteDocumentStatus{display:none!important}
 body.printing-estimate .estimate-sheet{border:0;border-radius:0;padding:0;margin:0;max-width:none;font-family:'AAI Quote',sans-serif;font-size:9pt}
 body.printing-estimate .estimate-terms{break-before:page}
 body.printing-estimate .estimate-details{grid-template-columns:1fr 1fr;gap:24px}
 body.printing-estimate .estimate-brand{display:flex;break-inside:avoid}
 body.printing-estimate .estimate-brand img{width:100px}
 body.printing-estimate .estimate-table-scroll{overflow:visible;border:0}
 body.printing-estimate .estimate-table{min-width:0;font-size:8pt}
 body.printing-estimate thead{display:table-header-group}
 body.printing-estimate tr,body.printing-estimate .estimate-totals{break-inside:avoid}
 body.printing-estimate .estimate-table th,body.printing-estimate .estimate-table td{padding:7px 5px;font-size:8pt}
 body.printing-estimate .estimate-title span{border:1px solid #b8cddd}
}
