/* Existing shop chat layout, extracted unchanged from the bundled inventory page.
   Scope: customer-chat components, their launcher clearance, and chat animations. */
.customer-chat-launcher{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:1001;display:flex;justify-content:center;align-items:center;gap:10px;min-height:52px;padding:14px 22px;margin:0;border:1px solid #c8d8e3;border-radius:28px;background:#fff;color:#002c5f;box-shadow:0 5px 24px #002c5f35;font:700 15px/1.2 Arial,sans-serif;cursor:pointer;touch-action:manipulation}.customer-chat-launcher:before{content:none}.customer-chat-launcher svg{flex:none}.customer-chat-launcher:focus-visible,.customer-chat :focus-visible{outline:3px solid #00a6df;outline-offset:3px}body:has(dialog[open]) .customer-chat-launcher{visibility:hidden}
.customer-chat{position:fixed;inset:auto 20px max(20px,env(safe-area-inset-bottom)) auto;box-sizing:border-box;width:min(400px,calc(100vw - 28px));height:min(600px,calc(var(--chat-height,100dvh) - 36px));max-height:calc(var(--chat-height,100dvh) - 24px);max-width:calc(100vw - 24px);margin:0;padding:0;border:1px solid #cbd6df;border-radius:18px;background:#fff;color:#17334b;box-shadow:0 14px 60px #002c5f33;font:15px/1.5 Arial,sans-serif;overflow:hidden}.customer-chat[open]{display:flex;flex-direction:column}.customer-chat::backdrop{background:#00182d42}.customer-chat *{box-sizing:border-box}
.customer-chat .customer-chat-header{position:static!important;display:flex!important;flex:none;justify-content:space-between;align-items:center;gap:12px;width:auto!important;height:auto!important;min-height:76px!important;margin:0!important;padding:15px 18px!important;border:0!important;background:#002c5f!important;color:#fff!important;box-shadow:none!important}.customer-chat-header strong{display:block;font:700 19px/1.3 Arial,sans-serif}.customer-chat-header span{display:block;margin-top:4px;color:#d8e8f4;font:12px/1.4 Arial,sans-serif}.customer-chat .customer-chat-header button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:22px;background:#ffffff12;color:#fff;font:30px/1 Arial,sans-serif;cursor:pointer}
.customer-chat-log{flex:1;min-height:0;padding:18px 16px 6px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.customer-chat-message{max-width:93%;margin:0 0 14px;padding:10px 13px;border-radius:13px;background:#f0f5f8;text-align:left}.customer-chat-message.user{margin-left:auto;background:#002c5f;color:white}.customer-chat-speaker{display:block;margin-bottom:4px;font-size:11px;font-weight:700;opacity:.75}.customer-chat-message p{margin:0;font:15px/1.5 Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-chat-typing{width:max-content;min-width:74px}.customer-chat-typing-dots{display:flex;align-items:center;gap:5px;height:18px}.customer-chat-typing-dots i{display:block;width:7px;height:7px;border-radius:50%;background:#597387;animation:customer-chat-dot 1.15s infinite ease-in-out}.customer-chat-typing-dots i:nth-child(2){animation-delay:.14s}.customer-chat-typing-dots i:nth-child(3){animation-delay:.28s}@keyframes customer-chat-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}@media(prefers-reduced-motion:reduce){.customer-chat-typing-dots i{animation:none;opacity:.75}}
.customer-chat .customer-chat-prompts{display:flex;flex:none;flex-wrap:wrap;gap:7px;padding:0 16px 8px}.customer-chat .customer-chat-prompts[hidden]{display:none}.customer-chat-prompts button{padding:8px 10px;min-height:40px;border:1px solid #b5cada;border-radius:18px;background:#fff;color:#002c5f;font:13px/1.3 Arial,sans-serif;cursor:pointer}.customer-chat-status{flex:none;min-height:18px;margin:0;padding:0 17px;font-size:12px;color:#526a7c}
.customer-chat-compose{display:flex;flex:none;align-items:flex-end;gap:8px;margin:0;padding:8px 14px 5px}.customer-chat-compose textarea{flex:1;min-width:0;min-height:46px;max-height:100px;margin:0;padding:11px 12px;border:1px solid #a9bece;border-radius:12px;background:#fff;color:#17334b;font:16px/1.4 Arial,sans-serif;resize:none}.customer-chat-compose button{display:grid;place-items:center;flex:none;min-width:50px;height:46px;margin:0;padding:10px;border:0;border-radius:12px;background:#002c5f;color:#fff;cursor:pointer}.customer-chat-compose button:disabled{opacity:.45;cursor:wait}
.customer-chat .customer-chat-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:10px;padding:8px 15px 13px;font:10px/1.4 Arial,sans-serif;color:#526a7c}.customer-chat-footer span{max-width:235px}.customer-chat a{color:#002c5f}.customer-chat-footer a{white-space:nowrap;text-decoration:underline;font-size:12px}.customer-chat .customer-chat-vehicle{display:grid;gap:4px;margin:0 0 10px;padding:11px 13px;border:1px solid #c8d8e3;border-radius:12px;background:white;text-align:left;text-decoration:none;font:13px/1.4 Arial,sans-serif}.customer-chat-vehicle strong{font-size:14px}.customer-chat-vehicle span:last-child{color:#006caa;font-weight:700}.customer-chat-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.customer-chat-links a{padding:7px 10px;min-height:36px;border:1px solid #c8d8e3;border-radius:8px;font-size:13px;text-decoration:none}.customer-chat .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}
@media(max-width:700px){body:has(#weimer-chat-launcher){padding-bottom:calc(76px + env(safe-area-inset-bottom))}.customer-chat-launcher{box-sizing:border-box;left:0;right:0;bottom:0;width:100%;min-height:calc(60px + env(safe-area-inset-bottom));padding:16px 20px calc(16px + env(safe-area-inset-bottom));border:0;border-top:1px solid #c8d8e3;border-radius:0;box-shadow:none;background:#fff;color:#002c5f}.customer-chat{left:8px;right:8px;bottom:calc(var(--chat-keyboard-bottom,0px) + max(8px,env(safe-area-inset-bottom)));width:calc(100vw - 16px);max-width:none;height:min(650px,calc(var(--chat-height,100dvh) - 16px));max-height:calc(var(--chat-height,100dvh) - 16px);border-radius:16px}.customer-chat .customer-chat-header{min-height:70px!important;padding:12px 14px!important}.customer-chat-log{padding:14px 12px 4px}.customer-chat-message{max-width:95%}.customer-chat-footer span{max-width:200px}}

.customer-chat-invitation{position:fixed;z-index:9998;right:20px;bottom:90px;display:flex;align-items:flex-start;max-width:310px;padding:8px;background:white;border:1px solid #c8d8e3;border-radius:14px;box-shadow:0 6px 24px #002c5f26}.customer-chat-invitation button{border:0;background:transparent;color:#002c5f;font:15px/1.5 Arial,sans-serif;text-align:left;padding:10px;cursor:pointer}.customer-chat-invitation .customer-chat-invitation-close{font-size:24px;min-width:44px;min-height:44px;padding:4px 10px}@media(max-width:700px){.customer-chat-invitation{right:12px;left:12px;bottom:calc(80px + env(safe-area-inset-bottom));max-width:none}}

.customer-chat .customer-chat-photo{display:block;width:100%;height:150px;object-fit:contain;background:#eef1f3;border-radius:8px}.customer-chat .customer-chat-vehicle{background:#f2f4f6}.customer-chat-facts{font-size:11px;overflow-wrap:anywhere}.customer-chat-vehicle small{font-size:10px;line-height:1.5}.customer-chat-compose [data-chat-mic]{min-width:40px;width:40px;background:#e7edf3;color:#002c5f;padding:8px}.customer-chat-compose [data-chat-mic][aria-pressed="true"]{background:#b51b32;color:#fff}@media(max-width:380px){.customer-chat-compose{gap:5px;padding-left:8px;padding-right:8px}.customer-chat-compose [data-chat-send]{min-width:44px;padding:6px}.customer-chat-compose textarea{padding-left:8px;padding-right:8px}}

@media(min-width:701px){.customer-chat-launcher{width:60px;height:60px;min-height:60px;padding:16px;border-radius:50%;gap:0}.customer-chat-launcher>span{display:none}.customer-chat-launcher svg{width:26px;height:26px}}

.customer-chat{height:min(40dvh,calc(var(--chat-height,100dvh) - 16px));min-height:0}.customer-chat .customer-chat-header{min-height:48px!important;padding:6px 12px!important}.customer-chat-header strong{font-size:15px}.customer-chat-header span{font-size:10px;margin-top:2px}.customer-chat-header-actions{display:flex;align-items:center;gap:4px;flex:none}.customer-chat .customer-chat-header [data-chat-expand]{width:auto;padding:6px;font:12px/1.2 Arial,sans-serif;border-radius:6px}.customer-chat .customer-chat-header [data-chat-close]{width:36px;height:36px}.customer-chat:not(.customer-chat-expanded) .customer-chat-prompts{display:none}.customer-chat .customer-chat-footer{padding:4px 12px;font-size:9px}.customer-chat-log{padding-top:10px}.customer-chat-compose{padding-top:4px}.customer-chat-status{min-height:0}.customer-chat-status:empty{display:none}.customer-chat.customer-chat-expanded{height:min(80dvh,calc(var(--chat-height,100dvh) - 16px))}@media(max-width:700px){.customer-chat{height:min(40dvh,calc(var(--chat-height,100dvh) - 16px))}.customer-chat .customer-chat-header{min-height:48px!important;padding:6px 10px!important}.customer-chat.customer-chat-expanded{height:min(85dvh,calc(var(--chat-height,100dvh) - 16px))}}

.customer-chat-input-wrap{position:relative;display:flex;flex:1;min-width:0}.customer-chat-compose .customer-chat-input-wrap textarea{width:100%;box-sizing:border-box;padding-right:44px}.customer-chat-compose .customer-chat-input-wrap [data-chat-mic]{position:absolute;right:2px;bottom:1px;width:42px;min-width:42px;height:44px;padding:10px;background:transparent;color:#002c5f;border:0;border-radius:0}.customer-chat-compose .customer-chat-input-wrap [data-chat-mic][aria-pressed="true"]{background:transparent;color:#b51b32}

.customer-chat .customer-chat-header [data-chat-expand]{display:grid;place-items:center;width:40px;height:40px;padding:4px;background:transparent;color:#fff;border:0;border-radius:0;box-shadow:none;font:26px/1 Arial,sans-serif}

.customer-chat .customer-chat-header [data-chat-expand],.customer-chat .customer-chat-header [data-chat-expand]:hover,.customer-chat .customer-chat-header [data-chat-expand]:active{background:transparent!important;border:0!important;box-shadow:none!important}.customer-chat [data-chat-expand] svg{display:block;transition:transform .15s}.customer-chat.customer-chat-expanded [data-chat-expand] svg{transform:rotate(180deg)}

/* Chat uses the same full-height right drawer as the saved garage. */
.customer-chat,.customer-chat.customer-chat-expanded{inset:0 0 auto auto;left:auto;right:0;top:0;bottom:auto;width:min(400px,100vw);max-width:100vw;height:var(--chat-height,100dvh);max-height:var(--chat-height,100dvh);margin:0;border:0;border-radius:0;box-shadow:-10px 0 40px #001c3833;padding-bottom:env(safe-area-inset-bottom)}
.customer-chat[open]{animation:customer-chat-slide-in .2s ease-out}
.customer-chat .customer-chat-header [data-chat-expand]{display:none}
.customer-chat:not(.customer-chat-expanded) .customer-chat-prompts{display:flex}
@keyframes customer-chat-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.customer-chat[open]{animation:none}}

/* Keep the purchase-style drawer full height. visualViewport reduces this height
   when a mobile keyboard opens, so the header remains at the top and the
   composer stays immediately above the keyboard. */
.customer-chat,.customer-chat.customer-chat-expanded{top:var(--chat-top,0px);bottom:auto;height:var(--chat-height,100dvh);max-height:var(--chat-height,100dvh);transform:none!important}
@media(max-width:700px){.customer-chat.customer-chat-keyboard-open .customer-chat-prompts,.customer-chat.customer-chat-keyboard-open .customer-chat-lead-actions{display:none!important}.customer-chat.customer-chat-keyboard-open .customer-chat-header{flex:none}.customer-chat.customer-chat-keyboard-open .customer-chat-log{flex:1;min-height:72px}}

/* Keep Mary conversational: remove the static shortcut rows on every page. */
#weimer-customer-chat .customer-chat-prompts,
#weimer-customer-chat .customer-chat-lead-actions {
  display:none!important;
}
