#wca-chat-root {
  position: fixed;
  z-index: 999998;
  right: calc(var(--wca-right, 20px) + 28px);
  bottom: var(--wca-bottom, 160px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}
#wca-chat-root * { box-sizing: border-box; }
.wca-bubble {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4A4A4A;
  color: #C30D12;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wca-bubble:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.wca-bubble svg { width: 29px; height: 29px; }
.wca-teaser {
  position: absolute;
  right: 74px;
  bottom: 12px;
  width: 150px;
  max-width: min(150px, calc(100vw - 112px));
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 12px 12px 3px 12px;
  background: #f3f3f3;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 5px 18px rgba(0,0,0,.13);
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.wca-teaser:after { content: ""; position: absolute; right: -6px; bottom: 10px; width: 10px; height: 10px; background: #f3f3f3; border-right: 1px solid #d5d5d5; border-top: 1px solid #d5d5d5; transform: rotate(45deg); }
.wca-teaser.wca-hidden { opacity: 0; transform: translateY(4px); pointer-events: none; }
.wca-window {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(610px, calc(100vh - 125px));
  min-height: 450px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,.24);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.wca-window.wca-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; visibility: visible; }
.wca-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  background: var(--wca-primary, #C30D12);
  color: #fff;
}
.wca-brand-mark { display: flex; flex: 0 0 38px; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.14); }
.wca-brand-mark svg { width: 24px; height: 24px; color: #fff; }
.wca-header-copy { min-width: 0; flex: 1; }
.wca-header-title { overflow: hidden; font-size: 14px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; }
.wca-header-sub { margin-top: 3px; font-size: 11px; line-height: 1.3; opacity: .9; }
.wca-close { display: flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.wca-close:hover { background: rgba(255,255,255,.14); }
.wca-messages { display: flex; flex: 1 1 auto; flex-direction: column; gap: 9px; min-height: 60px; padding: 14px 13px 10px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.wca-msg { max-width: 94%; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.wca-msg a, .wca-msg a:visited { color: #C30D12 !important; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.wca-msg a:hover, .wca-msg a:focus-visible { color: #9F0A0F !important; }
.wca-msg-bot { align-self: flex-start; border: 1px solid #e9e9e9; border-bottom-left-radius: 4px; background: #f0f0f0; color: #242424; }
.wca-msg-user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--wca-primary, #C30D12); color: #fff; }
.wca-msg-user a, .wca-msg-user a:visited { color: #fff !important; }
.wca-msg-typing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 11px 13px; border: 1px solid #e9e9e9; border-radius: 12px 12px 12px 4px; background: #f0f0f0; }
.wca-msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: #777; animation: wca-blink 1.1s infinite ease-in-out; }
.wca-msg-typing span:nth-child(2) { animation-delay: .18s; }
.wca-msg-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes wca-blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.wca-quick-area { flex: 0 0 auto; padding: 9px 12px 11px; border-top: 1px solid #ededed; background: #f1f1f1; }
.wca-quick-heading { margin: 0 0 7px 1px; color: #555; font-size: 10px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.wca-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wca-quick-button { min-width: 0; min-height: 31px; padding: 6px 7px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: #292929; font: inherit; font-size: 10.5px; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.wca-quick-button:hover, .wca-quick-button:focus-visible { border-color: var(--wca-primary, #C30D12); background: var(--wca-primary, #C30D12); color: #fff; outline: none; }
.wca-input-row { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 10px 11px; border-top: 1px solid #e8e8e8; background: #fff; }
.wca-input { width: 100%; min-width: 0; height: 40px; flex: 1; padding: 0 14px; border: 1px solid #dedede; border-radius: 22px; background: #fff; color: #222; font: inherit; font-size: 12.5px; outline: none; }
.wca-input:focus { border-color: var(--wca-primary, #C30D12); box-shadow: 0 0 0 2px rgba(195,13,18,.16); }
.wca-send { display: flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--wca-primary, #C30D12); color: #fff; cursor: pointer; }
.wca-send:hover { filter: brightness(.92); }
.wca-send:disabled { opacity: .55; cursor: default; }
.wca-send svg { width: 17px; height: 17px; }
@media (max-width: 520px) {
  #wca-chat-root { right: 24px; bottom: 116px; }
  .wca-window { position: fixed; right: 12px; bottom: 88px; width: min(390px, calc(100vw - 24px)); height: min(650px, calc(100dvh - 110px)); min-height: 0; max-width: none; }
  .wca-teaser { right: 72px; bottom: 12px; width: 138px; max-width: calc(100vw - 105px); font-size: 12px; }
  .wca-quick-area { padding: 8px 10px 9px; }
  .wca-quick-grid { gap: 5px; }
  .wca-quick-button { min-height: 30px; padding: 5px 5px; font-size: 10px; }
  .wca-header { padding: 12px 13px; }
}
@media (max-height: 620px) and (min-width: 521px) {
  .wca-window { height: calc(100vh - 115px); min-height: 400px; }
  .wca-quick-area { padding-top: 6px; padding-bottom: 7px; }
  .wca-quick-button { min-height: 27px; padding: 4px 5px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wca-bubble, .wca-window, .wca-teaser, .wca-quick-button { transition: none; }
  .wca-msg-typing span { animation: none; }
}

/* Planit Dirt red + charcoal theme */
.wca-quick-area { background: #e8e6e4; border-top-color: #d3cfcb; }
.wca-quick-heading { color: #4A4A4A; }
.wca-quick-button { border-color: #b9b4af; }
.wca-quick-button:hover, .wca-quick-button:focus-visible { background: #C30D12; border-color: #C30D12; }
.wca-msg-bot { background: #f3f1ef; border-color: #e0dcd8; }
.wca-teaser { background: #f3f1ef; border-color: #d3cfcb; }
.wca-teaser:after { background: #f3f1ef; border-color: #d3cfcb; }
.wca-credit { flex: 0 0 auto; padding: 3px 8px 5px; background: #fff; color: #4A4A4A; font-size: 9px; line-height: 1.2; text-align: center; letter-spacing: .02em; }


/* v2.0.7: Planit Dirt logo launcher and premium one-line greeting */
.wca-bubble {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #C30D12;
  box-shadow: none;
  overflow: visible;
}
.wca-bubble:hover { transform: translateY(-2px); box-shadow: none; }
.wca-bubble .wca-launcher-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.22));
}
.wca-teaser {
  right: 82px;
  bottom: 20px;
  width: max-content;
  max-width: min(280px, calc(100vw - 112px));
  padding: 13px 17px;
  border: 1px solid rgba(195,13,18,.55);
  border-radius: 13px;
  background: linear-gradient(135deg, #242424, #3d3d3d);
  color: #fff;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(0,0,0,.24);
}
.wca-teaser:after { background: #333; border-color: #C30D12; }
@media (max-width: 520px) {
  .wca-bubble, .wca-bubble .wca-launcher-logo { width: 64px; height: 64px; }
  .wca-teaser { right: 72px; bottom: 17px; width: max-content; max-width: calc(100vw - 98px); padding: 11px 12px; font-size: 13px; }
}
