#cta-web-chat {
  --chat-ink: #183c37;
  --chat-muted: #6d807b;
  --chat-accent: #176b62;
  --chat-line: #e5ece8;
  font-family: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--chat-ink);
}
#cta-web-chat *,
#cta-web-chat *::before,
#cta-web-chat *::after {
  box-sizing: border-box;
}
#cta-web-chat button,
#cta-web-chat textarea {
  font: inherit;
}
#cta-web-chat button {
  cursor: pointer;
}
#cta-web-chat button:disabled {
  cursor: default;
}
#cta-web-chat [hidden] {
  display: none !important;
}
#cta-web-chat button:focus-visible,
#cta-web-chat a:focus-visible {
  outline: 3px solid #65b2a2;
  outline-offset: 4px;
}
#cta-web-chat .chat-brand {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e8f1ec;
  color: var(--chat-accent);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.7px;
}
#cta-web-chat .chat-invitation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--chat-line);
  border-radius: 24px;
}
#cta-web-chat .chat-invitation h2 {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 8px;
  letter-spacing: -0.6px;
}
#cta-web-chat .chat-invitation p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--chat-muted);
}
#cta-web-chat .chat-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--chat-accent);
  color: #fff;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s;
}
#cta-web-chat .chat-open:hover {
  background: #0d514c;
  transform: translateY(-1px);
}
#cta-web-chat .chat-panel {
  position: fixed;
  inset: auto 24px 88px auto;
  margin: 0;
  padding: 0;
  width: min(420px, calc(100vw - 32px));
  height: min(700px, calc(100dvh - 112px));
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  border: 1px solid #ffffffa6;
  border-radius: 24px;
  background: #fff;
  color: var(--chat-ink);
  box-shadow:
    0 28px 90px #102e3329,
    0 4px 16px #102e3314;
  overflow: hidden;
  animation: chat-appear 0.22s ease-out;
}
#cta-web-chat .chat-panel:not([open]) {
  display: none;
}
#cta-web-chat .chat-panel::backdrop {
  background: #16352d18;
}
#cta-web-chat .chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 19px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--chat-line);
  background: #fff;
}
#cta-web-chat .chat-header-copy {
  min-width: 0;
  flex: 1;
}
#cta-web-chat .chat-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}
#cta-web-chat .chat-header p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--chat-muted);
}
#cta-web-chat .chat-close {
  border: 0;
  background: #f2f5f3;
  color: #6c7f77;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 23px;
  display: grid;
  place-items: center;
  line-height: 1;
  flex-shrink: 0;
}
#cta-web-chat .chat-close:hover {
  background: #e5eee8;
}
#cta-web-chat .chat-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #f7f9f7;
}
#cta-web-chat .visitor-messages {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #cbd9d1 transparent;
}
#cta-web-chat .chat-welcome {
  padding: 12px 2px 20px;
}
#cta-web-chat .chat-welcome > .chat-brand {
  width: 54px;
  height: 54px;
  font-size: 20px;
  border-radius: 18px;
  margin-bottom: 22px;
  background: #e2ece5;
}
#cta-web-chat .chat-welcome h3 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.5;
}
#cta-web-chat .chat-welcome p {
  font-size: 14px;
  color: var(--chat-muted);
  line-height: 1.85;
  margin: 0 0 24px;
  max-width: 30ch;
}
#cta-web-chat .chat-topics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
#cta-web-chat .chat-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 11px 14px;
  border: 1px solid #dce7de;
  border-radius: 12px;
  font-size: 12px;
  color: #36574b;
  background: #ffffffd9;
  transition:
    border-color 0.15s,
    background 0.15s;
}
#cta-web-chat .chat-topic:hover {
  background: #edf4ee;
  border-color: #9ebca7;
}
#cta-web-chat .chat-topic span {
  color: #7a9785;
  font-size: 16px;
}
#cta-web-chat .chat-day {
  margin: 0 0 22px;
  text-align: center;
  font-size: 10px;
  color: #91a095;
}
#cta-web-chat article {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#cta-web-chat article.visitor-sent {
  align-items: flex-end;
}
#cta-web-chat .chat-bubble {
  max-width: 90%;
  padding: 12px 15px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 1px 2px #183c3708;
  border: 1px solid #eaf0eb;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#cta-web-chat .visitor-sent .chat-bubble {
  background: #e2eee6;
  border-color: #d9e8df;
  border-radius: 16px 16px 4px 16px;
}
#cta-web-chat .chat-bubble p {
  white-space: pre-wrap;
  margin: 0;
}
#cta-web-chat .chat-bubble a {
  color: #126d65;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#cta-web-chat .chat-bubble img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 9px;
  display: block;
}
#cta-web-chat .chat-message-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  line-height: 1.5;
  color: #8b9b90;
  margin: 7px 3px 0;
}
#cta-web-chat .chat-message-meta small {
  font-size: inherit;
}
#cta-web-chat .chat-message-retry {
  padding: 0;
  color: #a45942;
  background: none;
  border: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#cta-web-chat .chat-new {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #dce6df;
  padding: 8px 14px;
  background: #fff;
  color: var(--chat-accent);
  box-shadow: 0 4px 14px #15352912;
  border-radius: 24px;
  font-size: 12px;
  white-space: nowrap;
}
#cta-web-chat .chat-earlier {
  display: block;
  border: 0;
  margin: 0 auto 20px;
  background: transparent;
  font-size: 11px;
  color: var(--chat-muted);
}
#cta-web-chat .chat-connection {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  font-size: 11px;
  line-height: 1.6;
  background: #fff4eb;
  color: #88563a;
  flex-shrink: 0;
}
#cta-web-chat .chat-reconnect {
  border: 0;
  background: transparent;
  color: #88563a;
  padding: 0;
  white-space: nowrap;
  text-decoration: underline;
}
#cta-web-chat .chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 10px 10px 10px 14px;
  border: 1px solid #dde6df;
  border-radius: 16px;
  background: #fff;
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
#cta-web-chat .chat-composer:focus-within {
  border-color: #81a994;
  box-shadow: 0 0 0 3px #dcebe266;
}
#cta-web-chat textarea {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  max-height: 120px;
  font-size: 16px;
  line-height: 1.65;
  padding: 4px 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--chat-ink);
}
#cta-web-chat textarea::placeholder {
  color: #95a198;
}
#cta-web-chat .chat-send {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: var(--chat-accent);
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
#cta-web-chat .chat-send:disabled {
  background: #e7ede8;
  color: #a8b5ac;
}
#cta-web-chat .chat-send.is-sending {
  animation: chat-pulse 1s ease-in-out infinite alternate;
}
#cta-web-chat .chat-footer {
  flex-shrink: 0;
  min-height: 31px;
  margin: 0;
  padding: 8px 20px 10px;
  font-size: 10px;
  line-height: 1.5;
  color: #8b9c90;
  text-align: center;
}
body.cta-chat-open {
  overflow: hidden;
}
body.cta-chat-open .wa-dock {
  visibility: hidden;
}
.wa-dock .chat-launcher-icon {
  width: 18px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.wa-dock .chat-launcher-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  bottom: -4px;
  width: 4px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  background: inherit;
  transform: skewY(-35deg);
}
.wa-dock .chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  background: #c46e4d;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
@keyframes chat-appear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes chat-pulse {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  #cta-web-chat .chat-invitation {
    grid-template-columns: auto 1fr;
    padding: 24px;
    gap: 16px;
    border-radius: 20px;
  }
  #cta-web-chat .chat-invitation h2 {
    font-size: 21px;
  }
  #cta-web-chat .chat-open {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }
  #cta-web-chat .chat-invitation-copy p {
    font-size: 13px;
  }
  #cta-web-chat .chat-panel {
    inset: var(--chat-top, 0px) 0 auto;
    width: 100%;
    height: var(--chat-height, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: chat-appear 0.18s ease-out;
  }
  #cta-web-chat .chat-header {
    padding: max(16px, env(safe-area-inset-top)) 18px 16px;
  }
  #cta-web-chat .chat-header h2 {
    font-size: 14px;
  }
  #cta-web-chat .chat-header p {
    font-size: 10px;
  }
  #cta-web-chat .visitor-messages {
    padding: 24px 20px;
  }
  #cta-web-chat .chat-welcome {
    padding-top: 26px;
  }
  #cta-web-chat .chat-welcome h3 {
    font-size: 28px;
  }
  #cta-web-chat .chat-topic {
    font-size: 13px;
    padding: 12px 15px;
  }
  #cta-web-chat .chat-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    min-height: calc(34px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  #cta-web-chat *,
  #cta-web-chat *::before,
  #cta-web-chat *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width:600px) {
 #cta-web-chat .chat-close { width:44px; height:44px; }
 #cta-web-chat .chat-send { width:44px; height:44px; }
 #cta-web-chat .chat-topic { min-height:44px; }
}
