/* Shared inquiry and assistant surfaces. Keep existing data and submission handlers. */
body.kws-modern #kws-cart-dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px;max-height:92dvh;padding:0!important;border:1px solid #d9e2e7!important;border-radius:4px!important;background:#fff;color:#223742;font:400 14px/1.5 Arial,"PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 24px 80px #0d283338}
body.kws-modern #kws-cart-dialog[open]{display:flex;flex-direction:column}
body.kws-modern #kws-cart-dialog::backdrop{background:#10273570;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.kws-modern #kws-cart-dialog .kws-cart-head{position:relative;flex:none;min-height:56px;padding:10px 20px;background:#eef1f3;border-bottom:1px solid #dce4e9}
body.kws-modern #kws-cart-dialog .kws-cart-head h2{margin:0!important;font-size:19px!important;line-height:1.4!important;font-weight:500!important;letter-spacing:0;color:#203541}
body.kws-modern #kws-cart-dialog .kws-cart-close{display:grid;place-items:center;width:34px;height:34px;padding:0!important;border:1px solid #d2dde4!important;border-radius:2px!important;background:transparent;color:#5a7281;font:400 23px/1 Arial,sans-serif}
body.kws-modern #kws-cart-dialog .kws-cart-body{flex:1;min-height:0;overflow:auto;padding:14px 20px 0;scrollbar-width:thin;scrollbar-color:#b5c4ce transparent;overscroll-behavior:contain}
body.kws-modern #kws-cart-dialog .kws-cart-hint{font-size:11px;line-height:1.5;color:#708592;margin:0 0 12px}
body.kws-modern #kws-cart-dialog .kws-cart-table{border:0;border-top:1px solid #dce4e9}
body.kws-modern #kws-cart-dialog .kws-cart-table-head,body.kws-modern #kws-cart-dialog .kws-cart-row{grid-template-columns:28px 60px minmax(150px,1.25fr) minmax(150px,1fr) 60px 34px;gap:10px;padding:10px 8px}
body.kws-modern #kws-cart-dialog .kws-cart-table-head{background:#f1f4f6;color:#67808f;font-size:11px;line-height:1.5;font-weight:400}
body.kws-modern #kws-cart-dialog .kws-cart-row{background:#fff;border:0;border-bottom:1px solid #e4eaee;min-height:78px}
body.kws-modern #kws-cart-dialog .kws-cart-row:nth-child(odd){background:#fafbfc}
body.kws-modern #kws-cart-dialog .kws-cart-number{font-size:11px;color:#8b9da9;font-variant-numeric:tabular-nums}
body.kws-modern #kws-cart-dialog .kws-cart-row img{width:54px;height:58px;object-fit:contain}
body.kws-modern #kws-cart-dialog .kws-cart-row h3{font:500 13px/1.55 Arial,"PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:0!important;margin:0!important;color:#243e4d}
body.kws-modern #kws-cart-dialog label{font-size:12px!important;font-weight:400!important;line-height:1.5;color:#627b8b;margin:0!important}
body.kws-modern #kws-cart-dialog input,body.kws-modern #kws-cart-dialog textarea{box-sizing:border-box;font-family:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important;color:#203b4b!important;background:#fff!important;border:1px solid #cbd7df!important;border-radius:2px!important;box-shadow:none!important;outline:none;padding:8px 10px!important;margin:5px 0 0!important;min-height:38px;height:38px;min-width:0}
body.kws-modern #kws-cart-dialog input:focus,body.kws-modern #kws-cart-dialog textarea:focus{border-color:#547b91!important;box-shadow:0 0 0 2px #547b9114!important}
body.kws-modern #kws-cart-dialog input::placeholder,body.kws-modern #kws-cart-dialog textarea::placeholder{color:#91a1ac;opacity:1}
body.kws-modern #kws-cart-dialog .kws-cart-row input{margin:0!important;height:36px;min-height:36px}
body.kws-modern #kws-cart-dialog textarea{height:62px;min-height:48px;resize:vertical}
body.kws-modern #kws-cart-dialog .kws-cart-model details{margin:5px 0 0;color:#7e929f;font-size:11px;font-weight:400}
body.kws-modern #kws-cart-dialog .kws-cart-model summary{padding:2px 0;line-height:1.5;cursor:pointer}
body.kws-modern #kws-cart-dialog .kws-cart-remove{position:static;width:30px;height:34px;display:grid;place-items:center;justify-self:center;background:transparent!important;border:0!important;border-radius:2px!important;font-size:0!important;padding:0!important;color:#7e929f}
body.kws-modern #kws-cart-dialog .kws-cart-remove::after{content:'';display:block;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 10v7m4-7v7'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 10v7m4-7v7'/%3E%3C/svg%3E") center/contain no-repeat}
body.kws-modern #kws-cart-dialog .kws-cart-remove:hover{color:#d91b2e;background:#fff0f2!important}
body.kws-modern #kws-cart-dialog .kws-cart-fields{gap:12px 18px;margin:18px 0 0;padding:0;border:0}
body.kws-modern #kws-cart-dialog .kws-cart-actions{position:sticky;bottom:0;z-index:1;display:flex;justify-content:flex-end;gap:10px;margin:14px 0 0;padding:12px 0;background:#ffffffed;border-top:1px solid #e4eaee;backdrop-filter:blur(8px)}
body.kws-modern #kws-cart-dialog .kws-cart-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0!important;padding:8px 16px!important;border:1px solid #c8d6df!important;border-radius:2px!important;background:#fff;color:#446476;font-family:inherit;font-size:13px!important;font-weight:500!important;line-height:1.5!important;box-shadow:none!important}
body.kws-modern #kws-cart-dialog .kws-cart-actions .kws-cart-submit{border-color:#ed001b!important;background:#ed001b!important;color:#fff!important}
body.kws-modern #kws-cart-dialog .kws-cart-status{font-size:12px;line-height:1.5;font-weight:400;margin:0 0 10px}
body.kws-modern #kws-cart-dialog button:focus-visible{outline:2px solid #547b91;outline-offset:2px}
body.kws-modern #kws-ai-drawer{width:min(550px,calc(100vw - 32px));max-width:calc(100vw - 32px);border:1px solid #d6e0e7;border-radius:4px;background:#fff;box-shadow:0 24px 80px #17354a29;font:400 14px/1.55 Arial,"PingFang SC","Microsoft YaHei",sans-serif}
body.kws-modern #kws-ai-drawer::backdrop{background:#10273555;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
body.kws-modern #kws-ai-drawer .kws-ai-drawer-head{padding:10px 16px;background:#eef1f3;gap:10px;min-height:54px;border-bottom:1px solid #dce4e9}
body.kws-modern #kws-ai-drawer .kws-ai-drawer-head strong{font-size:15px;font-weight:500;line-height:1.4;letter-spacing:0}
body.kws-modern #kws-ai-drawer .kws-ai-drawer-tools a,body.kws-modern #kws-ai-drawer .kws-ai-drawer-tools button{width:32px;height:32px;min-height:32px;border-radius:2px!important;background:transparent!important;font-size:21px!important;font-weight:400!important}
body.kws-modern #kws-ai-drawer .kws-ai-human{padding:9px 16px;background:#f4f7f8;font-size:12px;line-height:1.5}
body.kws-modern #kws-ai-drawer .kws-ai-human summary{font-weight:400;min-height:24px;line-height:24px}
body.kws-modern #kws-ai-drawer .kws-ai-human nav{gap:8px 14px;margin:8px 0;font-size:12px}
@media(max-width:1100px){body.kws-modern #kws-ai-drawer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0}}
@media(max-width:650px){
 body.kws-modern #kws-cart-dialog{width:calc(100vw - 16px);max-height:96dvh}
 body.kws-modern #kws-cart-dialog .kws-cart-head{padding:8px 12px;min-height:50px}
 body.kws-modern #kws-cart-dialog .kws-cart-head h2{font-size:17px!important}
 body.kws-modern #kws-cart-dialog .kws-cart-body{padding:10px 12px 0}
 body.kws-modern #kws-cart-dialog .kws-cart-table-head{display:none}
 body.kws-modern #kws-cart-dialog .kws-cart-row{grid-template-columns:20px 46px minmax(0,1fr) 52px;gap:7px 8px;min-height:100px;padding:10px 0}
 body.kws-modern #kws-cart-dialog .kws-cart-row img{width:44px;height:48px}
 body.kws-modern #kws-cart-dialog .kws-cart-row h3{font-size:12px!important;line-height:1.5!important;padding-right:27px}
 body.kws-modern #kws-cart-dialog .kws-cart-remove{position:absolute;top:6px;right:0;width:28px;height:32px}
 body.kws-modern #kws-cart-dialog .kws-cart-model{grid-column:2/4;grid-row:2}
 body.kws-modern #kws-cart-dialog .kws-cart-qty{grid-column:4;grid-row:2}
 body.kws-modern #kws-cart-dialog .kws-cart-fields{gap:10px 12px;margin-top:14px}
 body.kws-modern #kws-cart-dialog input,body.kws-modern #kws-cart-dialog textarea{font-size:16px!important}
 body.kws-modern #kws-cart-dialog .kws-cart-actions{padding-bottom:max(10px,env(safe-area-inset-bottom));gap:8px}
 body.kws-modern #kws-cart-dialog .kws-cart-actions button{font-size:12px!important;padding:8px 10px!important}
 body.kws-modern #kws-ai-drawer .kws-ai-drawer-head{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px;min-height:50px}
 body.kws-modern #kws-ai-drawer .kws-ai-human{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}

/* Small regular typography and explicit WebKit dialog geometry. */
body.kws-modern #kws-cart-dialog{position:fixed!important;inset:0!important;margin:auto!important;height:min(780px,92vh)!important;height:min(780px,92dvh)!important;max-height:92vh;max-height:92dvh;font-family:var(--kws-service-font,Arial,sans-serif)!important;font-size:12px!important;font-weight:400!important;-webkit-text-size-adjust:100%;text-size-adjust:100%;font-synthesis:none;-webkit-font-smoothing:antialiased}
body.kws-modern #kws-cart-dialog:not([open]){display:none!important}
body.kws-modern #kws-cart-dialog .kws-cart-head{min-height:44px;padding:6px 14px}
body.kws-modern #kws-cart-dialog .kws-cart-head h2{font-size:15px!important;font-weight:400!important}
body.kws-modern #kws-cart-dialog .kws-cart-body{padding:10px 14px 0;-webkit-overflow-scrolling:touch;touch-action:pan-y}
body.kws-modern #kws-cart-dialog .kws-cart-row{min-height:66px;padding:8px 6px}
body.kws-modern #kws-cart-dialog .kws-cart-row h3{font-family:var(--kws-service-font,Arial,sans-serif)!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important}
body.kws-modern #kws-cart-dialog label{font-size:11px!important;font-weight:400!important}
body.kws-modern #kws-cart-dialog input,body.kws-modern #kws-cart-dialog textarea{font-family:var(--kws-service-font,Arial,sans-serif)!important;font-size:13px!important;font-weight:400!important;min-height:32px!important;height:32px;padding:5px 8px!important;line-height:1.45!important;border-color:#d4dfe5!important}
body.kws-modern #kws-cart-dialog .kws-cart-row input{height:32px!important;min-height:32px!important}
body.kws-modern #kws-cart-dialog textarea{height:48px;min-height:42px!important}
body.kws-modern #kws-cart-dialog .kws-cart-fields{gap:9px 14px;margin-top:12px}
body.kws-modern #kws-cart-dialog .kws-cart-actions{padding:8px 0}
body.kws-modern #kws-cart-dialog .kws-cart-actions button{font-size:12px!important;font-weight:400!important;min-height:34px!important;padding:6px 12px!important}
body.kws-modern #kws-ai-drawer{font-family:var(--kws-service-font,Arial,sans-serif)!important;font-weight:400!important;-webkit-text-size-adjust:100%;text-size-adjust:100%;font-synthesis:none;-webkit-font-smoothing:antialiased}
body.kws-modern #kws-ai-drawer .kws-ai-drawer-head{min-height:44px;padding:6px 12px}
body.kws-modern #kws-ai-drawer .kws-ai-drawer-head strong{font-size:13px!important;font-weight:400!important}
body.kws-modern .kws-cart-scrim{position:fixed!important;inset:0!important;z-index:2147483000!important;background:#10273570;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.kws-modern #kws-cart-dialog.kws-cart-fallback{z-index:2147483001!important;display:flex!important;visibility:visible!important;opacity:1!important}
@media(max-width:900px){body.kws-modern #kws-modern-header .utility{display:flex!important;min-height:36px!important;height:36px!important;overflow:visible!important}body.kws-modern #kws-modern-header .utility-tools{display:flex!important;width:100%!important;justify-content:space-between!important;visibility:visible!important}body.kws-modern #kws-modern-header .cart-trigger{display:flex!important;visibility:visible!important;opacity:1!important;color:#fff!important;font-size:12px!important;font-weight:400!important;min-height:34px!important;min-width:92px;padding:4px 0!important;align-items:center;touch-action:manipulation}}
@media(max-width:650px){body.kws-modern #kws-cart-dialog{height:96vh!important;height:96dvh!important;max-height:96vh;max-height:96dvh;width:calc(100vw - 16px)!important}body.kws-modern #kws-cart-dialog .kws-cart-head{padding:5px 10px}body.kws-modern #kws-cart-dialog .kws-cart-body{padding:8px 10px 0}body.kws-modern #kws-cart-dialog .kws-cart-row{min-height:88px;padding:8px 0;gap:5px 7px}body.kws-modern #kws-cart-dialog .kws-cart-row img{width:40px;height:44px}body.kws-modern #kws-cart-dialog input,body.kws-modern #kws-cart-dialog textarea{font-size:13px!important;min-height:34px!important;height:34px}body.kws-modern #kws-cart-dialog .kws-cart-row input{height:34px!important;min-height:34px!important}body.kws-modern #kws-cart-dialog textarea{height:48px;min-height:42px!important}body.kws-modern #kws-cart-dialog .kws-cart-fields{gap:8px 10px}body.kws-modern #kws-cart-dialog .kws-cart-actions{padding-bottom:max(8px,env(safe-area-inset-bottom))}}

body.kws-modern #kws-cart-dialog:not(:has(.kws-cart-row)){height:auto!important;min-height:0!important;width:min(540px,calc(100vw - 24px))!important;max-height:80vh;max-height:80dvh}
