/* Shared Online Store chat theme. The original chat owns behavior and layout states. */
#weimer-chat-launcher.customer-chat-launcher,
#weimer-customer-chat.customer-chat,
#weimer-customer-chat.customer-chat *,
.customer-chat-invitation,
.customer-chat-invitation * {
  font-family:"Hyundai Type",Helvetica,Arial,sans-serif!important;
}

/* Keep the existing launcher label and desktop footprint. */
#weimer-chat-launcher.customer-chat-launcher {
  width:auto;
  min-width:146px;
  height:44px;
  min-height:44px;
  padding:0 20px;
  gap:8px;
  align-items:center;
  justify-content:center;
  background:#003B70;
  color:#fff;
  border:1px solid #003B70;
  border-radius:24px;
  box-shadow:none;
}
#weimer-chat-launcher.customer-chat-launcher > span {display:none}
#weimer-chat-launcher.customer-chat-launcher svg {width:18px;height:18px}
#weimer-chat-launcher.customer-chat-launcher::after {
  content:"NEED HELP?";
  font-size:12px;
  font-weight:600;
  line-height:20px;
  white-space:nowrap;
}
#weimer-chat-launcher.customer-chat-launcher:hover {background:#003B70;border-color:#003B70}
#weimer-chat-launcher.customer-chat-launcher[aria-busy="true"] {cursor:wait;opacity:.7}

/* The source keeps the full-height right drawer and mobile keyboard sizing. */
/* The VDP's legacy checkout reset must not override the chat's scroll lock. */
body.online-vdp-preview:has(#weimer-customer-chat[open]) {overflow:hidden!important}
#weimer-customer-chat.customer-chat {
  background:#fff;
  color:#202124;
  box-shadow:-10px 0 40px #0003;
  font-size:15px;
  line-height:1.5;
}
#weimer-customer-chat.customer-chat::backdrop {background:#0006}
#weimer-customer-chat .customer-chat-header {
  background:#003B70!important;
  color:#fff!important;
}
#weimer-customer-chat .customer-chat-header strong {
  color:#fff;
  font-size:15px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:0;
}
#weimer-customer-chat .customer-chat-header span {
  color:#ddd;
  font-size:10px;
  line-height:1.4;
}
#weimer-customer-chat .customer-chat-header [data-chat-close] {
  background:#ffffff12;
  color:#fff;
  border:1px solid #ffffff40;
  border-radius:50%;
  font-size:28px;
}
#weimer-customer-chat .customer-chat-header [data-chat-close]:hover {background:#333}
#weimer-customer-chat .customer-chat-log {background:#fff;scrollbar-color:#aaa transparent}
#weimer-customer-chat .customer-chat-message {
  background:#F4F6F8;
  color:#202124;
  border:1px solid #ddd;
  border-radius:6px;
}
#weimer-customer-chat .customer-chat-message.user {
  background:#003B70;
  color:#fff;
  border-color:#003B70;
}
#weimer-customer-chat .customer-chat-speaker {
  color:inherit;
  font-size:11px;
  font-weight:600;
  opacity:.8;
}
#weimer-customer-chat .customer-chat-message p {font-size:15px;line-height:1.5}
#weimer-customer-chat .customer-chat-typing-dots i {background:#666}
#weimer-customer-chat .customer-chat-prompts button {
  background:#fff;
  color:#202124;
  border:1px solid #aaa;
  border-radius:24px;
  font-size:13px;
  line-height:1.3;
}
#weimer-customer-chat .customer-chat-prompts button:hover {background:#f0f0f0;border-color:#003B70}
#weimer-customer-chat .customer-chat-lead-actions {
  background:#F4F6F8;
  border-top:1px solid #ddd;
  border-bottom:1px solid #ddd;
}
#weimer-customer-chat .customer-chat-lead-actions button {
  background:#fff;
  color:#202124;
  border:1px solid #aaa;
  border-radius:24px;
  font-size:12px;
  line-height:1.3;
  font-weight:500;
}
#weimer-customer-chat .customer-chat-lead-actions button:hover {background:#e8e8e8;border-color:#003B70}
#weimer-customer-chat .customer-chat-status {color:#555;font-size:12px}

#weimer-customer-chat .customer-chat-compose {background:#fff}
#weimer-customer-chat .customer-chat-compose textarea {
  background:#fff;
  color:#202124;
  border:1px solid #aaa;
  border-radius:6px;
  font-size:16px;
  line-height:1.4;
  box-shadow:none;
}
#weimer-customer-chat .customer-chat-compose textarea::placeholder {color:#666;opacity:1}
#weimer-customer-chat .customer-chat-compose [data-chat-send] {
  background:#003B70;
  color:#fff;
  border:1px solid #003B70;
  border-radius:24px;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}
#weimer-customer-chat .customer-chat-compose [data-chat-send]:hover:not(:disabled) {background:#003B70;border-color:#003B70}
#weimer-customer-chat .customer-chat-compose button:disabled {opacity:.45;cursor:wait}
#weimer-customer-chat .customer-chat-compose .customer-chat-input-wrap [data-chat-mic] {
  background:transparent;
  color:#333;
}
#weimer-customer-chat .customer-chat-compose .customer-chat-input-wrap [data-chat-mic]:hover {color:#000}
#weimer-customer-chat .customer-chat-compose .customer-chat-input-wrap [data-chat-mic][aria-pressed="true"] {
  background:transparent;
  color:#b51b32;
}
#weimer-customer-chat .customer-chat-footer {color:#606060;background:#fff}
#weimer-customer-chat a {color:#111}
#weimer-customer-chat .customer-chat-message.user a {color:#fff;text-decoration:underline}
#weimer-customer-chat .customer-chat-vehicle {
  background:#F4F6F8;
  color:#202124;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:13px;
  line-height:1.4;
}
#weimer-customer-chat .customer-chat-vehicle:hover {border-color:#777}
#weimer-customer-chat .customer-chat-vehicle strong {font-size:14px;font-weight:600}
#weimer-customer-chat .customer-chat-vehicle span:last-child {color:#111;font-weight:600}
#weimer-customer-chat .customer-chat-photo {background:#eee;border-radius:4px}
#weimer-customer-chat .customer-chat-facts {color:#555}
#weimer-customer-chat .customer-chat-links a {
  background:#fff;
  color:#202124;
  border:1px solid #aaa;
  border-radius:24px;
}
#weimer-customer-chat .customer-chat-links a:hover {background:#f0f0f0;border-color:#003B70}

.customer-chat-invitation {
  background:#fff;
  color:#202124;
  border:1px solid #ccc;
  border-radius:6px;
  box-shadow:0 6px 24px #0002;
}
.customer-chat-invitation button {color:#202124;font-size:15px;line-height:1.5}
.customer-chat-invitation .customer-chat-invitation-close {color:#555;font-size:24px}
.customer-chat-invitation button:hover {color:#000}

/* Chat request forms use the source dialog and retain all original form handling. */
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog,
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog * {
  font-family:"Hyundai Type",Helvetica,Arial,sans-serif!important;
}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog {
  background:#fff;
  color:#202124;
  border:0;
  border-left:1px solid #ddd;
  border-radius:0;
  box-shadow:-8px 0 32px #0003;
  font-size:14px;
  line-height:1.5;
}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog::backdrop {background:#0006}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog h2 {color:#202124;font-size:23px;font-weight:500;line-height:1.3}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog p {color:#555}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog input:not([type="checkbox"]),
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog select {
  background:#fff;
  color:#202124;
  border:1px solid #aaa;
  border-radius:4px;
  font-size:16px;
}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog input[type="checkbox"] {accent-color:#003B70}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .primary {
  background:#003B70!important;
  color:#fff!important;
  border:1px solid #003B70!important;
  border-radius:24px!important;
  font-size:13px;
  font-weight:600;
}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .primary:hover:not(:disabled) {background:#003B70!important;border-color:#003B70!important}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog button:disabled {opacity:.45;cursor:wait}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .shopping-lead-close {color:#333}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .shopping-lead-vehicle {background:#F4F6F8;border-color:#ddd;border-radius:6px;color:#202124}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .shopping-lead-vehicle img {background:#eee}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .shopping-lead-vehicle-summary img {background:transparent}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .checkout-selling-price {color:#111}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog .checkout-vehicle-discount {color:#555}
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog a {color:#111}

#weimer-chat-launcher.customer-chat-launcher:focus-visible,
#weimer-customer-chat :focus-visible,
.customer-chat-invitation :focus-visible,
body:has(#weimer-customer-chat[open]) .shopping-lead-dialog :focus-visible {
  outline:2px solid #003B70;
  outline-offset:3px;
}
#weimer-chat-launcher.customer-chat-launcher:focus-visible {outline-color:#777;box-shadow:0 0 0 2px #fff}
#weimer-customer-chat .customer-chat-header :focus-visible {outline-color:#fff}

@media(max-width:700px) {
  /* Preserve the source's full-width launcher and safe area on small screens. */
  #weimer-chat-launcher.customer-chat-launcher {
    width:100%;
    height:auto;
    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 #333;
    border-radius:0;
  }
}
@media(prefers-reduced-motion:reduce) {
  #weimer-customer-chat[open],
  #weimer-customer-chat .customer-chat-typing-dots i {animation:none}
  #weimer-customer-chat [data-chat-expand] svg {transition:none}
}

/* Plain close glyph; preserve the existing layout and keyboard focus indication. */
#weimer-customer-chat .customer-chat-header [data-chat-close],
#weimer-customer-chat .customer-chat-header [data-chat-close]:hover,
#weimer-customer-chat .customer-chat-header [data-chat-close]:active {
 background:transparent!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 color:#fff!important;
}
#weimer-customer-chat .customer-chat-header [data-chat-close]:focus{outline:none!important}
#weimer-customer-chat .customer-chat-header [data-chat-close]:focus-visible{text-shadow:0 0 6px #fff}

/* Mobile contact bar: equal help, service scheduling, and call actions. */
#weimer-mobile-call,#weimer-mobile-service{display:none}
@media(max-width:700px){
 #weimer-chat-launcher.customer-chat-launcher{left:0;right:auto;bottom:0;width:calc(100% / 3);min-width:0;box-sizing:border-box}
 #weimer-chat-launcher.customer-chat-launcher::after{content:"TEXT US"}
 #weimer-mobile-service,#weimer-mobile-call{position:fixed;display:flex;align-items:center;justify-content:center;gap:8px;right:0;left:auto;bottom:0;width:calc(100% / 3);box-sizing:border-box;z-index:1001;min-height:calc(60px + env(safe-area-inset-bottom));padding:16px 12px calc(16px + env(safe-area-inset-bottom));margin:0;background:#003B70;color:#fff;border:0;border-top:1px solid #333;border-left:1px solid #555;border-radius:0;text-decoration:none;font:600 12px/20px "Hyundai Type",Helvetica,Arial,sans-serif;white-space:nowrap;touch-action:manipulation}
 #weimer-mobile-service{left:calc(100% / 3);right:auto}
 #weimer-mobile-service svg,#weimer-mobile-call svg{width:18px;height:18px;flex:none}
 #weimer-mobile-service:hover,#weimer-mobile-call:hover{background:#003B70}
 #weimer-mobile-service:focus-visible,#weimer-mobile-call:focus-visible{outline:2px solid #fff;outline-offset:-4px}
 body:has(dialog[open]) #weimer-mobile-service,body:has(dialog[open]) #weimer-mobile-call{visibility:hidden}
}

/* Contextual conversation actions match the store’s outlined buttons. */
#weimer-customer-chat .customer-chat-links button{background:#fff;color:#202124;border:1px solid #aaa;border-radius:24px;padding:8px 12px;font:600 12px/18px "Hyundai Type",Helvetica,Arial,sans-serif;cursor:pointer;white-space:normal}
#weimer-customer-chat .customer-chat-links button:hover{background:#f0f0f0;border-color:#003B70}

#weimer-chat-launcher.customer-chat-launcher{background:#fff;color:#003B70;border-color:#003B70}
#weimer-chat-launcher.customer-chat-launcher:hover{background:#F4F6F8;color:#003B70;border-color:#003B70}

/* 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;
}
