/* ID SOLUTECH chat. Scoped to the dialog; no page/theme resets. */
.idst-chatbot {
  --idst-chat-ink: #161918;
  --idst-chat-muted: #6c746f;
  --idst-chat-line: #d9ded7;
  position: fixed;
  inset: auto 104px 28px auto;
  margin: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: min(680px, calc(100vh - 56px));
  height: min(680px, calc(100dvh - 56px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--idst-chat-ink);
  background: #f4f5ef;
  border: 1px solid #d7dbd3;
  border-radius: 22px;
  box-shadow: 0 28px 85px #14201930, 0 4px 16px #1420190d;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  isolation: isolate;
}
.idst-chatbot[open] { display: flex; flex-direction: column; animation: idst-chat-arrive .22s ease-out; }
.idst-chatbot::backdrop { background: #141b160e; }
.idst-chatbot *, .idst-chatbot *::before, .idst-chatbot *::after { box-sizing: border-box; }
.idst-chatbot [hidden] { display: none !important; }
.idst-chatbot button, .idst-chatbot textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.idst-chatbot button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.idst-chatbot button:disabled { cursor: default; }
.idst-chatbot button:focus-visible, .idst-chatbot textarea:focus-visible { outline: 2px solid #5b7969; outline-offset: 4px; }
.idst-chatbot button::before, .idst-chatbot button::after { content: none; }
.idst-chatbot svg { display: block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.idst-chatbot__header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 25px 20px; border-bottom: 1px solid var(--idst-chat-line); background: #f8f9f5; }
.idst-chatbot__brand { min-height: 21px; color: var(--idst-chat-ink); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: 3.5px; }
.idst-chatbot__brand img { display: block; width: 165px; height: 24px; max-width: 100%; object-fit: contain; object-position: left center; }
.idst-chatbot__icon-button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 1px solid #dde1da; border-radius: 50%; background: transparent; color: #3e4740; transition: background .15s; }
.idst-chatbot__icon-button:hover { background: #e7ebe3; color: #111; }
.idst-chatbot__conversation { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdc5b9 transparent; padding: 29px 24px 23px; }
.idst-chatbot__eyebrow { display: block; margin: 0 0 19px; color: #74806f; font-size: 9px; font-weight: 600; line-height: 1.5; letter-spacing: 1.9px; }
.idst-chatbot__welcome h2 { margin: 0; color: var(--idst-chat-ink); font-size: 32px; font-weight: 500; line-height: 1.38; letter-spacing: -1.4px; }
.idst-chatbot__welcome p { margin: 16px 0 25px; color: var(--idst-chat-muted); font-size: 13px; line-height: 1.8; letter-spacing: -.1px; }
.idst-chatbot__suggestions { display: grid; gap: 8px; margin-top: 20px; }
.idst-chatbot__suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 45px; padding: 11px 14px; color: #354037; background: #fbfcf9; border: 1px solid #d8ded3; border-radius: 9px; font-size: 12px; font-weight: 400; line-height: 1.6; text-align: left; box-shadow: none; transition: border-color .15s, background .15s; }
.idst-chatbot__suggestions button:hover { background: #e9ede3; border-color: #aebba7; color: #1b271e; }
.idst-chatbot__suggestions svg { flex: 0 0 15px; width: 15px; height: 15px; }
.idst-chatbot__messages { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
.idst-chatbot__message { max-width: 100%; min-width: 0; }
.idst-chatbot__message-label { display: block; margin-bottom: 7px; color: #758072; font-size: 9px; font-weight: 500; line-height: 1.5; letter-spacing: 1.3px; }
.idst-chatbot__message-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-size: 13px; line-height: 1.85; letter-spacing: -.1px; }
.idst-chatbot__message--assistant .idst-chatbot__message-text { padding: 15px 16px; color: #27352c; background: #fff; border: 1px solid #e3e8dd; border-radius: 3px 15px 15px 15px; }
.idst-chatbot__message--assistant .idst-chatbot__message-text { white-space: normal; }
.idst-chatbot__message-text p { margin: 0 0 12px; color: inherit; font: inherit; line-height: inherit; white-space: pre-wrap; }
.idst-chatbot__message-text p:last-child { margin-bottom: 0; }
.idst-chatbot__message-text strong { color: #1d2c21; font-weight: 600; }
.idst-chatbot__message-text ul, .idst-chatbot__message-text ol { margin: 10px 0 14px; padding: 0 0 0 19px; color: inherit; font: inherit; list-style-position: outside; }
.idst-chatbot__message-text ul { list-style-type: disc; }
.idst-chatbot__message-text ol { list-style-type: decimal; }
.idst-chatbot__message-text ul:last-child, .idst-chatbot__message-text ol:last-child { margin-bottom: 0; }
.idst-chatbot__message-text li { margin: 0 0 7px; padding: 0 0 0 2px; font: inherit; line-height: inherit; white-space: pre-wrap; }
.idst-chatbot__message-text li:last-child { margin-bottom: 0; }
.idst-chatbot__message-text li::marker { color: #809279; }
.idst-chatbot__message-text a { color: #3f644b; text-decoration: underline; text-decoration-color: #91a78b; text-underline-offset: 3px; overflow-wrap: anywhere; }
.idst-chatbot__message-text a:hover { color: #172d1d; text-decoration-color: currentColor; }
.idst-chatbot__message-text a:focus-visible { outline: 2px solid #5b7969; outline-offset: 3px; }
.idst-chatbot__message--user { align-self: flex-end; max-width: 91%; }
.idst-chatbot__message--user .idst-chatbot__message-label { text-align: right; }
.idst-chatbot__message--user .idst-chatbot__message-text { padding: 12px 16px; color: #f8f9f5; background: #222b25; border-radius: 15px 3px 15px 15px; }
.idst-chatbot__status { margin: 18px 0 0; color: #6c7769; font-size: 12px; line-height: 1.75; }
.idst-chatbot__thinking { display: flex; align-items: center; gap: 10px; margin: 19px 0 0; color: #687363; font-size: 12px; }
.idst-chatbot__thinking-dots { display: inline-flex; align-items: center; gap: 3px; }
.idst-chatbot__thinking-dots span { width: 4px; height: 4px; border-radius: 50%; background: #87947e; animation: idst-chat-pulse 1.2s ease-in-out infinite; }
.idst-chatbot__thinking-dots span:nth-child(2) { animation-delay: .15s; }
.idst-chatbot__thinking-dots span:nth-child(3) { animation-delay: .3s; }
.idst-chatbot__error { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 15px 0 0; padding: 12px; color: #765644; border: 1px solid #e4d8c8; border-radius: 9px; background: #f9f4eb; font-size: 12px; line-height: 1.75; }
.idst-chatbot__retry { flex: 0 0 auto; padding: 0; color: #604b39; border: 0; border-bottom: 1px solid #ad9d89; border-radius: 0; background: transparent; font-size: 12px; line-height: 1.75; box-shadow: none; }
.idst-chatbot__footer { flex: 0 0 auto; margin: 0; padding: 16px 18px 15px; border-top: 1px solid var(--idst-chat-line); background: #f8f9f5; }
.idst-chatbot__form { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding: 8px 8px 8px 14px; background: #fff; border: 1px solid #d3dacf; border-radius: 13px; transition: border-color .15s; }
.idst-chatbot__form:focus-within { border-color: #7d8c73; }
.idst-chatbot__form textarea { display: block; flex: 1 1 auto; min-width: 0; width: 100%; min-height: 36px; height: 36px; max-height: 112px; resize: none; margin: 0; padding: 7px 0 5px; overflow-y: auto; border: 0; outline: 0 !important; border-radius: 0; background: transparent; color: #27342b; box-shadow: none; font-size: 13px; line-height: 24px; letter-spacing: -.15px; }
.idst-chatbot__form textarea::placeholder { color: #929b8e; opacity: 1; }
.idst-chatbot__form textarea:disabled { opacity: .6; }
.idst-chatbot__form button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: #202a23; color: #fff; box-shadow: none; transition: background .15s; }
.idst-chatbot__form button:hover:not(:disabled) { background: #455a46; }
.idst-chatbot__form button:disabled { color: #929d8b; background: #e7ece2; }
.idst-chatbot__note { margin: 10px 0 0; color: #8a9284; font-size: 9px; line-height: 1.6; letter-spacing: -.12px; text-align: center; }
.idst-chatbot__sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes idst-chat-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes idst-chat-pulse { 0%, 70%, 100% { opacity: .35; } 35% { opacity: 1; } }
@media (max-width: 600px) {
  .idst-chatbot { inset: auto 12px 12px 12px; width: auto; max-width: none; height: min(680px, calc(100vh - 24px)); height: min(680px, calc(100dvh - 24px)); border-radius: 18px; }
  .idst-chatbot__header { padding: 20px; }
  .idst-chatbot__conversation { padding: 25px 20px 20px; }
  .idst-chatbot__welcome h2 { font-size: 30px; }
  .idst-chatbot__form textarea { font-size: 16px; }
  .idst-chatbot__footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 600px) {
  .idst-chatbot { bottom: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); }
  .idst-chatbot__header { padding-top: 15px; padding-bottom: 13px; }
  .idst-chatbot__welcome h2 { font-size: 26px; }
  .idst-chatbot__conversation { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .idst-chatbot[open], .idst-chatbot__thinking-dots span { animation: none; }
  .idst-chatbot button, .idst-chatbot__form { transition: none; }
}
