#tm-chatbot-root {
  --tm-chat-teal: #669999;
  --tm-chat-deep: #336666;
  --tm-chat-ink: #172324;
  --tm-chat-muted: #667575;
  --tm-chat-soft: #f3f7f7;
  --tm-chat-line: rgba(51, 102, 102, .16);
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 9999;
  font-family: "Poppins", Arial, sans-serif;
}

.tm-chatbot__toggle {
  position: relative;
  width: 66px;
  height: 66px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #669999 0%, #336666 72%, #244d4d 100%);
  box-shadow: 0 18px 42px rgba(32, 73, 73, .28), inset 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tm-chatbot__toggle:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(32,73,73,.34); }
.tm-chatbot__toggle:focus-visible { outline: 3px solid rgba(102,153,153,.28); outline-offset: 4px; }
.tm-chatbot__toggle svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tm-chatbot__toggle-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(102,153,153,.26);
  border-radius: 27px;
  pointer-events: none;
  animation: tm-chat-pulse 2.6s ease-out infinite;
}

.tm-chatbot__panel {
  width: min(430px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 126px));
  min-height: 540px;
  margin-bottom: 14px;
  border: 1px solid rgba(51,102,102,.16);
  border-radius: 28px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255,255,255,.98);
  box-shadow: 0 26px 70px rgba(21,49,49,.25), 0 4px 16px rgba(21,49,49,.08);
  transform-origin: right bottom;
}
.tm-chatbot__panel.is-open { display: flex; animation: tm-chat-open .24s ease-out both; }

.tm-chatbot__header {
  position: relative;
  min-height: 104px;
  padding: 20px 18px 18px;
  display: grid;
  grid-template-columns: 48px 1fr 38px;
  align-items: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 82% -10%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(135deg, #1b292a 0%, #254343 48%, #336666 100%);
  overflow: hidden;
}
.tm-chatbot__header::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 12px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(102,153,153,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(102,153,153,.05), 0 0 0 38px rgba(102,153,153,.035);
}
.tm-chatbot__brand-mark {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.tm-chatbot__brand-mark svg { width: 27px; height: 27px; fill: none; stroke: #dceeee; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.tm-chatbot__heading { position: relative; z-index: 1; min-width: 0; }
.tm-chatbot__heading strong { display: block; margin-top: 3px; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.tm-chatbot__heading small { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 11.5px; line-height: 1.35; }
.tm-chatbot__status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .14em; color: #b8d7d7; font-weight: 600; }
.tm-chatbot__status i { width: 6px; height: 6px; border-radius: 50%; background: #8bc1a8; box-shadow: 0 0 0 4px rgba(139,193,168,.12); }
.tm-chatbot__close {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tm-chatbot__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.tm-chatbot__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.tm-chatbot__body { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #f7fafa 0%, #f2f6f6 100%); }
.tm-chatbot__messages { min-height: 0; flex: 1 1 auto; padding: 20px 18px 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(51,102,102,.26) transparent; }
.tm-chatbot__message { max-width: 86%; margin-bottom: 12px; padding: 12px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; animation: tm-chat-message .2s ease both; }
.tm-chatbot__message--bot { margin-right: auto; color: #263738; background: #fff; border: 1px solid rgba(51,102,102,.1); border-bottom-left-radius: 7px; box-shadow: 0 7px 20px rgba(38,73,73,.06); }
.tm-chatbot__message--user { margin-left: auto; color: #fff; background: linear-gradient(135deg, #669999, #336666); border-bottom-right-radius: 7px; box-shadow: 0 9px 24px rgba(51,102,102,.19); }
.tm-chatbot__message--typing { opacity: .72; font-style: italic; }

.tm-chatbot__cta-wrap { max-width: 86%; margin: -3px 0 14px; }
.tm-chatbot__cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 12px; color: #fff; background: #336666; text-decoration: none; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 20px rgba(51,102,102,.16); transition: transform .2s ease, background .2s ease; }
.tm-chatbot__cta:hover { color: #fff; background: #285858; transform: translateY(-1px); }
.tm-chatbot__cta::after { content: "→"; font-size: 15px; }

.tm-chatbot__actions-wrap { flex: 0 0 auto; padding: 9px 17px 14px; }
.tm-chatbot__actions-title { margin-bottom: 8px; color: #728181; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.tm-chatbot__actions { display: flex; gap: 7px; overflow-x: auto; padding: 1px 1px 4px; scrollbar-width: none; }
.tm-chatbot__actions::-webkit-scrollbar { display: none; }
.tm-chatbot__chip { flex: 0 0 auto; min-height: 34px; padding: 8px 12px; border: 1px solid rgba(51,102,102,.16); border-radius: 999px; color: #385b5b; background: rgba(255,255,255,.82); font: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.tm-chatbot__chip:hover { border-color: rgba(51,102,102,.34); background: #fff; transform: translateY(-1px); }

.tm-chatbot__form { flex: 0 0 auto; padding: 13px 16px 12px; border-top: 1px solid rgba(51,102,102,.1); background: #fff; }
.tm-chatbot__input-wrap { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border: 1px solid rgba(51,102,102,.2); border-radius: 17px; background: #f9fbfb; transition: border-color .2s ease, box-shadow .2s ease; }
.tm-chatbot__input-wrap:focus-within { border-color: rgba(51,102,102,.48); box-shadow: 0 0 0 4px rgba(102,153,153,.09); }
.tm-chatbot__input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 8px 0; color: #263738; background: transparent; font: inherit; font-size: 13px; }
.tm-chatbot__input-wrap input::placeholder { color: #899696; }
.tm-chatbot__send { height: 40px; padding: 0 13px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: linear-gradient(135deg, #669999, #336666); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.tm-chatbot__send:hover { transform: translateY(-1px); }
.tm-chatbot__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.tm-chatbot__privacy { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #a0aaaa; font-size: 8.5px; letter-spacing: .04em; }
.tm-chatbot__privacy > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: #669999; opacity: .7; }

.tm-chatbot__send:disabled,
.tm-chatbot__input-wrap input:disabled,
.tm-chatbot__chip:disabled { opacity: .55; cursor: not-allowed; transform: none; }

@keyframes tm-chat-open { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tm-chat-message { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tm-chat-pulse { 0%, 40% { opacity: .55; transform: scale(.92); } 78%, 100% { opacity: 0; transform: scale(1.14); } }

@media (max-width: 640px) {
  #tm-chatbot-root { left: 12px; right: 12px; bottom: 78px; }
  .tm-chatbot__panel { width: 100%; height: min(76vh, 680px); min-height: 500px; border-radius: 24px; }
  .tm-chatbot__toggle { width: 60px; height: 60px; border-radius: 20px; }
  .tm-chatbot__header { min-height: 94px; padding: 17px 15px; grid-template-columns: 44px 1fr 36px; }
  .tm-chatbot__brand-mark { width: 44px; height: 44px; border-radius: 14px; }
  .tm-chatbot__messages { padding: 16px 14px 10px; }
  .tm-chatbot__actions-wrap { padding-left: 14px; padding-right: 14px; }
  .tm-chatbot__form { padding: 11px 12px 10px; }
  .tm-chatbot__send span { display: none; }
  .tm-chatbot__send { width: 40px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-chatbot__toggle-ring { animation: none; }
  .tm-chatbot__panel.is-open,
  .tm-chatbot__message { animation: none; }
  .tm-chatbot__toggle,
  .tm-chatbot__cta,
  .tm-chatbot__chip,
  .tm-chatbot__send { transition: none; }
}
