/* Site assistant (chat.js). Self-contained so it works on every page, whichever stylesheet the page loads. */
.scw-launch {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #0150FD;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(1, 80, 253, .7);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22, .8, .2, 1), background .2s;
}
.scw-launch:hover { transform: translateY(-3px) scale(1.04); }
.scw-launch.is-open { background: #0A0A0B; }
.scw-launch:focus-visible, .scw-panel :focus-visible { outline: 2px solid #5B8CFF; outline-offset: 3px; }

.scw-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 5.6rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2.4rem));
  height: min(580px, calc(100vh - 7.5rem));
  border: 1px solid #E3E7EF;
  border-radius: 22px;
  background: #fff;
  color: #0A0A0B;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 30px 70px -20px rgba(5, 10, 18, .45);
  overflow: hidden;
  animation: scw-in .3s cubic-bezier(.22, .8, .2, 1);
}
.scw-panel[hidden] { display: none; }

.scw-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: #050A12; color: #fff; }
.scw-head div { flex: 1; display: grid; line-height: 1.3; }
.scw-head b { font-weight: 500; }
.scw-head small { color: #9AA6BD; font-size: .8rem; font-weight: 300; }
.scw-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #0150FD; font-size: .85rem; font-weight: 500; }
.scw-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.scw-x:hover { background: rgba(255, 255, 255, .16); }

.scw-log { flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; overflow-y: auto; overscroll-behavior: contain; }
.scw-msg { max-width: 88%; padding: .65rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: scw-in .25s ease-out; }
.scw-msg.bot { align-self: flex-start; background: #F4F6FA; border-bottom-left-radius: 5px; }
.scw-msg.you { align-self: flex-end; background: #0150FD; color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.scw-msg ul, .scw-msg ol { margin: .4rem 0; padding-left: 1.1rem; }
.scw-msg li { margin: .15rem 0; }
.scw-msg a { color: #0150FD; }

.scw-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .7rem; }
.scw-chips:empty { display: none; }
.scw-chip { padding: .45rem .8rem; border: 1px solid #E3E7EF; border-radius: 999px; background: #fff; color: #0A0A0B; font: inherit; font-size: .84rem; cursor: pointer; transition: border-color .2s, color .2s; }
.scw-chip:hover { border-color: #0150FD; color: #0150FD; }

.scw-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid #E3E7EF; }
.scw-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 .9rem; border: 1px solid #E3E7EF; border-radius: 999px; font: inherit; font-size: 16px; color: #0A0A0B; background: #fff; }
.scw-input:focus { outline: none; border-color: #0150FD; }
.scw-send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #0A0A0B; color: #fff; cursor: pointer; }
.scw-wa { padding: .55rem 1rem .8rem; color: #5B6476; font-size: .8rem; text-align: center; text-decoration: none; }
.scw-wa:hover { color: #00A884; }

@keyframes scw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .scw-panel { right: .6rem; left: .6rem; bottom: 5.2rem; width: auto; height: calc(100vh - 6.8rem); height: calc(100dvh - 6.8rem); }
  .scw-launch { right: 1rem; bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scw-panel, .scw-msg { animation: none; }
}
@media print { .scw-launch, .scw-panel { display: none; } }
