/* Scoped messenger layout. Other dialogs and the operator animation keep their own styles. */
#dvCustomerChat{width:min(490px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(740px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border-radius:22px;overflow:clip;background:#f5f4ee;box-shadow:0 24px 90px #10271c55}
#dvCustomerChat[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
#dvCustomerChat [hidden]{display:none!important}
html:has(#dvCustomerChat[open]){overflow:hidden}
#dvCustomerChat .dv-chat-head{padding:18px 18px 16px;border-bottom:1px solid #e1e4da;background:#fffef9;align-items:center;gap:12px}
#dvCustomerChat .dv-chat-identity{display:flex;flex:1;align-items:center;gap:12px;min-width:0}
#dvCustomerChat .dv-chat-avatar{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:15px;background:#284b3b;color:#fff8df;font:600 15px/1 Arial,sans-serif;letter-spacing:.02em}
#dvCustomerChat .dv-chat-head small{font-size:9px;letter-spacing:.15em;color:#627064}
#dvCustomerChat .dv-chat-head h2{font-size:21px;line-height:1.2;letter-spacing:-.025em;margin:3px 0 4px}
#dvCustomerChat .dv-chat-head p{margin:0;font-size:11px;line-height:1.3;color:#647366}
#dvCustomerChat .dv-chat-head>button{width:38px;height:38px;background:#eef0e7}
#dvCustomerChat .dv-chat-body{min-height:0;position:relative;overflow:hidden}
#dvCustomerChat .dv-chat-messages{box-sizing:border-box;height:100%;display:flex;flex-direction:column;min-height:0;max-height:none;padding:20px 18px;gap:10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#becabf transparent;outline-offset:-3px}
#dvCustomerChat .dv-chat-welcome{margin:auto;align-self:center;max-width:320px;padding:16px 0 22px;text-align:center}
#dvCustomerChat .dv-chat-welcome-icon{display:grid;place-items:center;width:50px;height:50px;margin:0 auto 15px;border:1px solid #cbd8c5;border-radius:17px;color:#32543f;background:#e8eedf;font-size:27px}
#dvCustomerChat .dv-chat-welcome h3{margin:0 0 10px;font-size:23px;line-height:1.2;letter-spacing:-.03em;color:#243b33}
#dvCustomerChat .dv-chat-welcome p{margin:0;font-size:14px;line-height:1.65;color:#59675b}
#dvCustomerChat .dv-chat-welcome>small{display:block;margin-top:12px;font-size:11px;color:#6c786d}
#dvCustomerChat .dv-chat-prompts{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:20px}
#dvCustomerChat .dv-chat-prompts button{border:1px solid #cbd5c4;border-radius:20px;background:#fffef9;padding:9px 12px;color:#34513e;font:inherit;font-size:12px;font-weight:500;line-height:1.2;cursor:pointer}
#dvCustomerChat .dv-chat-prompts button:hover{background:#e7eddf;border-color:#80997c}
#dvCustomerChat .dv-chat-day{align-self:center;flex-shrink:0;margin:7px 0 4px;font-size:10px;line-height:1.3;color:#6c786b;background:#e7eadf;border-radius:20px;padding:5px 11px}
#dvCustomerChat .dv-chat-bubble{box-sizing:border-box;align-self:flex-start;flex-shrink:0;max-width:86%;padding:12px 14px 9px;border:1px solid #e0e5da;border-radius:17px 17px 17px 5px;background:#fffefb;box-shadow:0 2px 5px #233b3310}
#dvCustomerChat .dv-chat-bubble.is-visitor{align-self:flex-end;border-color:#2b4a3c;background:#2b4a3c;color:#fff;border-radius:17px 17px 5px 17px}
#dvCustomerChat .dv-chat-bubble>small{display:block;font-size:10px;line-height:1.2;color:#71806e;opacity:1;margin-bottom:5px}
#dvCustomerChat .dv-chat-bubble.is-visitor>small{color:#c6d7c5}
#dvCustomerChat .dv-chat-bubble p{margin:0;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
#dvCustomerChat .dv-chat-bubble-meta{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:7px;font-size:10px;line-height:1.2;color:#788674}
#dvCustomerChat .is-visitor .dv-chat-bubble-meta{color:#c4d6c1}
#dvCustomerChat .dv-chat-new{position:absolute;right:16px;bottom:12px;max-width:calc(100% - 32px);border:1px solid #bdceb4;border-radius:22px;background:#fffef9;color:#2c4b37;padding:10px 15px;box-shadow:0 4px 20px #18321e22;font:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
#dvCustomerChat .dv-chat-compose{display:grid;gap:8px;padding:12px 16px 8px;border-top:1px solid #dde3d5;background:#fffef9}
#dvCustomerChat .dv-chat-setup{display:grid;gap:9px;padding:0 0 4px}
#dvCustomerChat .dv-chat-name{display:flex;align-items:center;gap:12px;font-size:11px;line-height:1.3;color:#64715e}
#dvCustomerChat .dv-chat-name input{min-width:0;flex:1;width:auto;padding:9px 10px;font-size:14px;border:1px solid #d0d9c9;border-radius:10px}
#dvCustomerChat .dv-service-consent{display:grid;grid-template-columns:17px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.45;color:#65735f}
#dvCustomerChat .dv-service-consent input{width:16px;height:16px;margin:1px 0 0;accent-color:#2b4a3c}
#dvCustomerChat .dv-service-consent a{color:#34583d;text-underline-offset:2px}
#dvCustomerChat .dv-chat-input-row{display:flex;gap:8px;align-items:flex-end}
#dvCustomerChat textarea{display:block;min-width:0;flex:1;box-sizing:border-box;min-height:48px;max-height:144px;border:1px solid #c4d0bc;border-radius:15px;padding:12px 13px;background:#fff;font:400 16px/1.35 Arial,sans-serif;resize:none;overflow-y:auto}
#dvCustomerChat textarea::placeholder{color:#8a9484}
#dvCustomerChat .dv-chat-send{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:0;border-radius:15px;background:#2c4d3b;color:white;cursor:pointer;transition:background .15s}
#dvCustomerChat .dv-chat-send svg{width:23px;height:23px}
#dvCustomerChat .dv-chat-send:disabled{background:#dce3d6;color:#8a9b82;cursor:default}
#dvCustomerChat .dv-chat-send.is-sending{background:#2c4d3b;color:white}
#dvCustomerChat .dv-chat-spinner{display:none;width:17px;height:17px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:dv-chat-spin .7s linear infinite}
#dvCustomerChat .is-sending svg{display:none}
#dvCustomerChat .is-sending .dv-chat-spinner{display:block}
#dvCustomerChat .dv-chat-compose-meta{display:flex;justify-content:space-between;gap:8px;color:#8a9484;font-size:9px;line-height:1.3}
#dvCustomerChat .dv-chat-status{min-height:0;margin:0;color:#65745f;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
#dvCustomerChat .dv-chat-status:empty{display:none}
#dvCustomerChat .dv-chat-status.is-error{color:#934927}
#dvCustomerChat .dv-chat-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px 12px;padding:7px 17px 12px;background:#fffef9;border-top:0;font-size:10px;line-height:1.4;color:#87917f}
#dvCustomerChat .dv-chat-refresh,#dvCustomerChat .dv-chat-phone{display:inline-block;border:0;padding:2px 0;margin:0;background:transparent;color:#3e5e3e;font:500 11px/1.4 Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#dvCustomerChat .dv-chat-tools>span{margin-right:auto}
#dvCustomerChat :focus-visible{outline:3px solid #a9874e;outline-offset:2px}
@keyframes dv-chat-spin{to{transform:rotate(360deg)}}
@media(pointer:coarse){#dvCustomerChat .dv-chat-key-hint{display:none}#dvCustomerChat .dv-chat-compose-meta:has([data-chat-count][hidden]){display:none}}
@media(max-width:650px){#dvCustomerChat{position:fixed;inset:auto 8px auto 8px;top:calc(var(--dv-chat-offset,0px) + 8px);width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(var(--dv-chat-viewport,100dvh) - 16px);max-height:calc(var(--dv-chat-viewport,100dvh) - 16px);margin:0 auto;border-radius:18px}#dvCustomerChat .dv-chat-head{padding:13px 14px;gap:8px}#dvCustomerChat .dv-chat-head h2{font-size:19px}#dvCustomerChat .dv-chat-head p{font-size:10px}#dvCustomerChat .dv-chat-avatar{flex-basis:39px;height:39px;border-radius:13px;font-size:13px}#dvCustomerChat .dv-chat-messages{padding:15px 13px}#dvCustomerChat .dv-chat-compose{padding:10px 12px 6px}#dvCustomerChat .dv-chat-tools{padding:5px 13px max(9px,env(safe-area-inset-bottom))}#dvCustomerChat .dv-chat-name input{font-size:16px}#dvCustomerChat .dv-chat-bubble{max-width:89%}#dvCustomerChat .dv-chat-welcome{padding:12px 4px}#dvCustomerChat .dv-chat-welcome h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){#dvCustomerChat .dv-chat-send{transition:none}#dvCustomerChat .dv-chat-spinner{animation:none;border-top-color:#fff;border-right-color:#fff}}

#dvCustomerChat .dv-chat-identity>div{min-width:0}
#dvCustomerChat .dv-chat-compose,#dvCustomerChat .dv-chat-setup,#dvCustomerChat .dv-chat-input-row{min-width:0}
#dvCustomerChat .dv-chat-name{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);min-width:0}
#dvCustomerChat .dv-chat-name input{width:100%}
@media(max-width:650px) and (max-height:650px){#dvCustomerChat .dv-chat-welcome{padding:8px 3px}#dvCustomerChat .dv-chat-welcome-icon{width:34px;height:34px;font-size:22px;margin-bottom:10px;border-radius:12px}#dvCustomerChat .dv-chat-welcome h3{font-size:19px;margin-bottom:8px}#dvCustomerChat .dv-chat-welcome p{font-size:12px;line-height:1.5}#dvCustomerChat .dv-chat-prompts{margin-top:12px;gap:6px}#dvCustomerChat .dv-chat-prompts button{padding:8px 10px;font-size:11px}#dvCustomerChat .dv-chat-welcome>small{display:none}}
