#tsc-ask-thomas-root, #tsc-ask-thomas-root * { box-sizing: border-box; }
.tsc-at-root { position: fixed; right: 22px; bottom: 22px; z-index: 99999; font-family: inherit; color: #292929; }
.tsc-at-launch { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 19px 12px 12px; background: #BD1E2D; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,.18); }
.tsc-at-launch:hover { background: #981724; color: #fff; }
.tsc-at-launch-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 19px; }
.tsc-at-panel { position: absolute; right: 0; bottom: 64px; display: flex; flex-direction: column; width: min(380px, calc(100vw - 28px)); height: min(570px, calc(100dvh - 110px)); min-height: 390px; overflow: hidden; border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; box-shadow: 0 12px 45px rgba(0,0,0,.2); }
.tsc-at-panel[hidden] { display: none !important; }
.tsc-at-header { display: flex; align-items: center; gap: 11px; padding: 15px; background: #292929; color: #fff; }
.tsc-at-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #BD1E2D; color: #fff; font-weight: 800; }
.tsc-at-heading { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.tsc-at-heading strong { font-size: 15px; }
.tsc-at-heading small { color: #ddd; font-size: 11px; }
.tsc-at-close { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.tsc-at-messages { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 15px; background: #fff; }
.tsc-at-message { max-width: 88%; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.tsc-at-assistant { align-self: flex-start; background: #f1f1f1; color: #292929; border-bottom-left-radius: 3px; }
.tsc-at-user { align-self: flex-end; background: #BD1E2D; color: #fff; border-bottom-right-radius: 3px; }
.tsc-at-product { display: flex; align-items: center; gap: 11px; align-self: flex-start; width: 96%; padding: 10px; border: 1px solid #e4e4e4; border-radius: 9px; color: #292929; text-decoration: none; }
.tsc-at-product:hover { border-color: #BD1E2D; color: #292929; }
.tsc-at-product img { display: block; flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; background: #fff; }
.tsc-at-product-details { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.tsc-at-product strong { font-size: 13px; line-height: 1.4; }
.tsc-at-product span { color: #666; font-size: 11px; }
.tsc-at-product em { color: #BD1E2D; font-size: 12px; font-style: normal; font-weight: 700; }
.tsc-at-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 13px 12px; background: #fff; }
.tsc-at-suggestions button { border: 1px solid #dedede; border-radius: 999px; padding: 7px 10px; background: #fff; color: #444; font: inherit; font-size: 11px; cursor: pointer; }
.tsc-at-suggestions button:hover { border-color: #BD1E2D; color: #BD1E2D; }
.tsc-at-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; background: #fff; }
.tsc-at-form input { flex: 1; min-width: 0; min-height: 42px; border: 1px solid #ddd; border-radius: 999px; padding: 0 14px; font: inherit; font-size: 13px; }
.tsc-at-form input:focus { outline: 2px solid rgba(189,30,45,.2); border-color: #BD1E2D; }
.tsc-at-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #BD1E2D; color: #fff; font-size: 18px; cursor: pointer; }
.tsc-at-footnote { padding: 0 12px 10px; color: #777; background: #fff; font-size: 9px; line-height: 1.4; text-align: center; }
@media (max-width: 600px) {
  .tsc-at-root { right: 12px; bottom: 12px; }
  .tsc-at-panel { right: 0; bottom: 60px; width: calc(100vw - 24px); height: min(620px, calc(100dvh - 90px)); }
}
