#rw-chat-widget {
  --rw-chat-forest: #174f41;
  --rw-chat-ink: #173d33;
  --rw-chat-paper: #fbf8f1;
  --rw-chat-green: #087f4f;
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  color: var(--rw-chat-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  isolation: isolate;
  pointer-events: none;
}
#rw-chat-widget .rw-chat-panel, #rw-chat-widget .rw-chat-actions button { pointer-events: auto; }
#rw-chat-widget,
#rw-chat-widget * { box-sizing: border-box; }
#rw-chat-widget.is-suppressed,
#rw-chat-widget [hidden] { display: none !important; }
#rw-chat-widget button,
#rw-chat-widget a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#rw-chat-widget button { font: inherit; cursor: pointer; }
#rw-chat-widget a { color: inherit; text-decoration: none; }
#rw-chat-widget :where(h2, p, ul) { margin: 0; }
#rw-chat-widget svg { display: block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#rw-chat-widget :where(button, a):focus-visible { outline: 3px solid #b88522; outline-offset: 3px; }
#rw-chat-widget .rw-chat-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#rw-chat-widget .rw-chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid #087f4f;
  border-radius: 999px;
  background: var(--rw-chat-green);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgb(17 55 39 / 20%);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
#rw-chat-widget .rw-chat-toggle:hover { background: #066a42; box-shadow: 0 6px 24px rgb(17 55 39 / 27%); }
#rw-chat-widget .rw-chat-top {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #c9d6cf;
  border-radius: 50%;
  background: var(--rw-chat-paper);
  color: var(--rw-chat-forest);
  box-shadow: 0 3px 12px rgb(17 55 39 / 12%);
}
#rw-chat-widget .rw-chat-top:hover { background: #eef4ed; }
#rw-chat-widget .rw-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(360px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 164px);
  max-height: calc(100dvh - 164px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  min-width: 0;
  border: 1px solid #d4dfd7;
  border-radius: 18px;
  background: var(--rw-chat-paper);
  box-shadow: 0 12px 44px rgb(12 43 31 / 22%);
  overflow: hidden;
}
#rw-chat-widget .rw-chat-panel__header { padding: 14px 16px 16px; background: var(--rw-chat-forest); color: #fffdf7; }
#rw-chat-widget .rw-chat-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#rw-chat-widget #rw-chat-title { min-width: 0; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: inherit; letter-spacing: 0; text-transform: none; }
#rw-chat-widget .rw-chat-panel__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
#rw-chat-widget .rw-chat-panel__close:hover { background: rgb(255 255 255 / 13%); }
#rw-chat-widget .rw-chat-panel__close:focus-visible { outline-color: #f1d9a6; outline-offset: -3px; }
#rw-chat-widget .rw-chat-panel__subtitle { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #edf5ed; }
#rw-chat-widget .rw-chat-panel__content { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; scrollbar-width: thin; scrollbar-color: #a5bcb0 transparent; }
#rw-chat-widget .rw-chat-panel__welcome { font-size: 14px; line-height: 1.6; }
#rw-chat-widget .rw-chat-person { display: flex; align-items: center; gap: 12px; min-height: 96px; margin-top: 16px; padding: 14px; border: 1px solid #c8d9cc; border-radius: 13px; background: #fff; transition: background-color 150ms ease, border-color 150ms ease; }
#rw-chat-widget .rw-chat-person:hover { border-color: #69a47a; background: #f1faf1; }
#rw-chat-widget .rw-chat-person__avatar { display: block; flex: 0 0 64px; width: 64px; max-width: 64px; height: 64px; border: 2px solid #e6efe5; border-radius: 50%; object-fit: cover; object-position: center; }
#rw-chat-widget .rw-chat-person__details { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
#rw-chat-widget .rw-chat-person strong { font-size: 15px; line-height: 1.4; color: var(--rw-chat-forest); overflow-wrap: anywhere; }
#rw-chat-widget .rw-chat-person__action { font-size: 14px; line-height: 1.4; font-weight: 700; color: #126b36; }
#rw-chat-widget .rw-chat-brief { margin-top: 18px; font-size: 13px; line-height: 1.6; }
#rw-chat-widget .rw-chat-brief ul { padding-left: 19px; margin-top: 6px; list-style: disc; }
#rw-chat-widget .rw-chat-brief li { margin: 3px 0; padding: 0; }
#rw-chat-widget .rw-chat-panel__footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 12px; border-top: 1px solid #dce4db; background: #f1f4ec; }
#rw-chat-widget .rw-chat-panel__footer a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 4px; border-radius: 8px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
#rw-chat-widget .rw-chat-panel__footer a:hover { background: #e1ecdf; }
@media (max-height: 420px) {
  #rw-chat-widget .rw-chat-panel__header { padding: 6px 12px 8px; }
  #rw-chat-widget .rw-chat-panel__subtitle { margin-top: 0; font-size: 11px; line-height: 1.35; }
  #rw-chat-widget .rw-chat-panel__content { padding: 12px; }
  #rw-chat-widget .rw-chat-panel__footer { padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #rw-chat-widget *, #rw-chat-widget *::before, #rw-chat-widget *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

#rw-chat-widget .rw-chat-wa-icon { fill: currentColor; stroke: none; }
