/* Load assets/fonts/widget-fonts.css before this file. No native CarWorth selector is changed. */
.wca-cw {
  --wca-cw-navy: #031631;
  --wca-cw-ink: #102747;
  --wca-cw-blue: #1477ff;
  --wca-cw-link: #075bc9;
  --wca-cw-safe-bottom: 80px;
  --wca-cw-keyboard-inset: 0px;
  --wca-cw-view-height: 100dvh;
  --wca-cw-view-width: 100vw;
  --wca-cw-bottom: max(var(--wca-cw-safe-bottom), calc(var(--wca-cw-keyboard-inset) + 12px), calc(env(safe-area-inset-bottom, 0px) + 72px));
  color: var(--wca-cw-ink);
  font: 400 14px/1.5 'WCA CW Plex', 'IBM Plex Sans', Arial, sans-serif;
  text-align: left;
  direction: ltr;
  color-scheme: light;
}
.wca-cw *, .wca-cw *::before, .wca-cw *::after { box-sizing: border-box; }
.wca-cw [hidden] { display: none !important; }
.wca-cw :is(p, h2, h3) { margin: 0; padding: 0; color: inherit; }
.wca-cw :is(button, textarea) { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.wca-cw button { appearance: none; cursor: pointer; touch-action: manipulation; }
.wca-cw button:disabled { cursor: not-allowed; }
.wca-cw :is(button, a, textarea):focus-visible { outline: 3px solid #0765da; outline-offset: 3px; }
.wca-cw :is(button, a) { -webkit-tap-highlight-color: transparent; }
.wca-cw a { overflow-wrap: anywhere; }
.wca-cw .wca-cw-launcher {
  position: fixed;
  z-index: 99980; /* Below the native CarWorth cookie UI (99990). */
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: var(--wca-cw-bottom);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid #69adff;
  border-radius: 4px;
  background: var(--wca-cw-blue);
  color: white;
  box-shadow: 5px 5px 0 #09264e, 0 8px 25px rgb(3 22 49 / 18%);
  font-weight: 600;
  font-size: 15px;
}
.wca-cw .wca-cw-launcher:hover { background: #075bc9; }
.wca-cw .wca-cw-launcher:focus-visible { outline-color: #83bcff; }
.wca-cw .wca-cw-chat-icon {
  position: relative;
  flex: 0 0 21px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.wca-cw .wca-cw-chat-icon::after { content: ''; position: absolute; width: 6px; height: 6px; bottom: -5px; left: 3px; border-left: 2px solid currentColor; transform: skewY(-35deg); background: inherit; }
.wca-cw .wca-cw-launcher-note { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(var(--wca-cw-bottom) - 25px); z-index: 99979; padding: 3px 6px; border-radius: 2px; color: #435a75; background: #fff; font-size: 11px; }
.wca-cw .wca-cw-dialog {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right, 0px)) var(--wca-cw-bottom) auto;
  z-index: 99981;
  width: min(432px, calc(var(--wca-cw-view-width) - 24px));
  max-width: calc(100vw - 24px);
  height: min(748px, calc(var(--wca-cw-view-height) - var(--wca-cw-safe-bottom) - 24px));
  max-height: calc(var(--wca-cw-view-height) - var(--wca-cw-safe-bottom) - 24px);
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 1px solid #c2d5ee;
  border-top: 4px solid var(--wca-cw-blue);
  border-radius: 5px;
  background: white;
  color: var(--wca-cw-ink);
  box-shadow: 0 22px 75px rgb(3 22 49 / 32%);
  overflow: hidden;
  font: inherit;
  text-align: left;
}
.wca-cw .wca-cw-dialog[open] { display: flex; flex-direction: column; }
.wca-cw .wca-cw-dialog:not([open]) { display: none; }
.wca-cw .wca-cw-dialog::backdrop { background: rgb(3 22 49 / 30%); }
.wca-cw .wca-cw-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 17px 16px;
  color: #fff;
  background: linear-gradient(115deg, #031631, #092b59);
}
.wca-cw .wca-cw-logo { display: block; width: 44px; height: 44px; max-width: 100%; object-fit: contain; }
.wca-cw .wca-cw-identity { min-width: 0; }
.wca-cw .wca-cw-eyebrow { color: #89beff; font-size: 9px; line-height: 1.4; font-weight: 600; letter-spacing: .1em; }
.wca-cw .wca-cw-title { font: 700 27px/1.1 'WCA CW Barlow', 'Barlow Condensed', Arial, sans-serif; letter-spacing: .025em; text-transform: uppercase; margin-top: 3px; }
.wca-cw .wca-cw-close { width: 44px; height: 44px; padding: 0; background: transparent; color: #fff; font: 400 30px/1 Arial, sans-serif; border: 1px solid #6c88aa; border-radius: 3px; }
.wca-cw .wca-cw-close:hover { background: #183c69; }
.wca-cw .wca-cw-header :focus-visible { outline-color: #91bfff; }
.wca-cw .wca-cw-connection { flex: 0 0 auto; padding: 10px 18px; background: #eaf3ff; color: #153e74; border-bottom: 1px solid #d2e3f7; font-size: 12px; font-weight: 500; line-height: 1.5; }
.wca-cw .wca-cw-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; padding: 22px 22px 18px; scrollbar-width: thin; }
.wca-cw .wca-cw-intro h3 { font: 700 26px/1.15 'WCA CW Barlow', 'Barlow Condensed', Arial, sans-serif; text-transform: uppercase; letter-spacing: .015em; color: #102747; }
.wca-cw .wca-cw-intro > p { margin-top: 9px; font-size: 14px; color: #425772; }
.wca-cw .wca-cw-topics { display: grid; gap: 8px; margin-top: 18px; }
.wca-cw .wca-cw-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #9bbbe2; border-radius: 3px; background: #fff; color: #17416f; font-weight: 500; font-size: 14px; text-align: left; }
.wca-cw .wca-cw-suggestion::after { content: '→'; flex: 0 0 auto; color: #0765da; }
.wca-cw .wca-cw-suggestion:hover:not(:disabled) { background: #edf5ff; border-color: #1477ff; }
.wca-cw .wca-cw-suggestion:disabled { background: #f3f6fa; color: #677587; border-color: #d9e2ed; }
.wca-cw .wca-cw-suggestion:disabled::after { color: #677587; }
.wca-cw .wca-cw-topic-note { margin-top: 9px; color: #536780; font-size: 11px; line-height: 1.5; }
.wca-cw .wca-cw-support { margin-top: 22px; padding-top: 17px; border-top: 1px solid #dbe5f2; }
.wca-cw .wca-cw-support h3 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.wca-cw .wca-cw-support-links { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; margin-top: 5px; }
.wca-cw .wca-cw-link { display: inline-flex; align-items: center; min-height: 38px; color: var(--wca-cw-link); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 500; }
.wca-cw .wca-cw-link:hover { color: #031631; }
.wca-cw .wca-cw-messages { display: grid; gap: 12px; margin-top: 18px; }
.wca-cw .wca-cw-messages:empty { margin-top: 0; }
.wca-cw .wca-cw-message { min-width: 0; padding: 12px 14px; background: #f1f6fc; border-left: 3px solid #1477ff; border-radius: 2px; }
.wca-cw .wca-cw-message-user { background: #102747; border-left-color: #80baff; color: #fff; margin-left: 24px; }
.wca-cw .wca-cw-message-author { margin-bottom: 5px; font-size: 11px; font-weight: 600; }
.wca-cw .wca-cw-message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.wca-cw .wca-cw-answer-links { display: grid; gap: 2px; margin-top: 8px; }
.wca-cw .wca-cw-feedback { margin-top: 14px; font-size: 13px; color: #254b79; padding: 11px; background: #eaf3ff; border: 1px solid #c8dcf5; overflow-wrap: anywhere; }
.wca-cw .wca-cw-feedback:empty { display: none; }
.wca-cw .wca-cw-fallback-links { display: flex; flex-wrap: wrap; column-gap: 16px; }
.wca-cw .wca-cw-footer { flex: 0 0 auto; border-top: 1px solid #dce5ef; padding: 8px 14px 6px; background: #f8fafd; }
.wca-cw .wca-cw-privacy-note { font-size: 11px; color: #465b75; line-height: 1.35; }
.wca-cw .wca-cw-composer { display: block; margin: 6px 0 0; padding: 0; border: 0; }
.wca-cw .wca-cw-input-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wca-cw .wca-cw-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 8px; align-items: stretch; }
.wca-cw .wca-cw-input { display: block; min-width: 0; width: 100%; height: 44px; padding: 9px 10px; border: 1px solid #87a7d1; border-radius: 3px; background: #fff; color: #102747; font-size: 16px; line-height: 1.4; resize: none; }
.wca-cw .wca-cw-input::placeholder { color: #617288; opacity: 1; font-size: 13px; }
.wca-cw .wca-cw-input:disabled { background: #eef2f7; color: #65768b; border-color: #cdd8e6; opacity: 1; -webkit-text-fill-color: #65768b; }
.wca-cw .wca-cw-send { border: 1px solid #1477ff; border-radius: 3px; background: #1477ff; color: #fff; font-weight: 600; }
.wca-cw .wca-cw-send:hover:not(:disabled) { background: #075bc9; }
.wca-cw .wca-cw-send:disabled { background: #e0e7ef; border-color: #c6d1de; color: #586d85; }
.wca-cw .wca-cw-input-note { font-size: 10px; line-height: 1.3; color: #5d7088; margin-top: 3px; }
.wca-cw .wca-cw-session-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 2px; }
.wca-cw :is(.wca-cw-clear, .wca-cw-cancel) { padding: 3px 0; min-height: 28px; border: 0; border-radius: 0; background: none; color: #345a85; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.wca-cw .wca-cw-session-bar > a { font-size: 11px; min-height: 28px; }
.wca-cw .wca-cw-session-bar > a:first-of-type { margin-left: auto; }
.wca-cw .wca-cw-processing { margin-top: 12px; color: #465b75; font-size: 12px; }
.wca-cw .wca-cw-processing summary { cursor: pointer; min-height: 32px; padding-block: 6px; text-decoration: underline; text-underline-offset: 3px; }
.wca-cw .wca-cw-processing p { margin-top: 4px; }
@media (max-width: 480px) {
  .wca-cw .wca-cw-launcher { right: 12px; padding: 12px 16px; }
  .wca-cw .wca-cw-launcher-note { right: 12px; }
  .wca-cw .wca-cw-dialog { right: 12px; width: calc(var(--wca-cw-view-width) - 24px); border-radius: 3px; }
  .wca-cw .wca-cw-header { padding: 13px 12px; grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 8px; }
  .wca-cw .wca-cw-logo { width: 36px; height: 36px; }
  .wca-cw .wca-cw-title { font-size: 24px; }
  .wca-cw .wca-cw-eyebrow { font-size: 8px; letter-spacing: .07em; }
  .wca-cw .wca-cw-content { padding: 18px 16px; }
  .wca-cw .wca-cw-footer { padding-inline: 14px; }
  .wca-cw .wca-cw-connection { padding-inline: 14px; font-size: 11px; }
}
/* Short viewport: only content scrolls; header, status and compact composer remain bounded. */
.wca-cw[data-wca-cw-compact='true'] .wca-cw-header { padding: 6px 10px; gap: 6px; }
.wca-cw[data-wca-cw-compact='true'] .wca-cw-title { font-size: 22px; }
.wca-cw[data-wca-cw-compact='true'] .wca-cw-connection { padding: 4px 10px; font-size: 11px; line-height: 1.35; }
.wca-cw[data-wca-cw-compact='true'] .wca-cw-footer { padding: 5px 10px 4px; }
.wca-cw[data-wca-cw-compact='true'] .wca-cw-composer { margin-top: 4px; }
.wca-cw[data-wca-cw-compact='true'] .wca-cw-input { height: 40px; padding: 7px 8px; }
.wca-cw[data-wca-cw-compact='true'] .wca-cw-content { padding: 12px; }
@media (max-height: 600px) {
  .wca-cw .wca-cw-header { padding: 6px 10px; gap: 6px; }
  .wca-cw .wca-cw-title { font-size: 22px; }
  .wca-cw .wca-cw-connection { padding: 4px 10px; font-size: 11px; line-height: 1.35; }
  .wca-cw .wca-cw-footer { padding: 5px 10px 4px; }
  .wca-cw .wca-cw-composer { margin-top: 4px; }
  .wca-cw .wca-cw-input { height: 40px; padding: 7px 8px; }
  .wca-cw .wca-cw-content { padding: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wca-cw :is(button, a) { transition: background-color 140ms ease-out, color 140ms ease-out; }
  .wca-cw .wca-cw-dialog[open] { animation: wca-cw-enter 160ms cubic-bezier(.23,1,.32,1); }
  @keyframes wca-cw-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .wca-cw *, .wca-cw *::before, .wca-cw *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .wca-cw :is(button, textarea, .wca-cw-dialog, .wca-cw-message) { border: 1px solid ButtonText; }
  .wca-cw :is(button, a, textarea):focus-visible { outline-color: Highlight; }
}

/* Assistant-only contrast against its white content panel. */
#wc-assistant .wca-cw .wca-cw-processing p { color: #425772; }
#wc-assistant .wca-cw .wca-cw-support h3 { color: #425772; }

/* Owner-requested readable reply and light-button hover text. */
#wc-assistant .wca-cw .wca-cw-message-assistant :is(.wca-cw-message-author, .wca-cw-message-text) { color: #075bc9; }
#wc-assistant .wca-cw :is(.wca-cw-suggestion, .wca-cw-clear, .wca-cw-cancel):hover:not(:disabled) { color: #17416f; }
