.ejas-webchat{
 --ejas-chat-desktop-x:22px;
 --ejas-chat-desktop-y:22px;
 --ejas-chat-mobile-x:14px;
 --ejas-chat-mobile-y:14px;
 --ejas-chat-inline-offset:var(--ejas-chat-desktop-x);
 --ejas-chat-block-offset:var(--ejas-chat-desktop-y);
 position:fixed;
 right:calc(var(--ejas-chat-inline-offset) + env(safe-area-inset-right, 0px));
 left:auto;
 bottom:calc(var(--ejas-chat-block-offset) + env(safe-area-inset-bottom, 0px));
 z-index:999999;
 max-width:calc(100vw - 28px);
 font-family:Arial,sans-serif;
}

.ejas-webchat[data-position="left"]{
 right:auto;
 left:calc(var(--ejas-chat-inline-offset) + env(safe-area-inset-left, 0px));
}

.ejas-webchat-launch{
 min-height:48px;
 padding:15px 21px;
 border:0;
 border-radius:999px;
 background:#d71920;
 box-shadow:0 10px 30px rgba(0,0,0,.25);
 color:#fff;
 font-weight:800;
 cursor:pointer;
 touch-action:manipulation;
}

.ejas-webchat-launch:focus-visible,
.ejas-webchat-close:focus-visible,
.ejas-webchat-new:focus-visible,
.ejas-webchat button:focus-visible,
.ejas-webchat textarea:focus-visible,
.ejas-webchat a:focus-visible{
 outline:3px solid #fdb022;
 outline-offset:2px;
}

.ejas-webchat-panel{
 display:none;
 width:min(460px,calc(100vw - 28px));
 height:min(560px,calc(100dvh - 44px));
 min-height:360px;
 overflow:hidden;
 grid-template-areas:"header" "messages" "controls" "footer";
 grid-template-rows:auto minmax(0,1fr) auto auto;
 border:1px solid #d0d5dd;
 border-radius:16px;
 background:#fff;
 box-shadow:0 22px 60px rgba(16,24,40,.3);
}

.ejas-webchat[data-open="1"] .ejas-webchat-panel{display:grid}
.ejas-webchat[data-open="1"] .ejas-webchat-launch{display:none}

.ejas-webchat-panel>header{
 grid-area:header;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:13px 16px;
 background:#101828;
 color:#fff;
}

.ejas-webchat-panel header strong,
.ejas-webchat-panel header small{display:block}
.ejas-webchat-panel header small{margin-top:2px;opacity:.76}

.ejas-webchat-header-actions{
 display:flex;
 align-items:center;
 gap:6px;
}

.ejas-webchat-new,
.ejas-webchat-close{
 min-width:40px;
 min-height:40px;
 border:0;
 color:#fff;
 cursor:pointer;
 touch-action:manipulation;
}

.ejas-webchat-new{
 padding:6px 10px;
 border:1px solid rgba(255,255,255,.4);
 border-radius:999px;
 background:transparent;
 font-size:12px;
 font-weight:700;
}

.ejas-webchat-new:hover{background:rgba(255,255,255,.12)}

.ejas-webchat-close{
 background:transparent;
 font-size:28px;
 line-height:1;
}

.ejas-webchat-messages{
 grid-area:messages;
 position:relative;
 min-height:0;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-gutter:stable;
 scroll-padding-top:14px;
 scroll-padding-bottom:32px;
 padding:14px 12px 32px;
 background:#f8fafc;
}

.ejas-webchat-message{
 max-width:86%;
 margin:0 0 9px;
 padding:9px 11px;
 overflow-wrap:anywhere;
 border-radius:13px;
 line-height:1.38;
 white-space:pre-line;
}

.ejas-webchat-message.assistant{border:1px solid #e4e7ec;background:#fff}
.ejas-webchat-message.visitor{margin-left:auto;background:#d71920;color:#fff}
.ejas-webchat-message.pending{opacity:.62}
.ejas-webchat-message.error{border-color:#f5b7b1;background:#fff5f4;color:#7a271a}
.ejas-webchat-message.context-only:empty{display:none}

.ejas-webchat-card{
 display:grid;
 grid-template-columns:86px minmax(0,1fr);
 gap:10px;
 align-items:center;
 margin:0 0 9px;
 padding:8px;
 overflow:hidden;
 border:1px solid #d0d5dd;
 border-radius:12px;
 background:#fff;
 color:#101828;
 text-decoration:none;
}

.ejas-webchat-card img{
 width:86px;
 height:64px;
 border-radius:8px;
 background:#eaecf0;
 object-fit:cover;
}

.ejas-webchat-card-body{min-width:0}
.ejas-webchat-card-body strong,.ejas-webchat-card-body small{display:block}
.ejas-webchat-card-body strong{font-size:13px;line-height:1.25}
.ejas-webchat-card-body small{margin-top:4px;color:#667085;font-size:11px;line-height:1.3}
.ejas-webchat-card:hover{border-color:#d71920}

.ejas-webchat-actions{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin:0 0 10px;
}

.ejas-webchat-actions[hidden]{display:none!important}
.ejas-webchat-actions.answered{opacity:.72}

.ejas-webchat-action{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:42px;
 padding:9px 13px;
 border:1px solid #d71920;
 border-radius:10px;
 background:#fff;
 color:#b42318;
 font-weight:800;
 line-height:1.2;
 text-align:center;
 text-decoration:none;
 touch-action:manipulation;
}

.ejas-webchat-action.primary{background:#d71920;color:#fff}
.ejas-webchat-action.chip{
 min-height:36px;
 padding:7px 11px;
 border-color:#d0d5dd;
 border-radius:999px;
 background:#fff;
 color:#344054;
 font:inherit;
 font-size:12px;
 cursor:pointer;
}
.ejas-webchat-action:hover{filter:brightness(.96)}

.ejas-webchat-action-logo{
 display:block;
 width:auto;
 height:auto;
 max-width:168px;
 max-height:42px;
 object-fit:contain;
}

.ejas-webchat-action.brand-carfax{padding:4px 9px;background:#fff}
.ejas-webchat-action.brand-autocheck{border-color:#162f55;background:#fff;color:#162f55}

.ejas-webchat-vehicle{
 display:block;
 margin:0 0 8px;
 padding:9px 11px;
 overflow-wrap:anywhere;
 border:1px solid #d71920;
 border-radius:9px;
 background:#fff;
 color:#b42318;
 font-weight:700;
 text-decoration:none;
}

.ejas-webchat-controls{
 grid-area:controls;
 position:relative;
 z-index:2;
 border-top:1px solid #eaecf0;
 background:#fff;
}

.ejas-webchat-quick{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:6px;
 padding:9px 12px 7px;
}

.ejas-webchat-quick button{
 display:flex!important;
 align-items:center;
 justify-content:center;
 gap:4px;
 min-width:0;
 padding:8px 5px!important;
 border:1px solid #d0d5dd!important;
 border-radius:999px!important;
 background:#fff!important;
 color:#344054!important;
 font-size:12px!important;
 font-weight:700!important;
 line-height:1.2!important;
 white-space:nowrap;
 cursor:pointer;
}

.ejas-webchat-form{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 gap:8px;
 padding:7px 12px 11px;
}

.ejas-webchat-form textarea{
 box-sizing:border-box;
 width:100%;
 min-width:0;
 min-height:58px;
 max-height:110px;
 padding:9px;
 resize:none;
 border:1px solid #d0d5dd;
 border-radius:9px;
 font:inherit;
}

.ejas-webchat-form button{
 min-width:58px;
 padding:0 15px;
 border:0;
 border-radius:9px;
 background:#d71920;
 color:#fff;
 font-weight:800;
 cursor:pointer;
 touch-action:manipulation;
}

.ejas-webchat button:disabled,.ejas-webchat textarea:disabled{opacity:.55;cursor:not-allowed}
.ejas-webchat[data-sending="1"] .ejas-webchat-actions{opacity:.58;pointer-events:none}
.ejas-webchat[data-retry-pending="1"] .ejas-webchat-actions{display:none}

.ejas-webchat-retry-row{
 margin:0 0 10px;
 padding:11px;
 border:1px solid #f5b7b1;
 border-radius:12px;
 background:#fff5f4;
 color:#7a271a;
}

.ejas-webchat-retry-row p{margin:0 0 9px;line-height:1.4}
.ejas-webchat-retry{
 min-height:42px;
 padding:8px 12px;
 border:1px solid #b42318;
 border-radius:9px;
 background:#fff;
 color:#b42318;
 font-weight:800;
 cursor:pointer;
 touch-action:manipulation;
}

.ejas-webchat-panel>footer{
 grid-area:footer;
 position:relative;
 z-index:2;
 padding:7px 12px;
 border-top:1px solid #eaecf0;
 background:#f9fafb;
 color:#667085;
 font-size:10px;
 text-align:center;
}

.ejas-webchat-pricing{
 margin:0 0 12px;
 padding:12px;
 border:1px solid #d0d5dd;
 border-left:4px solid #15803d;
 border-radius:12px;
 background:#fff;
 color:#101828;
}

.ejas-webchat-pricing-heading{color:#166534;font-size:15px;font-weight:900}
.ejas-webchat-pricing-vehicle{display:block;margin:3px 0 10px;color:#667085;line-height:1.3}
.ejas-webchat-pricing-row,.ejas-webchat-pricing-total{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:14px;
 padding:7px 0;
 border-top:1px solid #eaecf0;
 font-size:13px;
}
.ejas-webchat-pricing-row span,.ejas-webchat-pricing-total span{min-width:0}
.ejas-webchat-pricing-row strong,.ejas-webchat-pricing-total strong{white-space:nowrap}
.ejas-webchat-pricing-total{
 margin-top:3px;
 padding-top:11px;
 border-top:2px solid #bbf7d0;
 color:#166534;
 font-size:16px;
 font-weight:900;
}
.ejas-webchat-pricing-note{display:block;margin-top:8px;color:#667085;line-height:1.35}

@media(max-width:820px){
 .ejas-webchat,
 .ejas-webchat[data-position="left"]{
  --ejas-chat-inline-offset:var(--ejas-chat-mobile-x);
  --ejas-chat-block-offset:var(--ejas-chat-mobile-y);
  right:calc(var(--ejas-chat-inline-offset) + env(safe-area-inset-right, 0px));
  left:auto;
 }
 .ejas-webchat-panel{
  width:min(390px,calc(100vw - 28px));
  height:min(600px,calc(100dvh - var(--ejas-chat-block-offset) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) - 14px));
 }
 body .kodee-fab{
  bottom:calc(128px + env(safe-area-inset-bottom, 0px) + env(safe-area-inset-bottom, 0px))!important;
 }
 .ejas-webchat-new,.ejas-webchat-close{min-width:44px;min-height:44px}
}

@media(max-width:430px){
 .ejas-webchat{max-width:calc(100vw - (var(--ejas-chat-mobile-x) * 2))}
 .ejas-webchat-panel{width:100%;height:min(620px,calc(100dvh - var(--ejas-chat-block-offset) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) - 14px));min-height:0}
 .ejas-webchat-launch{display:block;margin-left:auto}
 .ejas-webchat-message{max-width:90%}
 .ejas-webchat-messages{padding-bottom:38px}
 .ejas-webchat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .ejas-webchat-action.chip{width:100%;min-height:44px;border-radius:10px}
 .ejas-webchat-action-logo{max-width:100%}
 .ejas-webchat-pricing{margin-bottom:16px}
 .ejas-webchat-form button{min-width:64px}
}

@media(max-height:520px){
 .ejas-webchat-panel{height:calc(100dvh - 20px);min-height:0}
 .ejas-webchat-panel>footer{display:none}
 .ejas-webchat-form{padding-top:5px;padding-bottom:7px}
}

@media(max-width:820px) and (max-height:520px){
 .ejas-webchat-panel{height:calc(100dvh - var(--ejas-chat-block-offset) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) - 10px)}
}

@media(min-width:431px){
 .ejas-webchat-actions .ejas-webchat-action.chip{max-width:100%}
}

@media(min-width:821px){
 .ejas-webchat.is-vdp .ejas-webchat-panel{width:min(480px,calc(100vw - 44px));height:min(650px,calc(100dvh - 44px))}
 .ejas-webchat.is-vdp .ejas-webchat-card{grid-template-columns:120px minmax(0,1fr)}
 .ejas-webchat.is-vdp .ejas-webchat-card img{width:120px;height:86px}
 .ejas-webchat.is-vdp .ejas-webchat-card-body strong{font-size:15px}
 .ejas-webchat.is-vdp .ejas-webchat-card-body small{font-size:12px}
}

@media(prefers-reduced-motion:reduce){
 .ejas-webchat *{scroll-behavior:auto!important;transition:none!important}
}

/* Front Office v2 visual shell. Inert unless Website Chat v2 is enabled. */
.ejas-webchat.is-v2 .ejas-webchat-launch{
 min-height:52px;
 padding:15px 22px;
 border:1px solid rgba(255,255,255,.18);
 background:linear-gradient(135deg,#130f0f 0%,var(--ejas-red,#d71920) 100%);
 box-shadow:0 14px 34px rgba(19,15,15,.28);
 letter-spacing:.01em;
}
.ejas-webchat.is-v2 .ejas-webchat-panel{
 width:min(490px,calc(100vw - 24px));
 height:min(650px,calc(100dvh - 32px));
 border-color:#e4e7ec;
 border-radius:20px;
 box-shadow:0 24px 70px rgba(16,24,40,.32);
}
.ejas-webchat.is-v2 .ejas-webchat-panel>header{
 padding:15px 17px;
 background:linear-gradient(135deg,#130f0f 0%,#2a1717 58%,var(--ejas-red,#d71920) 140%);
}
.ejas-webchat.is-v2 .ejas-webchat-panel header strong{font-size:14px;letter-spacing:.01em}
.ejas-webchat.is-v2 .ejas-webchat-panel header small{font-size:11px;opacity:.82}
.ejas-webchat.is-v2 .ejas-webchat-messages{padding:16px 14px 34px;background:linear-gradient(#f8fafc,#f5f6f7)}
.ejas-webchat.is-v2 .ejas-webchat-message{padding:10px 12px;border-radius:14px;line-height:1.45}
.ejas-webchat.is-v2 .ejas-webchat-message.assistant{border-color:#eaecf0;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ejas-webchat.is-v2 .ejas-webchat-message.visitor{background:var(--ejas-red,#d71920)}
.ejas-webchat.is-v2 .ejas-webchat-actions{gap:7px}
.ejas-webchat.is-v2 .ejas-webchat-action.chip,
.ejas-webchat.is-v2 .ejas-webchat-quick button{
 min-height:38px;
 border:1px solid #d0d5dd;
 border-radius:999px;
 background:#fff;
 color:#344054;
 box-shadow:0 1px 2px rgba(16,24,40,.04);
 font-weight:700;
}
.ejas-webchat.is-v2 .ejas-webchat-action.chip:hover,
.ejas-webchat.is-v2 .ejas-webchat-quick button:hover{border-color:var(--ejas-red,#d71920);color:#b3131a;background:#fff7f7}
.ejas-webchat.is-v2 .ejas-webchat-card{border-radius:14px;box-shadow:0 3px 12px rgba(16,24,40,.06)}
.ejas-webchat.is-v2 .ejas-webchat-controls{border-top:1px solid #eaecf0;background:#fff}
.ejas-webchat.is-v2 .ejas-webchat-form textarea{border-radius:12px;background:#f9fafb}
.ejas-webchat.is-v2 .ejas-webchat-form button[type="submit"]{border-radius:12px;background:var(--ejas-red,#d71920)}
.ejas-webchat.is-v2 footer{background:#fff;color:#667085;font-size:10px}

/* v69 complete Website Chat v2 customer experience. */
.ejas-webchat.is-v2 .ejas-webchat-panel{grid-template-areas:"header" "context" "messages" "controls" "footer";grid-template-rows:auto auto minmax(0,1fr) auto auto;width:min(520px,calc(100vw - 24px));height:min(720px,calc(100dvh - 28px));border-radius:22px}
.ejas-webchat-context{grid-area:context;display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;padding:10px 16px;border-bottom:1px solid #eaecf0;background:#fff;color:#344054}
.ejas-webchat-context-kicker{width:100%;color:var(--ejas-red,#d71920);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.ejas-webchat-context strong{font-size:13px;line-height:1.3}.ejas-webchat-context-note{color:#667085;font-size:11px}
.ejas-webchat-live-badge{display:inline-flex;margin-top:5px;padding:3px 7px;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:#fff;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.ejas-webchat-intro{margin:0 0 12px;padding:12px 13px;border:1px solid #e4e7ec;border-radius:14px;background:#fff;color:#344054;box-shadow:0 1px 3px rgba(16,24,40,.04)}
.ejas-webchat-intro strong,.ejas-webchat-intro span{display:block}.ejas-webchat-intro strong{color:#101828;font-size:14px}.ejas-webchat-intro span{margin-top:3px;color:#667085;font-size:11px;line-height:1.4}
.ejas-webchat.is-v2 .ejas-webchat-card{grid-template-columns:112px minmax(0,1fr);padding:10px;border:1px solid #e4e7ec;border-radius:16px}.ejas-webchat.is-v2 .ejas-webchat-card img{width:112px;height:82px;border-radius:11px}.ejas-webchat.is-v2 .ejas-webchat-card-body strong{font-size:14px}.ejas-webchat.is-v2 .ejas-webchat-card-body small{font-size:12px}
.ejas-webchat-payment-card{margin:0 0 12px;padding:14px;border:1px solid #d7e5da;border-radius:16px;background:#fbfdfb;box-shadow:0 4px 14px rgba(16,24,40,.06)}
.ejas-webchat-payment-top span,.ejas-webchat-payment-top strong{display:block}.ejas-webchat-payment-top span{color:#475467;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.ejas-webchat-payment-top strong{margin-top:3px;color:#166534;font-size:22px;line-height:1.15}
.ejas-webchat-payment-assumptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.ejas-webchat-payment-assumptions span{min-width:0;padding:8px;border-radius:10px;background:#fff}.ejas-webchat-payment-assumptions small,.ejas-webchat-payment-assumptions b{display:block}.ejas-webchat-payment-assumptions small{color:#667085;font-size:9px;text-transform:uppercase}.ejas-webchat-payment-assumptions b{margin-top:2px;overflow-wrap:anywhere;color:#101828;font-size:12px}.ejas-webchat-payment-note{display:block;margin-top:10px;color:#667085;font-size:10px;line-height:1.35}
.ejas-webchat.is-v2 .ejas-webchat-actions{gap:7px;padding-top:9px}.ejas-webchat.is-v2 .ejas-webchat-action.chip{min-height:40px;padding:8px 12px}.ejas-webchat.is-v2 .ejas-webchat-form{padding:9px 12px 12px}.ejas-webchat.is-v2 .ejas-webchat-form textarea{min-height:54px;padding:11px 12px;border-color:#cfd4dc;background:#fff;box-shadow:inset 0 1px 2px rgba(16,24,40,.03)}
@media(max-width:430px){.ejas-webchat.is-v2,.ejas-webchat.is-v2[data-position="left"]{right:0;left:0;bottom:0;max-width:none}.ejas-webchat.is-v2 .ejas-webchat-panel{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.ejas-webchat.is-v2 .ejas-webchat-panel>header{padding-top:calc(13px + env(safe-area-inset-top,0px))}.ejas-webchat.is-v2 .ejas-webchat-messages{padding:14px 12px 28px}.ejas-webchat.is-v2 .ejas-webchat-card{grid-template-columns:96px minmax(0,1fr)}.ejas-webchat.is-v2 .ejas-webchat-card img{width:96px;height:72px}.ejas-webchat-payment-assumptions{grid-template-columns:repeat(2,minmax(0,1fr))}.ejas-webchat.is-v2 .ejas-webchat-form{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}}

/* v70 customer-experience alignment: use the website's established EJAS red/black brand. */
.ejas-webchat.is-v2 .ejas-webchat-panel>header{background:#101010;border-top:4px solid var(--ejas-red,#d71920);padding-top:10px}
.ejas-webchat.is-v2 .ejas-webchat-message.visitor,.ejas-webchat.is-v2 .ejas-webchat-form button[type="submit"]{background:var(--ejas-red,#d71920)}
.ejas-webchat.is-v2 .ejas-webchat-action.chip{border-color:#d9dde3;background:#fff;color:#20252b}
.ejas-webchat.is-v2 .ejas-webchat-action.chip:hover{border-color:var(--ejas-red,#d71920);color:#b3131a;background:#fff7f7}
.ejas-webchat.is-v2 .ejas-webchat-context-kicker{color:var(--ejas-red,#d71920)}
.ejas-webchat.is-v2 .ejas-webchat-actions{max-height:118px;overflow:auto;padding-bottom:2px;scrollbar-width:thin}


/* v71: persistent interactive customer-action dock + unmistakable EJAS site presentation. */
.ejas-webchat.is-v2 .ejas-webchat-panel{width:min(560px,calc(100vw - 28px));height:min(760px,calc(100dvh - 36px));border:1px solid #d8dadd;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28)}
.ejas-webchat.is-v2 .ejas-webchat-panel>header{min-height:64px;padding:13px 18px;border-top:5px solid #d71920;border-bottom:1px solid #292929;border-radius:17px 17px 0 0;background:#111!important;color:#fff}
.ejas-webchat.is-v2 .ejas-webchat-panel header strong{font-size:16px;letter-spacing:0}.ejas-webchat.is-v2 .ejas-webchat-panel header small{margin-top:3px;color:#d9d9d9;opacity:1}
.ejas-webchat.is-v2 .ejas-webchat-live-badge{border-color:#555;background:#1d1d1d;color:#fff}
.ejas-webchat.is-v2 .ejas-webchat-context{padding:11px 18px;border-bottom:1px solid #e3e3e3;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.ejas-webchat.is-v2 .ejas-webchat-context-kicker{color:#d71920}.ejas-webchat.is-v2 .ejas-webchat-messages{padding:18px 16px 24px;background:#f4f5f6}
.ejas-webchat.is-v2 .ejas-webchat-message.assistant{max-width:88%;padding:12px 14px;border:1px solid #dde0e4;border-radius:15px 15px 15px 5px;background:#fff;box-shadow:0 2px 7px rgba(16,24,40,.06);color:#171717;font-size:15px;line-height:1.48}
.ejas-webchat.is-v2 .ejas-webchat-message.visitor{max-width:82%;border-radius:15px 15px 5px 15px;background:#d71920!important;box-shadow:0 2px 7px rgba(215,25,32,.18)}
.ejas-webchat.is-v2 .ejas-webchat-card{grid-template-columns:118px minmax(0,1fr);gap:13px;padding:12px;border:1px solid #dadde2;border-left:4px solid #d71920;border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.06)}
.ejas-webchat.is-v2 .ejas-webchat-card img{width:118px;height:88px;border-radius:10px}.ejas-webchat.is-v2 .ejas-webchat-card-body strong{font-size:15px;color:#111}.ejas-webchat.is-v2 .ejas-webchat-card-body small{font-size:12px;color:#5b6470}
.ejas-webchat.is-v2 .ejas-webchat-controls{position:relative;z-index:5;border-top:1px solid #dfe2e6;background:#fff;box-shadow:0 -8px 22px rgba(16,24,40,.07)}
.ejas-webchat.is-v2 .ejas-webchat-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:164px;margin:0;padding:12px 12px 9px;overflow:auto;border-bottom:1px solid #eceef1;background:#fff;scrollbar-width:thin}
.ejas-webchat.is-v2 .ejas-webchat-actions[hidden]{display:none!important}
.ejas-webchat.is-v2 .ejas-webchat-action,.ejas-webchat.is-v2 .ejas-webchat-action.chip{width:100%;min-height:43px;justify-content:flex-start;padding:9px 11px;border:1px solid #d8dce2;border-radius:9px;background:#fff;color:#181818;box-shadow:none;font-size:12px;font-weight:800;text-align:left}
.ejas-webchat.is-v2 .ejas-webchat-action.chip:first-child{border-color:#d71920;background:#d71920;color:#fff}
.ejas-webchat.is-v2 .ejas-webchat-action:hover,.ejas-webchat.is-v2 .ejas-webchat-action.chip:hover{border-color:#d71920;background:#fff4f4;color:#a20e14;filter:none}.ejas-webchat.is-v2 .ejas-webchat-action.chip:first-child:hover{background:#b9151b;color:#fff}
.ejas-webchat.is-v2 .ejas-webchat-action-logo{max-width:145px;max-height:34px}
.ejas-webchat.is-v2 .ejas-webchat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:10px 12px 12px;background:#fff}
.ejas-webchat.is-v2 .ejas-webchat-form textarea{min-height:54px;max-height:130px;padding:12px 13px;border:1px solid #cfd4da;border-radius:10px;background:#fff;font-size:15px;line-height:1.35;resize:none}.ejas-webchat.is-v2 .ejas-webchat-form textarea:focus{border-color:#d71920;outline:2px solid rgba(215,25,32,.12)}
.ejas-webchat.is-v2 .ejas-webchat-form button[type="submit"]{min-width:74px;border-radius:10px;background:#d71920!important;color:#fff;font-weight:900}
.ejas-webchat.is-v2 footer{padding:6px 12px 8px;background:#111;color:#d2d2d2;text-align:center}.ejas-webchat.is-v2 .ejas-webchat-payment-card{border-left:4px solid #11753f;background:#f7fbf8}
@media(max-width:600px){.ejas-webchat.is-v2 .ejas-webchat-panel{width:min(100vw - 16px,560px);height:min(94dvh,760px);border-radius:14px}.ejas-webchat.is-v2 .ejas-webchat-actions{grid-template-columns:1fr 1fr;max-height:150px;padding:10px}.ejas-webchat.is-v2 .ejas-webchat-card{grid-template-columns:100px minmax(0,1fr)}.ejas-webchat.is-v2 .ejas-webchat-card img{width:100px;height:76px}}
@media(max-width:430px){.ejas-webchat.is-v2 .ejas-webchat-panel{width:100vw;height:100dvh;border-radius:0}.ejas-webchat.is-v2 .ejas-webchat-panel>header{border-radius:0}.ejas-webchat.is-v2 .ejas-webchat-actions{grid-template-columns:1fr 1fr;max-height:142px}.ejas-webchat.is-v2 .ejas-webchat-action,.ejas-webchat.is-v2 .ejas-webchat-action.chip{min-height:42px;font-size:11px}}

/* === EJAS Website Chat v72 customer-front ownership layer ===
   This block intentionally sits last and owns the live visual shell. */
:root{
  --ejas-chat-red:#d71920;
  --ejas-chat-red-dark:#b41218;
  --ejas-chat-black:#111111;
  --ejas-chat-ink:#18181b;
  --ejas-chat-muted:#5f6672;
  --ejas-chat-line:#dde1e7;
  --ejas-chat-surface:#ffffff;
  --ejas-chat-soft:#f6f7f9;
}

#ejas-webchat-panel.ejas-webchat-panel,
.ejas-webchat-panel{
  width:min(620px,calc(100vw - 28px)) !important;
  max-width:620px !important;
  border:1px solid rgba(17,17,17,.10) !important;
  border-radius:24px !important;
  background:var(--ejas-chat-surface) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.20) !important;
  overflow:hidden !important;
}

.ejas-webchat-header{
  background:var(--ejas-chat-black) !important;
  background-image:none !important;
  color:#fff !important;
  border-bottom:4px solid var(--ejas-chat-red) !important;
  padding:17px 20px 15px !important;
}
.ejas-webchat-header::before,
.ejas-webchat-header::after{background:none !important;}
.ejas-webchat-title,.ejas-webchat-subtitle{color:#fff !important;}
.ejas-webchat-subtitle{opacity:.78 !important;}
.ejas-webchat-header .ejas-webchat-new-chat{
  background:#fff !important;
  color:var(--ejas-chat-black) !important;
  border:1px solid #fff !important;
  border-radius:999px !important;
  font-weight:800 !important;
}
.ejas-webchat-header .ejas-webchat-close{color:#fff !important;}
.ejas-webchat-trust-badge{
  background:#fff !important;
  color:var(--ejas-chat-black) !important;
  border:0 !important;
  box-shadow:none !important;
}
.ejas-webchat-trust-badge::before{background:var(--ejas-chat-red) !important;}

.ejas-webchat-v2-context-strip,
.ejas-webchat-context-strip{
  background:#fff !important;
  border-bottom:1px solid var(--ejas-chat-line) !important;
  padding:12px 18px !important;
}
.ejas-webchat-v2-context-kicker,
.ejas-webchat-context-kicker{color:var(--ejas-chat-red) !important;}

.ejas-webchat-body,
.ejas-webchat-messages{
  background:var(--ejas-chat-soft) !important;
}
.ejas-webchat-messages{padding:18px !important;}
.ejas-webchat-message.assistant,
.ejas-webchat-message.bot,
.ejas-webchat-bubble.assistant{
  background:#fff !important;
  color:var(--ejas-chat-ink) !important;
  border:1px solid var(--ejas-chat-line) !important;
  border-radius:18px 18px 18px 6px !important;
  box-shadow:0 3px 10px rgba(0,0,0,.05) !important;
}
.ejas-webchat-message.user,
.ejas-webchat-bubble.user{
  background:var(--ejas-chat-red) !important;
  color:#fff !important;
  border-color:var(--ejas-chat-red) !important;
  border-radius:18px 18px 6px 18px !important;
}

.ejas-webchat-v2-vehicle-card,
.ejas-webchat-vehicle-card{
  background:#fff !important;
  border:1px solid var(--ejas-chat-line) !important;
  border-radius:18px !important;
  box-shadow:0 4px 14px rgba(0,0,0,.05) !important;
}
.ejas-webchat-v2-vehicle-card img,
.ejas-webchat-vehicle-card img{border-radius:14px !important;}

/* Persistent customer action dock: never transcript-only, never one-and-done. */
.ejas-webchat-v71-action-dock{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
  padding:12px 14px 10px !important;
  background:#fff !important;
  border-top:1px solid var(--ejas-chat-line) !important;
  position:relative !important;
  z-index:4 !important;
}
.ejas-webchat-v71-action-dock[hidden]{display:none !important;}
.ejas-webchat-v71-dock-action,
.ejas-webchat-v71-url-action{
  min-height:44px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:9px 11px !important;
  border:1px solid #cfd4dc !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--ejas-chat-black) !important;
  font-size:13px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  text-decoration:none !important;
  cursor:pointer !important;
  box-shadow:none !important;
}
.ejas-webchat-v71-dock-action:hover,
.ejas-webchat-v71-url-action:hover{
  border-color:var(--ejas-chat-red) !important;
  color:var(--ejas-chat-red) !important;
  background:#fff7f7 !important;
}
.ejas-webchat-v71-dock-action:first-child{
  background:var(--ejas-chat-red) !important;
  border-color:var(--ejas-chat-red) !important;
  color:#fff !important;
}
.ejas-webchat-v71-dock-action:first-child:hover{
  background:var(--ejas-chat-red-dark) !important;
  color:#fff !important;
}

.ejas-webchat-composer{
  padding:10px 14px 14px !important;
  background:#fff !important;
  border-top:0 !important;
  gap:9px !important;
}
.ejas-webchat-composer textarea,
.ejas-webchat-composer input[type="text"]{
  border:1px solid #cfd4dc !important;
  border-radius:14px !important;
  background:#fff !important;
  color:var(--ejas-chat-ink) !important;
  min-height:52px !important;
  box-shadow:none !important;
}
.ejas-webchat-send{
  background:var(--ejas-chat-red) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  min-width:74px !important;
  font-weight:800 !important;
}
.ejas-webchat-send:hover{background:var(--ejas-chat-red-dark) !important;}

/* Keep legacy response chips visually subordinate when they are retained for history. */
.ejas-webchat-actions{gap:8px !important;}
.ejas-webchat-action,
.ejas-webchat-quick-action{
  border-color:#d5d9df !important;
  background:#fff !important;
  color:var(--ejas-chat-black) !important;
}

@media (max-width:720px){
  #ejas-webchat-panel.ejas-webchat-panel,
  .ejas-webchat-panel{
    width:100vw !important;
    max-width:none !important;
    height:100dvh !important;
    max-height:100dvh !important;
    border-radius:0 !important;
    border:0 !important;
  }
  .ejas-webchat-v71-action-dock{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    padding:10px 10px 8px !important;
  }
  .ejas-webchat-v71-dock-action,
  .ejas-webchat-v71-url-action{font-size:12.5px !important;min-height:42px !important;}
  .ejas-webchat-header{padding:14px 14px 12px !important;}
  .ejas-webchat-messages{padding:14px !important;}
}

/* v72 live-v2 selector ownership: these are the exact classes emitted by the current Chat shell. */
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-head{
  background:var(--ejas-chat-black) !important;
  background-image:none !important;
  color:#fff !important;
  border-bottom:4px solid var(--ejas-chat-red) !important;
  padding:17px 20px 15px !important;
}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-head::before,
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-head::after{background:none !important;}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-head strong,
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-head small{color:#fff !important;}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-head small{opacity:.78 !important;}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-v2-trust{
  background:#fff !important;
  color:var(--ejas-chat-black) !important;
  border:0 !important;
  box-shadow:none !important;
}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-v2-trust::before{background:var(--ejas-chat-red) !important;}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-new-chat{
  background:#fff !important;
  color:var(--ejas-chat-black) !important;
  border:1px solid #fff !important;
  border-radius:999px !important;
  font-weight:800 !important;
}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-close{color:#fff !important;}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-v2-context{
  background:#fff !important;
  border-bottom:1px solid var(--ejas-chat-line) !important;
}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-v2-context-label{color:var(--ejas-chat-red) !important;}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-composer{
  background:#fff !important;
  border-top:0 !important;
}
.ejas-webchat-panel.ejas-webchat-v2 .ejas-webchat-send{
  background:var(--ejas-chat-red) !important;
  color:#fff !important;
  border-color:var(--ejas-chat-red) !important;
}


/* === EJAS Website Chat v73 LIVE MARKUP ownership layer ===
   This block targets the exact elements emitted by ejas_webchat_render().
   It intentionally sits last and overrides every older v2 presentation layer. */

/* Collapsed launcher: unmistakable v73 identity. */
.ejas-webchat.is-v2 .ejas-webchat-launch{
  min-height:54px !important;
  padding:14px 22px !important;
  border:2px solid var(--ejas-chat-red,#d71920) !important;
  border-radius:999px !important;
  background:#111 !important;
  background-image:none !important;
  color:#fff !important;
  box-shadow:0 12px 30px rgba(0,0,0,.26) !important;
  font-weight:900 !important;
  letter-spacing:.01em !important;
}
.ejas-webchat.is-v2 .ejas-webchat-launch::before{
  content:"";
  width:10px;
  height:10px;
  margin-right:9px;
  display:inline-block;
  border-radius:999px;
  background:var(--ejas-chat-red,#d71920);
  box-shadow:0 0 0 4px rgba(215,25,32,.16);
  vertical-align:middle;
}
.ejas-webchat.is-v2 .ejas-webchat-launch:hover{background:#1d1d1d !important;}

/* Exact live header emitted as <section class=ejas-webchat-panel><header>... */
.ejas-webchat.is-v2 .ejas-webchat-panel > header{
  padding:16px 18px !important;
  border-bottom:4px solid var(--ejas-chat-red,#d71920) !important;
  background:#111 !important;
  background-image:none !important;
  color:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-panel > header::before,
.ejas-webchat.is-v2 .ejas-webchat-panel > header::after{background:none !important;}
.ejas-webchat.is-v2 .ejas-webchat-brand{
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
  min-width:0 !important;
}
.ejas-webchat.is-v2 .ejas-webchat-brand-mark{
  display:grid !important;
  place-items:center !important;
  flex:0 0 38px !important;
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
  background:var(--ejas-chat-red,#d71920) !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:950 !important;
  letter-spacing:.03em !important;
}
.ejas-webchat.is-v2 .ejas-webchat-brand strong{
  color:#fff !important;
  font-size:15px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
}
.ejas-webchat.is-v2 .ejas-webchat-brand small{
  margin-top:3px !important;
  color:#d0d5dd !important;
  opacity:1 !important;
  font-size:11px !important;
}
.ejas-webchat.is-v2 .ejas-webchat-header-actions{gap:8px !important;}
.ejas-webchat.is-v2 .ejas-webchat-new{
  min-height:38px !important;
  padding:7px 12px !important;
  border:1px solid #fff !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#111 !important;
  font-size:12px !important;
  font-weight:900 !important;
}
.ejas-webchat.is-v2 .ejas-webchat-new:hover{background:#f2f4f7 !important;}
.ejas-webchat.is-v2 .ejas-webchat-close{
  color:#fff !important;
  background:transparent !important;
}

/* Exact live transcript. */
.ejas-webchat.is-v2 .ejas-webchat-messages{
  padding:16px 14px 24px !important;
  background:#f6f7f9 !important;
  background-image:none !important;
}
.ejas-webchat.is-v2 .ejas-webchat-message.assistant{
  border:1px solid #dde1e7 !important;
  border-radius:18px 18px 18px 6px !important;
  background:#fff !important;
  color:#18181b !important;
  box-shadow:0 3px 10px rgba(0,0,0,.05) !important;
}
.ejas-webchat.is-v2 .ejas-webchat-message.visitor{
  border-radius:18px 18px 6px 18px !important;
  background:var(--ejas-chat-red,#d71920) !important;
  color:#fff !important;
}

/* Exact live persistent controls emitted by server markup. */
.ejas-webchat.is-v2 .ejas-webchat-controls{
  border-top:1px solid #dde1e7 !important;
  background:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-tools-heading{
  display:flex !important;
  align-items:baseline !important;
  justify-content:space-between !important;
  gap:10px !important;
  padding:11px 14px 3px !important;
  background:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-tools-heading strong{
  color:#111 !important;
  font-size:12px !important;
  font-weight:950 !important;
  letter-spacing:.01em !important;
}
.ejas-webchat.is-v2 .ejas-webchat-tools-heading span{
  color:#667085 !important;
  font-size:10px !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  max-height:none !important;
  overflow:visible !important;
  padding:8px 14px 10px !important;
  background:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  min-height:44px !important;
  min-width:0 !important;
  padding:9px 11px !important;
  border:1px solid #cfd4dc !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#111 !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:left !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button span{
  display:grid !important;
  place-items:center !important;
  flex:0 0 26px !important;
  width:26px !important;
  height:26px !important;
  border-radius:8px !important;
  background:#f2f4f7 !important;
  color:#111 !important;
  font-weight:950 !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button:hover{
  border-color:var(--ejas-chat-red,#d71920) !important;
  background:#fff7f7 !important;
  color:var(--ejas-chat-red,#d71920) !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button:first-child{
  border-color:var(--ejas-chat-red,#d71920) !important;
  background:var(--ejas-chat-red,#d71920) !important;
  color:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button:first-child span{
  background:rgba(255,255,255,.18) !important;
  color:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button:first-child:hover{
  background:#b41218 !important;
  color:#fff !important;
}

/* Exact live composer markup. */
.ejas-webchat.is-v2 .ejas-webchat-form{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:9px !important;
  padding:4px 14px 14px !important;
  background:#fff !important;
}
.ejas-webchat.is-v2 .ejas-webchat-form textarea{
  min-height:56px !important;
  padding:11px 12px !important;
  border:1px solid #cfd4dc !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#18181b !important;
  box-shadow:none !important;
}
.ejas-webchat.is-v2 .ejas-webchat-form button[type="submit"]{
  min-width:76px !important;
  border:0 !important;
  border-radius:14px !important;
  background:var(--ejas-chat-red,#d71920) !important;
  color:#fff !important;
  font-weight:900 !important;
}
.ejas-webchat.is-v2 .ejas-webchat-form button[type="submit"]:hover{background:#b41218 !important;}
.ejas-webchat.is-v2 .ejas-webchat-panel > footer{
  padding:8px 14px 10px !important;
  border-top:1px solid #eef0f2 !important;
  background:#111 !important;
  color:#d0d5dd !important;
  font-size:10px !important;
  text-align:left !important;
}

@media (max-width:600px){
  .ejas-webchat.is-v2 .ejas-webchat-tools-heading{align-items:flex-start !important;flex-direction:column !important;gap:2px !important;}
  .ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock{grid-template-columns:1fr 1fr !important;gap:7px !important;padding:7px 10px 9px !important;}
  .ejas-webchat.is-v2 .ejas-webchat-quick.ejas-webchat-tool-dock button{min-height:42px !important;padding:8px !important;font-size:11.5px !important;}
  .ejas-webchat.is-v2 .ejas-webchat-panel > header{padding:13px 12px !important;}
  .ejas-webchat.is-v2 .ejas-webchat-form{padding:4px 10px 10px !important;}
}

/* === EJAS Website Chat v75 authority-presentation boundary ===
   Additive to the exact v74 startup/UI ownership layer above. */
.ejas-webchat.is-v2 .ejas-webchat-card-list{
  display:grid;
  gap:8px;
  margin:0 0 12px;
}
.ejas-webchat.is-v2 .ejas-webchat-card-list .ejas-webchat-card{margin:0}
.ejas-webchat.is-v2 .ejas-webchat-card:not(:has(img)){grid-template-columns:minmax(0,1fr)}

.ejas-webchat.is-v2 .ejas-webchat-payment{
  margin:0 0 14px;
  padding:14px;
  border:1px solid #cbd5e1;
  border-left:4px solid var(--ejas-chat-red,#d71920);
  border-radius:14px;
  background:#fff;
  color:#101828;
  box-shadow:0 4px 14px rgba(16,24,40,.07);
}
.ejas-webchat.is-v2 .ejas-webchat-payment-eyebrow{display:block;color:#8b1116;font-size:10px;font-weight:900;letter-spacing:.09em}
.ejas-webchat.is-v2 .ejas-webchat-payment-title{display:block;margin-top:4px;font-size:14px;line-height:1.3}
.ejas-webchat.is-v2 .ejas-webchat-payment-range{margin:10px 0 12px;color:#8b1116;font-size:28px;font-weight:900;letter-spacing:-.025em;line-height:1}
.ejas-webchat.is-v2 .ejas-webchat-payment-range span{color:#667085;font-size:12px;font-weight:700;letter-spacing:0}
.ejas-webchat.is-v2 .ejas-webchat-payment-details{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;margin:0;padding-top:10px;border-top:1px solid #eaecf0;font-size:12px}
.ejas-webchat.is-v2 .ejas-webchat-payment-details dt{color:#667085}
.ejas-webchat.is-v2 .ejas-webchat-payment-details dd{margin:0;color:#101828;font-weight:800;text-align:right}
.ejas-webchat.is-v2 .ejas-webchat-payment-assumption{margin:10px 0 0;padding:8px 9px;border-radius:8px;background:#f8fafc;color:#344054;font-size:11px;line-height:1.35}
.ejas-webchat.is-v2 .ejas-webchat-payment-disclosure{display:block;margin-top:9px;color:#667085;font-size:10px;line-height:1.4}

@media(min-width:821px){
 .ejas-webchat.is-v2 .ejas-webchat-card-list:has(.ejas-webchat-card:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
 .ejas-webchat.is-v2 .ejas-webchat-card-list:has(.ejas-webchat-card:nth-child(2)) .ejas-webchat-card{grid-template-columns:78px minmax(0,1fr)}
 .ejas-webchat.is-v2 .ejas-webchat-card-list:has(.ejas-webchat-card:nth-child(2)) .ejas-webchat-card:not(:has(img)){grid-template-columns:minmax(0,1fr)}
 .ejas-webchat.is-v2 .ejas-webchat-card-list:has(.ejas-webchat-card:nth-child(2)) .ejas-webchat-card img{width:78px;height:62px}
}

@media(max-width:430px){
 .ejas-webchat.is-v2 .ejas-webchat-payment-range{font-size:24px}
 .ejas-webchat.is-v2 .ejas-webchat-payment-details{gap:6px 10px}
}
