#vnjar-chat{position:fixed;right:22px;bottom:22px;z-index:1400;font-family:inherit;color:#243f35;text-align:left;font-size:14px;line-height:1.5}#vnjar-chat [hidden],#admin-chat-pane[hidden]{display:none!important}.chat-launch{display:flex;align-items:center;gap:10px;border:0;border-radius:30px;background:#243f35;color:#fff;padding:14px 18px;box-shadow:0 6px 24px #243f3526;cursor:pointer;font:inherit;font-weight:650}.chat-launch svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}.chat-launch b{background:#f0ecdf;color:#243f35;border-radius:20px;min-width:22px;text-align:center}.chat-panel{position:absolute;right:0;bottom:76px;width:370px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 112px);height:640px;display:flex;flex-direction:column;background:#fff;border:1px solid #d8d9cd;border-radius:18px;box-shadow:0 14px 48px #163d3026;overflow-y:auto;overscroll-behavior:contain}.chat-header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;background:#243f35;color:#fff;flex-shrink:0}.chat-header h2{margin:3px 0;font-size:19px;color:inherit;line-height:1.3}.chat-header small{letter-spacing:.13em;font-size:11px}.chat-header p{font-size:12px;margin:5px 0 0;color:#e1e6dc}.chat-header p.is-online:before{content:'● ';color:#b9dab1}.chat-header button{border:0;background:none;color:white;font-size:28px;line-height:1;min-width:36px;min-height:36px;cursor:pointer}.chat-intro{background:#f4f3ed;margin:0;padding:12px 18px;font-size:12px}.chat-log{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:80px;padding:14px;scrollbar-gutter:stable}.chat-bubble{max-width:90%;margin:0 0 12px;padding:10px 12px;background:#f0f2ed;border-radius:12px 12px 12px 2px;overflow-wrap:anywhere}.chat-bubble.visitor{margin-left:auto;border-radius:12px 12px 2px 12px;background:#e8eee4}.chat-bubble p{margin:4px 0;white-space:pre-wrap;font-size:14px;color:#243f35}.chat-bubble small{font-size:11px;color:#53655b}.chat-stamp{display:block}.chat-panel form{padding:12px 16px 14px;border-top:1px solid #e3e4db;flex-shrink:0;background:#fff}#chat-identity{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-bottom:8px}#chat-identity label,.chat-message-label{font-size:11px;display:block;color:#53655b}#vnjar-chat input,#vnjar-chat textarea{box-sizing:border-box;width:100%;border:1px solid #b1bcae;border-radius:7px;padding:8px;font:inherit;font-size:14px;background:#fff;color:#243f35}#vnjar-chat textarea{resize:vertical;min-height:60px;max-height:100px}#chat-feedback{font-size:12px;margin:4px 0;min-height:18px;color:#405f4e}.chat-compose-actions{display:flex;align-items:center;gap:12px;justify-content:space-between}.chat-compose-actions small{font-size:10px;color:#637062}.chat-compose-actions button{background:#243f35;color:white;border:0;border-radius:6px;padding:9px 18px;font:inherit;cursor:pointer}.chat-compose-actions button:disabled{opacity:.5}#vnjar-chat :focus-visible{outline:3px solid #b9a97e;outline-offset:2px}.has-live-chat .back-top{bottom:96px}.chat-panel ::selection{background:#d5dfd0}@media(max-width:480px){#vnjar-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.chat-panel{bottom:66px;width:calc(100vw - 24px);height:620px;max-height:calc(100dvh - 100px)}.chat-launch{padding:12px 16px}.chat-header{padding:12px 16px}.chat-intro{padding:8px 14px}}

/* Live chat and comparison remain independently reachable on narrow screens. */
@media(max-width:900px){.has-live-chat .buyer-shortlist-dock{bottom:max(88px,calc(env(safe-area-inset-bottom) + 76px))}.has-live-chat.has-shortlist{padding-bottom:154px}.has-live-chat.has-shortlist .back-top{bottom:max(154px,calc(env(safe-area-inset-bottom) + 142px))}}

.chat-media-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}.chat-media-tools small{flex-basis:100%}.chat-media-tools button,.chat-attachment button,.chat-media-pending button{padding:6px 10px;cursor:pointer}.chat-attachment{overflow-wrap:anywhere;margin:8px 0}.chat-media-pending{font-size:13px}

/* Compact conversation surface, retaining the Forest Stone palette. */
.chat-panel{width:400px;border-radius:24px}.chat-header{align-items:center;padding:18px 20px}.chat-header>div{padding-left:52px;position:relative}.chat-header>div:before{content:'V';position:absolute;left:0;top:8px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#f2efe4;color:#243f35;font-size:26px;font-weight:700}.chat-header h2{font-size:18px}.chat-bubble{border-radius:20px 20px 20px 5px;padding:11px 15px;max-width:88%}.chat-bubble.visitor{border-radius:20px 20px 5px 20px;background:#243f35;color:#fff}.chat-bubble.visitor p,.chat-bubble.visitor small{color:#fff}.chat-log{padding:18px 14px}.chat-compose-actions button{border-radius:20px}.chat-intro{font-size:11px;padding:8px 18px}

/* More room for conversation while keeping the composer reachable on small screens. */
#vnjar-chat .chat-panel{width:500px;height:760px;max-height:calc(100dvh - 112px)}
#vnjar-chat .chat-bubble p{font-size:15px;line-height:1.6}
#vnjar-chat .chat-log{padding:20px 18px}
@media(max-width:600px){
 #vnjar-chat{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));pointer-events:none}
 #vnjar-chat .chat-launch,#vnjar-chat .chat-panel{pointer-events:auto}
 #vnjar-chat .chat-launch{margin-left:auto}
 #vnjar-chat .chat-panel{left:0;right:0;width:auto;max-width:none;bottom:66px;height:calc(100dvh - 90px);max-height:calc(100dvh - 90px);border-radius:18px}
 #vnjar-chat .chat-log{padding:14px 12px}
 #vnjar-chat input,#vnjar-chat textarea{font-size:16px}
}

/* Fit the visual viewport as the mobile keyboard opens. */
#vnjar-chat .chat-panel{max-height:calc(var(--chat-vh,100dvh) - 112px)}
@media(max-width:600px){
 #vnjar-chat{bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--chat-keyboard-offset,0px))}
 #vnjar-chat .chat-panel{height:calc(var(--chat-vh,100dvh) - 90px);max-height:calc(var(--chat-vh,100dvh) - 90px)}
 #vnjar-chat.chat-keyboard .chat-panel{bottom:0;height:calc(var(--chat-vh,100dvh) - 16px);max-height:calc(var(--chat-vh,100dvh) - 16px)}
 #vnjar-chat.chat-keyboard .chat-launch{visibility:hidden}
 #vnjar-chat.chat-keyboard .chat-intro{display:none}
 #vnjar-chat .chat-header button,#vnjar-chat .chat-compose-actions button{min-height:44px;min-width:44px}
}
@media(max-height:500px){#vnjar-chat{bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--chat-keyboard-offset,0px))}#vnjar-chat .chat-header{padding:8px 12px}#vnjar-chat .chat-intro{display:none}#vnjar-chat .chat-panel{bottom:0;max-height:calc(var(--chat-vh,100dvh) - 16px)}#vnjar-chat .chat-log{min-height:60px}}

/* Shared visitor and operator composer. No external emoji or file service. */
.chat-composer-input{position:relative;display:flex;align-items:flex-end;gap:4px;background:#f1f3f1;border:1px solid #cbd3c9;border-radius:24px;padding:6px}
#admin-chat-form>.chat-composer-input{justify-content:flex-start;align-items:flex-end;margin-top:6px}
#vnjar-chat .chat-composer-input textarea,#admin-chat-message{flex:1;min-width:0;width:0;border:0;background:transparent;border-radius:18px;box-shadow:none;padding:9px 10px;min-height:48px;max-height:110px;resize:vertical;font:inherit}
.chat-composer-input button,.chat-emoji-picker summary{font:inherit;cursor:pointer}
.chat-attach-button,.chat-emoji-picker summary{display:grid;place-items:center;width:38px;height:38px;min-width:38px;padding:7px;border:0;border-radius:50%;background:transparent;color:#526b60}
.chat-attach-button:hover,.chat-emoji-picker summary:hover{background:#e1e7dc}
.chat-attach-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chat-emoji-picker summary{list-style:none;font-size:27px;line-height:1}.chat-emoji-picker summary::-webkit-details-marker{display:none}
.chat-emoji-popup{position:absolute;bottom:calc(100% + 10px);right:0;z-index:10;width:360px;max-width:100%;box-sizing:border-box;padding:12px;background:#fff;border:1px solid #d8ded4;border-radius:18px;box-shadow:0 8px 30px #163d3026;color:#243f35;text-align:left}
#vnjar-chat .chat-emoji-popup input,.chat-emoji-popup input{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #d4ddd2;border-radius:12px;background:#f4f5f2;font:inherit;color:#243f35}
.chat-emoji-tabs{display:flex;gap:4px;overflow-x:auto;padding:8px 0;scrollbar-width:thin}.chat-emoji-tabs button{white-space:nowrap;border:0;background:transparent;color:#526257;padding:7px 8px;border-radius:8px;font-size:12px}.chat-emoji-tabs button[aria-pressed=true]{background:#e8ede3;color:#243f35;font-weight:700}
.chat-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;max-height:min(230px,32dvh);overflow-y:auto;overscroll-behavior:contain}.chat-emoji-grid button{display:grid;place-items:center;min-height:38px;padding:3px;border:0;border-radius:8px;background:transparent;font-size:25px}.chat-emoji-grid button:hover{background:#edf1e8}.chat-emoji-empty{font-size:13px;padding:12px 0;margin:0}
.chat-media-tools{margin:5px 0;display:block}.chat-media-hint{font-size:10px;color:#5b6c61;display:block;line-height:1.5}.chat-media-pending>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #d5ddd1;background:#f6f7f3;border-radius:10px;padding:6px 10px;margin:5px 0;overflow-wrap:anywhere;font-size:12px}.chat-media-pending button{flex-shrink:0;border:0;border-radius:8px;color:#334c3d;background:#e8ede3}
.chat-attachment .chat-file-download{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid #ccd7c7;background:#e6eddf;color:#243f35;padding:12px;border-radius:17px;font:inherit;cursor:pointer}.chat-file-info{min-width:0;flex:1}.chat-file-info strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}.chat-file-info small{display:block;font-size:11px;margin-top:3px}.chat-file-type{font-size:12px;font-weight:700}.chat-file-icon{display:grid;place-items:center;border-radius:50%;width:32px;height:32px;flex-shrink:0;background:#fff;font-size:23px}.chat-file-download:disabled{opacity:.6;cursor:wait}.chat-attachment a{display:inline-block;padding:6px 10px;border-radius:9px;background:#f1f4ed;color:#243f35}.chat-attachment img{margin-top:8px;border-radius:10px}.chat-bubble.visitor .chat-file-info small{color:#243f35}
.chat-composer-input:focus-within{border-color:#526b60}.chat-composer-input :focus-visible,.chat-attachment :focus-visible{outline:3px solid #b9a97e;outline-offset:2px}
@media(max-width:480px){.chat-emoji-popup{padding:9px}.chat-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr));max-height:180px}.chat-emoji-tabs button{font-size:11px;padding:6px}.chat-composer-input{gap:0}.chat-attach-button,.chat-emoji-picker summary{width:34px;min-width:34px}.chat-file-type{display:none}}

.chat-original{font-size:12px;margin:8px 0;overflow-wrap:anywhere}.chat-original summary{cursor:pointer}.chat-translation-status{display:block;font-size:11px;opacity:.8}.chat-bubble.automatic{background:#eef2ec;color:#244036;margin:12px auto;max-width:100%;font-size:13px}


.chat-product-card{display:flex;align-items:center;gap:14px;padding:12px;margin:10px 0;background:#fff;color:#243f35!important;border:1px solid #dce2d8;border-radius:12px;text-decoration:none;overflow-wrap:anywhere;min-width:0}.chat-product-card img{width:88px;height:104px;object-fit:contain;flex-shrink:0}.chat-product-card>div{min-width:0}.chat-product-card strong,.chat-product-card span,.chat-product-card small,.chat-product-card b{display:block;color:#243f35!important;white-space:normal}.chat-product-card strong{font-size:17px}.chat-product-card span,.chat-product-card small{font-size:12px;margin-top:5px}.chat-product-card b{font-size:13px;margin-top:10px}.chat-product-card:focus-visible{outline:3px solid #b5a67e;outline-offset:2px}
@media(max-width:380px){.chat-product-card{gap:8px;padding:8px}.chat-product-card img{width:60px;height:80px}.chat-product-card strong{font-size:15px}}

/* Customer sign-in shares the chat panel and never asks for an email password. */
.chat-account{padding:10px 16px;border-bottom:1px solid #dedfd6;flex-shrink:0;color:#243f35;font-size:13px}
.chat-account-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#customer-account-label{min-width:0;overflow-wrap:anywhere}
.chat-account button{font:inherit;min-height:36px;padding:6px 10px;border:1px solid #a5b1a1;border-radius:7px;background:#fff;color:#243f35;cursor:pointer}
.chat-account button:disabled{opacity:.6;cursor:wait}
#customer-history-label{display:block;margin-top:8px}
#customer-history-label span{display:block;margin-bottom:3px}
#customer-history{width:100%;max-width:100%;min-width:0;padding:7px;border:1px solid #a5b1a1;border-radius:6px;background:#fff;color:#243f35;font:inherit}
#customer-login-form{display:block;padding:14px 0 4px}
#customer-login-form label{display:block;margin-bottom:12px}
#customer-login-form label span{display:block;margin-bottom:5px}
#customer-login-form input{box-sizing:border-box;width:100%;min-width:0;padding:10px;font:inherit;font-size:16px;border:1px solid #9eab9c;border-radius:8px}
#customer-code{letter-spacing:.2em}
.customer-login-actions{display:flex;gap:8px;flex-wrap:wrap}
#customer-login-submit{background:#243f35;color:#fff}
#customer-login-feedback{margin:6px 0 0;overflow-wrap:anywhere}
#customer-login-feedback:empty{display:none}
#chat-panel.customer-signing-in>#chat-log,#chat-panel.customer-signing-in>#chat-form{display:none}
#chat-panel.customer-signing-in .chat-account{overflow:auto;min-height:0}
.chat-account [hidden]{display:none!important}
@media(max-width:480px){.chat-account{padding:8px 12px}.chat-account button{min-height:40px}#customer-history{font-size:16px}}

/* Soft light marks visitor actions; the conversation itself stays still. */
#vnjar-chat{--chat-motion-fast:180ms;--chat-motion-enter:300ms;--chat-motion-sweep:850ms;--chat-motion-ease:cubic-bezier(.22,1,.36,1)}
#vnjar-chat .chat-panel{border-color:#d1dacf;box-shadow:0 16px 45px #1d3b2e1f,0 0 24px #cbbc8e1f}
#vnjar-chat .chat-panel:focus-within{box-shadow:0 16px 45px #1d3b2e1f,0 0 26px #cbbc8e30}
#vnjar-chat .chat-panel:not([hidden]){animation:vnjar-chat-enter var(--chat-motion-enter) var(--chat-motion-ease)}
#vnjar-chat .chat-header{isolation:isolate;overflow:hidden}
#vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit){position:relative;isolation:isolate;overflow:hidden;transition:transform var(--chat-motion-fast) var(--chat-motion-ease)}
#vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit)::after,#vnjar-chat .chat-header::after{content:"";position:absolute;z-index:-1;pointer-events:none;top:-65%;left:0;width:60%;height:240%;background:linear-gradient(90deg,transparent,#ebe0be33,transparent);opacity:0;transform:translateX(-180%) rotate(18deg)}
#vnjar-chat #customer-sign-in::after{background:linear-gradient(90deg,transparent,#b8a7752b,transparent)}
#vnjar-chat .chat-panel:not([hidden]) .chat-header::after{animation:vnjar-chat-sweep var(--chat-motion-sweep) var(--chat-motion-ease)}
#vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit):enabled:focus-visible::after{animation:vnjar-chat-sweep var(--chat-motion-sweep) var(--chat-motion-ease)}
#vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit):enabled:active{transform:scale(.98)}
#vnjar-chat .chat-composer-input::before{content:"";position:absolute;inset:-5px;border:1px solid #ae975b4d;box-shadow:0 0 14px #c1ad773d;border-radius:28px;opacity:0;transition:opacity var(--chat-motion-fast) ease;pointer-events:none}
#vnjar-chat .chat-composer-input:focus-within{border-color:#7e917d}
#vnjar-chat .chat-composer-input:focus-within::before{opacity:1}
@media(hover:hover) and (pointer:fine){
 #vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit):enabled:hover{transform:translateY(-1px)}
 #vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit):enabled:hover::after{animation:vnjar-chat-sweep var(--chat-motion-sweep) var(--chat-motion-ease)}
 #vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit):enabled:active{transform:scale(.98)}
}
@keyframes vnjar-chat-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes vnjar-chat-sweep{0%{opacity:0;transform:translateX(-180%) rotate(18deg)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateX(280%) rotate(18deg)}}
@media(prefers-reduced-motion:reduce){
 #vnjar-chat .chat-panel,#vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit){animation:none!important;transition:none!important;transform:none!important}
 #vnjar-chat .chat-header::after,#vnjar-chat :is(.chat-launch,#chat-send,#customer-sign-in,#customer-login-submit)::after{display:none;animation:none!important}
 #vnjar-chat .chat-composer-input::before{transition:none}
}

#chat-contact-method{display:block;max-width:100%;min-height:32px;margin:2px 0 5px;border:1px solid #b1bcae;border-radius:7px;background:#fff;color:#243f35;font:inherit;font-size:16px;padding:3px 6px}
