/* The local commerce workspace is independent of document editing and export. */
.commerce-dialog{width:min(720px,calc(100vw - 40px));max-width:720px;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #d9e4ed;border-radius:21px;color:#203e56;background:#f7fafc;box-shadow:0 28px 100px #15314e40;overflow:hidden}
.commerce-dialog[open]{display:flex;flex-direction:column}
.commerce-dialog::backdrop{background:#12304b70;backdrop-filter:blur(4px)}
.commerce-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex:none;padding:21px 28px 18px;border-bottom:1px solid #dfe8ef;background:#fff}
.commerce-header>div{display:flex;align-items:center;gap:20px}
.commerce-header .sevodoc-wordmark{font-size:22px}
.commerce-header small{font-size:8px;font-weight:650;color:#8497a8;letter-spacing:1.1px}
.commerce-close{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #dce5ee;border-radius:50%;background:#fff;color:#5a7387;font-size:25px;line-height:1}
.commerce-close:hover{background:#eef4fa}
.commerce-body{min-height:0;padding:25px 28px 27px;overflow:auto;overscroll-behavior:contain}
.commerce-intro{margin-bottom:22px}
.commerce-dialog h2{font-family:Georgia,'Times New Roman',serif;font-size:30px;line-height:1.18;letter-spacing:-.65px;font-weight:400;margin:0 0 12px;color:#203e56}
.commerce-dialog h3{font-size:16px;line-height:1.4;margin:0 0 9px;color:#284a64}
.commerce-dialog p{font-size:12px;line-height:1.8;color:#6f8496;margin:0 0 13px}
.commerce-intro>p{max-width:570px;margin-bottom:0}
.commerce-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none;padding:16px 28px;border-top:1px solid #dce6ee;background:#fff}
.commerce-footer-note{font-size:10px;line-height:1.6;color:#7b8fa1;max-width:190px}
.commerce-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.commerce-primary,.commerce-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:11px 16px;border:1px solid #214f77;border-radius:8px;font-size:11px;line-height:1.4;font-weight:650;text-align:center}
.commerce-primary{background:#214f77;color:#fff}
.commerce-primary:hover{background:#193e60}
.commerce-secondary{background:#fff;border-color:#d4e0ea;color:#57758f}
.commerce-secondary:hover{background:#eff5fb}
.commerce-dialog button:disabled{opacity:.48;cursor:default}
.commerce-text-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 0;border:0;background:none;color:#356991;font-size:10.5px;line-height:1.45;font-weight:600;text-align:left}
.commerce-text-button:hover{text-decoration:underline;text-underline-offset:3px}
.commerce-text-button>span{font-size:15px}
.commerce-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.commerce-selection-bar>b{font-size:11px;color:#4d718f}
.commerce-document-list{display:grid;gap:9px}
.commerce-document{display:flex;align-items:center;gap:14px;padding:14px 15px;border:1px solid #dce6ef;border-radius:11px;background:#fff}
.commerce-document.selected{border-color:#98bad6;box-shadow:0 0 0 1px #98bad633;background:#f4f9fe}
.commerce-document>label{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;cursor:pointer}
.commerce-document input,.commerce-demo-consent input{width:16px;height:16px;flex:0 0 16px;margin:3px 0 0;accent-color:#326d9f}
.commerce-document-copy{min-width:0}
.commerce-document-copy>b,.commerce-quote-items b,.commerce-dialog .commerce-error{overflow-wrap:anywhere}
.commerce-document-copy>b{display:block;font-size:12px;line-height:1.5;font-weight:600;color:#2a4b64}
.commerce-document-copy>small{display:block;font-size:9px;line-height:1.65;color:#9a8c70;margin-top:4px}
.commerce-document-copy>small.ready{color:#658a7a}
.commerce-document>.commerce-text-button{flex:none;white-space:nowrap}
.commerce-dialog .commerce-selection-help{font-size:10px;margin:14px 0 2px;line-height:1.7;color:#8a9aaa}
.commerce-empty{padding:25px 12px 30px;text-align:center;max-width:520px;margin:auto}
.commerce-empty>p{max-width:420px;margin-inline:auto}
.commerce-empty .commerce-error{margin-top:15px}
.commerce-empty-small{padding:25px 20px;border:1px dashed #cadbe8;border-radius:12px;background:#f2f7fb}
.commerce-symbol{display:flex;align-items:center;justify-content:center;width:51px;height:51px;margin:0 auto 18px;border:1px solid #d4e3ef;border-radius:15px;background:#eaf2fa;color:#48779a;font-size:26px;line-height:1}
.commerce-symbol-success{background:#eaf4ee;border-color:#d0e5d8;color:#4e856a}
.commerce-dialog .commerce-error{padding:12px 14px;margin:0 0 16px;background:#fff3f0;border:1px solid #efd5cc;border-radius:10px;color:#a35e4e;font-size:11px;line-height:1.7}
.commerce-dialog .commerce-information{padding:14px 15px;margin:16px 0;background:#edf5fc;border:1px solid #d7e5f1;border-radius:11px;color:#55758e;font-size:11px;line-height:1.75}
.commerce-information>b{font-size:11px;color:#3e6685}
.commerce-dialog .commerce-information>p{font-size:11px;margin:5px 0 0}
.commerce-information .commerce-text-button{margin-top:4px}
.commerce-quote-items{display:grid;gap:0;padding:0 17px;border:1px solid #dce6ef;border-radius:12px;background:#fff}
.commerce-quote-items>article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #e7edf3}
.commerce-quote-items>article:last-child{border-bottom:0}
.commerce-quote-items>article>div{min-width:0}
.commerce-quote-items b{display:block;font-size:12px;line-height:1.6;color:#31536c;font-weight:600}
.commerce-quote-items small{display:block;font-size:10px;line-height:1.6;color:#8699a8;margin-top:4px}
.commerce-included{display:inline-block;flex:none;border:1px solid #d7e5ed;background:#f3f8fb;border-radius:5px;font-size:8px;padding:4px 6px;color:#6b8a9d}
.commerce-total{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:17px 0;padding:18px 19px;border:1px solid #cddfeb;border-radius:12px;background:#eef5fb}
.commerce-total span{display:block;font-size:9px;letter-spacing:.7px;font-weight:650;color:#527b9b}
.commerce-total small{display:block;margin-top:5px;font-size:10px;color:#8095a6}
.commerce-total strong{font-size:30px;line-height:1.1;letter-spacing:-1px;font-weight:700;color:#214f77;white-space:nowrap}
.commerce-vip-summary{display:flex;gap:17px;padding:18px;border:1px solid #d5e4ef;border-radius:12px;background:#fff}
.commerce-vip-summary .commerce-symbol{flex:0 0 44px;width:44px;height:44px;margin:0;font-size:23px}
.commerce-vip-summary b{font-size:12px;font-weight:650;color:#3c6583}
.commerce-dialog .commerce-vip-summary p{font-size:11px;margin:7px 0 0}
.commerce-demo-note{padding:16px 17px;margin:18px 0 14px;border:1px solid #dce6ed;border-radius:11px;background:#fff}
.commerce-demo-note>b{font-size:11px;color:#44677f}
.commerce-dialog .commerce-demo-note>p{font-size:10.5px;line-height:1.8;margin:6px 0 0;color:#7e91a1}
.commerce-demo-consent{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.7;color:#5d778b;cursor:pointer}
.commerce-dialog .commerce-quote-expiry{font-size:9px;color:#99a8b3;line-height:1.7;margin:15px 0 0}
.commerce-dialog .commerce-validity{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:13px 16px;border:1px solid #d6e6dc;border-radius:10px;background:#eff7f2;color:#6a8a79;font-size:12px;margin-top:20px}
.commerce-validity b{color:#4d7561}
.commerce-dialog .commerce-muted{font-size:10.5px;color:#91a1ad;line-height:1.75;margin-top:16px}
.commerce-complete{text-align:center}
.commerce-loader{display:block;width:25px;height:25px;margin:0 auto 24px;border:2px solid #dce7ef;border-top-color:#4c83af;border-radius:50%;animation:commerce-spin .8s linear infinite}
@keyframes commerce-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){
 .commerce-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 26px);border-radius:17px}
 .commerce-header{padding:17px 18px 15px}.commerce-header>div{gap:12px}.commerce-header .sevodoc-wordmark{font-size:19px}.commerce-header small{font-size:6.5px;letter-spacing:.6px}
 .commerce-body{padding:22px 18px}.commerce-dialog h2{font-size:27px}.commerce-dialog p{font-size:11.5px}
 .commerce-footer{padding:13px 18px;gap:12px;align-items:flex-start}
 .commerce-footer-note{font-size:9px;max-width:113px;padding-top:3px}
 .commerce-footer-actions{gap:7px}
 .commerce-primary,.commerce-secondary{font-size:10.5px;padding:10px 12px;min-height:42px}
 .commerce-document{gap:10px;padding:13px 12px}.commerce-document>label{gap:9px}
 .commerce-document-copy>b{font-size:11px}.commerce-document-copy>small{font-size:8.5px}
 .commerce-text-button{font-size:10px}.commerce-selection-bar{gap:10px}.commerce-selection-bar>b{font-size:10px}
 .commerce-quote-items{padding:0 13px}.commerce-quote-items>article{gap:13px;padding:14px 0}.commerce-quote-items b{font-size:11.5px}.commerce-quote-items small{font-size:9px}
 .commerce-total{padding:16px;margin-top:14px}.commerce-total strong{font-size:28px}
 .commerce-total span{font-size:8px}.commerce-total small{font-size:9px}
 .commerce-vip-summary{gap:12px;padding:15px}.commerce-vip-summary .commerce-symbol{width:36px;height:39px;flex-basis:36px;font-size:20px}
 .commerce-dialog .commerce-vip-summary p{font-size:10.5px}
 .commerce-demo-note{padding:14px}.commerce-demo-consent{font-size:10.5px;gap:9px}
 .commerce-empty{padding:23px 4px}.commerce-symbol{width:45px;height:45px;font-size:24px}
 .commerce-dialog .commerce-validity{font-size:11px}
}
@media(max-width:390px){
 .commerce-footer{display:block}.commerce-footer-note{display:block;max-width:none;padding:0 0 10px}
 .commerce-footer-actions{justify-content:stretch}.commerce-footer-actions>button{flex:1}
 .commerce-document{align-items:flex-start}.commerce-document>.commerce-text-button{font-size:9px;min-height:25px}
}
@media(prefers-reduced-motion:reduce){.commerce-loader{animation:none;border-color:#acc5d9;border-top-color:#4c83af}}
@media(pointer:coarse){.commerce-close{width:44px;height:44px;flex-basis:44px}.commerce-text-button,.commerce-document>.commerce-text-button{min-height:44px}.commerce-primary,.commerce-secondary{min-height:44px}}
