/* Scoped corrections only: retain the V3/V4 branding, page structure and ERP. */
#liveChat.chat-box{width:430px;max-width:calc(100vw - 32px);right:22px!important;bottom:90px!important;border:1px solid #dde7f0;border-radius:20px;box-shadow:0 18px 70px #102a4340;overflow:hidden;max-height:calc(100dvh - 112px);color:#16334b;background:#fff;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5;z-index:1800!important;display:none}
#liveChat.chat-box.open{display:flex;flex-direction:column}
#liveChat *{box-sizing:border-box;min-width:0}
#liveChat [hidden]{display:none!important}
#liveChat .chat-head{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:20px;background:var(--blue,#0669b2);color:#fff}
#liveChat .chat-head>div{flex:1}
#liveChat .chat-head strong{display:block;font-size:20px;line-height:1.3;letter-spacing:0}
#liveChat .chat-head small{display:block;font-size:13px;line-height:1.4;margin-top:5px;color:#f0f7ff}
#liveChat .chat-head-symbol{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;background:#ffffff20;border-radius:13px}
#liveChat .chat-head-symbol svg{width:24px;height:24px}
#liveChat #closeChat{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;padding:0;border:1px solid #ffffff6e;border-radius:50%;font:normal 30px/1 Arial;background:#ffffff0c;color:#fff;cursor:pointer}
#liveChat .v4-chat-start{display:flex;flex-direction:column;gap:17px;padding:22px;margin:0;overflow-y:auto;overscroll-behavior:contain;max-height:none;min-height:0}
#liveChat .chat-introduction h2{margin:0 0 7px;font:700 21px/1.3 Arial;color:#18354e}
#liveChat .chat-introduction p{margin:0;font-size:15px;color:#50687d;line-height:1.55}
#liveChat .chat-identity-fields{display:grid;grid-template-columns:1fr;gap:13px}
#liveChat .v4-chat-start label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:15px;font-weight:600;color:#28485f}
#liveChat .v4-chat-start label b{color:#d8660c;font-weight:700}
#liveChat input{display:block;width:100%;min-height:48px;padding:11px 13px;margin:0;border:1px solid #c5d5e3;border-radius:10px;background:#fff;color:#152f47;box-shadow:none;font:400 16px/1.4 Arial;outline-offset:3px}
#liveChat input:focus{border-color:#0669b2;box-shadow:0 0 0 3px #0669b219;outline:2px solid transparent}
#liveChat .chat-privacy{font-size:13px;line-height:1.5;color:#627789;margin:0}
#liveChat .v4-chat-start button{width:100%;padding:14px 16px;min-height:50px;white-space:normal;line-height:1.4;flex-shrink:0;font-size:16px;border-radius:11px;cursor:pointer}
#liveChat button:disabled{opacity:.6;cursor:wait}
#liveChat .chat-messages{padding:20px;overflow-y:auto;overscroll-behavior:contain;min-height:160px;height:300px;flex:1;display:flex;flex-direction:column;gap:12px;background:#f5f8fb}
#liveChat .chat-msg{font-size:15px;line-height:1.6;border-radius:14px;max-width:90%;padding:12px 14px;overflow-wrap:anywhere;margin:0}
#liveChat .chat-msg.agent{background:#fff;border:1px solid #e3ebf1;align-self:flex-start}
#liveChat .chat-msg.visitor{background:#0669b2;color:#fff;align-self:flex-end}
#liveChat .chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0;padding:15px;border-top:1px solid #e1e9ef;flex:0 0 auto;background:#fff}
#liveChat .chat-form button{font:700 15px/1.4 Arial;color:#fff;background:#0669b2;border:0;border-radius:10px;min-height:48px;padding:10px 14px;cursor:pointer}
#liveChat.v4-chat-pending #chatForm,#liveChat.v4-chat-pending #chatMessages{display:none}
#liveChat .chat-notice{margin:0;padding:0 20px;font-size:14px;line-height:1.5;color:#35556d;flex-shrink:0}
#liveChat .chat-notice:empty{display:none}
#liveChat .chat-notice:not(:empty){padding:12px 20px;background:#eef5fb}
.zi-chat-open .zi-comm-dock{visibility:hidden}
#liveChat .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#liveChat button:focus-visible,.cart-dialog button:focus-visible{outline:3px solid #f47b20;outline-offset:3px}
.cart-dialog [data-remove-line]{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:46px;min-height:46px;padding:8px 12px;border:1px solid #efc7c2;border-radius:10px;background:#fff7f6;color:#9f291e;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;white-space:nowrap}
.cart-dialog [data-remove-line]>span:first-child{font:400 28px/1 Arial}
.cart-dialog [data-remove-line]:hover{background:#ffebe8;border-color:#d98980}
.cart-dialog .cart-line{padding-right:0}
.cart-dialog .cart-line .quantity-stepper button{min-width:46px;min-height:46px;font-size:25px;line-height:1;padding:8px}
.cart-dialog .cart-line .quantity-stepper input{min-height:46px;font-size:19px}
.cart-dialog [aria-busy=true] [data-line-step],.cart-dialog [aria-busy=true] [data-remove-line]{opacity:.55;cursor:wait}
.detail-stock{font-size:16px;line-height:1.5;color:#315b44;padding:9px 12px;border-radius:8px;background:#f0f7f2}
.catalog405-panel{grid-column:1/-1;border:1px solid #ccdfed;border-radius:16px;padding:24px;margin:16px 0;background:#f5f9fd;min-width:0}
.catalog405-panel legend{padding:0 10px;font-size:21px;font-weight:700;color:#105783}
.catalog405-panel .form-grid{margin:12px 0;padding:0;box-shadow:none}
.catalog405-panel label{font-weight:600}
.catalog405-panel .checkbox-row label{display:flex;align-items:center;gap:10px}
.catalog405-panel .checkbox-row input{width:20px;min-height:20px;margin:0}
.catalog405-summary{padding:12px 15px;background:#fff;border:1px solid #dce7ef;border-radius:10px;color:#35566c;font-size:15px;line-height:1.6}
@media(max-width:600px){#liveChat.chat-box{width:calc(100vw - 20px);max-width:none;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 20px);border-radius:17px}#liveChat .chat-head{padding:14px;gap:9px}#liveChat .chat-head strong{font-size:18px}#liveChat .chat-head small{font-size:12px}#liveChat .chat-head-symbol{width:34px;height:34px;flex-basis:34px}#liveChat .v4-chat-start{padding:18px;gap:14px}#liveChat .chat-introduction h2{font-size:19px}#liveChat .chat-form{padding:12px;gap:8px}#liveChat .chat-form button{padding:10px;font-size:14px}.cart-dialog [data-remove-line]{position:static;grid-column:2;justify-self:start;font-size:14px;padding:6px 11px;min-height:44px}.catalog405-panel{padding:16px}.catalog405-panel legend{font-size:18px}}
@media(max-height:650px) and (min-width:601px){#liveChat.chat-box{bottom:12px!important;max-height:calc(100dvh - 24px)}#liveChat .chat-head{padding:12px 16px}#liveChat .v4-chat-start{padding:16px;gap:12px}}

.cart-dialog .cart-line>[data-remove-line]{position:static;grid-column:2;justify-self:start;align-self:start;margin-top:0}.cart-dialog .cart-line h3{padding-right:0}.cart-dialog .cart-line>.quantity-stepper{overflow:visible}

.cart-dialog .cart-line .quantity-stepper{height:auto;min-height:48px;align-items:stretch}.cart-dialog .cart-line .quantity-stepper input{height:auto}

.zi-chat-open .floating-actions,.zi-chat-open .comm-dock{visibility:hidden;pointer-events:none}
