.site-chat-widget{
  --site-chat-text:#f5f7ff;
  --site-chat-muted:rgba(226,232,240,0.72);
  --site-chat-muted-strong:rgba(226,232,240,0.82);
  --site-chat-accent:#7ed9ff;
  --site-chat-gold:#d6bf74;
  font:500 13px/1.4 "Manrope", sans-serif;
  position:fixed;
  right:var(--site-chat-right, 16px);
  bottom:var(--site-chat-bottom, 16px);
  z-index:22000;
  width:min(360px, calc(100vw - 20px));
  display:flex;
  flex-direction:column-reverse;
  align-items:flex-end;
  gap:8px;
  pointer-events:none;
}

.site-chat-widget,
.site-chat-widget *,
.site-chat-widget *::before,
.site-chat-widget *::after{
  box-sizing:border-box;
}

.site-chat-widget button,
.site-chat-widget input,
.site-chat-widget textarea{
  margin:0;
  font:inherit;
}

.site-chat-widget button{
  appearance:none;
}

.site-chat-widget .is-hidden{
  display:none !important;
}

.site-chat-widget.is-side-left{
  left:var(--site-chat-left, 16px);
  right:auto;
  align-items:flex-start;
}

.site-chat-widget.is-admin-mode{
  width:min(440px, calc(100vw - 24px));
}

.site-chat-widget.is-admin-thread-open{
  width:min(400px, calc(100vw - 18px));
}

.site-chat-widget > *{
  pointer-events:auto;
}

.site-chat-toast-stack{
  width:100%;
  display:grid;
  gap:7px;
  justify-items:end;
  pointer-events:none;
}

.site-chat-toast{
  max-width:min(320px, 100%);
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 11px;
  border-radius:14px;
  border:1px solid rgba(126,217,255,0.20);
  background:linear-gradient(180deg, rgba(17,24,35,0.98), rgba(8,13,20,0.98));
  color:var(--site-chat-text);
  box-shadow:0 18px 42px -26px rgba(0,0,0,0.82);
  font:800 11px/1.25 "Manrope", sans-serif;
  transform-origin:100% 100%;
  animation:siteChatToastIn 0.22s ease-out both;
}

.site-chat-toast.is-leaving{
  animation:siteChatToastOut 0.22s ease-in both;
}

.site-chat-toast-dot{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:999px;
  background:#7ed9ff;
  box-shadow:0 0 0 4px rgba(126,217,255,0.12);
}

.site-chat-toast.is-success{
  border-color:rgba(110,231,183,0.28);
}

.site-chat-toast.is-success .site-chat-toast-dot{
  background:#6ee7b7;
  box-shadow:0 0 0 4px rgba(110,231,183,0.14);
}

.site-chat-toast.is-warning{
  border-color:rgba(253,186,116,0.32);
}

.site-chat-toast.is-warning .site-chat-toast-dot{
  background:#fdba74;
  box-shadow:0 0 0 4px rgba(253,186,116,0.14);
}

.site-chat-toast.is-error{
  border-color:rgba(252,165,165,0.34);
}

.site-chat-toast.is-error .site-chat-toast-dot{
  background:#fca5a5;
  box-shadow:0 0 0 4px rgba(252,165,165,0.14);
}

@keyframes siteChatToastIn{
  from{
    opacity:0;
    transform:translateY(8px) scale(0.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes siteChatToastOut{
  from{
    opacity:1;
    transform:translateY(0) scale(1);
  }
  to{
    opacity:0;
    transform:translateY(6px) scale(0.98);
  }
}

.site-chat-widget.is-toggle-hidden .site-chat-toggle{
  display:none !important;
}

.chat-avatar{
  position:relative;
  width:40px;
  height:40px;
  border-radius:50%;
  flex-shrink:0;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(126,217,255,0.22), rgba(214,191,116,0.18));
  color:var(--site-chat-text);
  font-weight:800;
  letter-spacing:0.04em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08);
}

.chat-avatar::before{
  content:attr(data-fallback);
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  font:800 12px/1 "Manrope", sans-serif;
}

.chat-avatar.is-fallback::before{
  display:inline-flex;
}

.chat-avatar.is-fallback img{
  opacity:0;
}

.chat-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.chat-avatar--provider-frame{
  --chat-avatar-provider:#7b2cff;
  --chat-avatar-provider-soft:rgba(123,44,255,0.16);
  --chat-avatar-frame:url("assets/Twitch.webp");
  overflow:visible;
  background:transparent;
  box-shadow:none;
  isolation:isolate;
}

.chat-avatar--provider-frame[data-provider="kick"]{
  --chat-avatar-provider:#53fc18;
  --chat-avatar-provider-soft:rgba(83,252,24,0.14);
  --chat-avatar-frame:url("assets/Kick.webp");
}

.chat-avatar--provider-frame img{
  position:absolute;
  left:3px;
  top:3px;
  z-index:1;
  width:calc(100% - 6px);
  height:calc(100% - 6px);
  border-radius:50%;
  object-fit:cover;
}

.chat-avatar--provider-frame::before{
  inset:3px;
  z-index:1;
  border-radius:50%;
  background:linear-gradient(135deg, var(--chat-avatar-provider-soft), rgba(255,255,255,0.05));
}

.chat-avatar--provider-frame::after{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:3;
  background:var(--chat-avatar-frame) center / contain no-repeat;
  filter:drop-shadow(0 0 7px color-mix(in srgb, var(--chat-avatar-provider) 72%, transparent));
  pointer-events:none;
}

.chat-avatar--provider-frame .chat-avatar-dot{
  z-index:4;
}

.chat-avatar--tiny{
  width:34px;
  height:34px;
}

.chat-avatar--panel{
  width:44px;
  height:44px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.1), 0 8px 18px rgba(0,0,0,0.2);
}

.chat-avatar-dot{
  position:absolute;
  right:1px;
  bottom:1px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid rgba(10,15,24,0.96);
}

.site-chat-toggle{
  min-width:204px;
  border:1px solid rgba(214,191,116,0.28);
  background:linear-gradient(145deg, rgba(18,24,36,0.98), rgba(11,15,23,0.98));
  color:var(--site-chat-text);
  border-radius:16px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  box-shadow:0 20px 38px -24px rgba(0,0,0,0.74);
  cursor:pointer;
  transition:transform 0.18s ease, border-color 0.18s ease;
}

.site-chat-toggle:hover,
.site-chat-toggle:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(126,217,255,0.34);
  outline:none;
}

.site-chat-toggle-copy{
  display:grid;
  gap:2px;
  text-align:left;
  min-width:0;
  flex:1;
}

.site-chat-toggle-copy strong{
  font:700 14px/1.1 "Space Grotesk", sans-serif;
}

.site-chat-toggle-copy span{
  color:var(--site-chat-muted);
  font:500 11px/1.25 "Manrope", sans-serif;
}

.site-chat-toggle-badge{
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(126,217,255,0.18);
  color:var(--site-chat-accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  font:700 11px/1 "Manrope", sans-serif;
}

.site-chat-toggle-badge.is-hidden{
  display:none;
}

.site-chat-panel{
  width:100%;
  max-height:min(700px, calc(100dvh - 24px));
  display:flex;
  flex-direction:column;
  min-height:0;
  gap:8px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(360px circle at 100% 0%, rgba(214,191,116,0.14), transparent 56%),
    linear-gradient(180deg, rgba(18,24,36,0.985), rgba(8,12,19,0.985));
  box-shadow:0 28px 54px -30px rgba(0,0,0,0.74);
  overflow:hidden;
  color:var(--site-chat-text);
}

.site-chat-panel[hidden],
.site-chat-panel.is-hidden{
  display:none !important;
}

.site-chat-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  flex:0 0 auto;
}

.site-chat-panel-head-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.site-chat-panel-head-main > div:last-child{
  min-width:0;
}

.site-chat-panel-actions{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.site-chat-panel-head h3{
  margin:2px 0 0;
  font:700 17px/1.15 "Space Grotesk", sans-serif;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.site-chat-kicker{
  margin:0;
  color:var(--site-chat-accent);
  text-transform:uppercase;
  letter-spacing:0.14em;
  font:700 9px/1.2 "Manrope", sans-serif;
}

.site-chat-header-meta,
.site-chat-status,
.chat-attachment-name{
  color:var(--site-chat-muted);
  font:500 11px/1.35 "Manrope", sans-serif;
}

.chat-filter-row{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}

.chat-filter-chip{
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
  color:var(--site-chat-muted);
  border-radius:999px;
  min-height:28px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font:700 11px/1 "Manrope", sans-serif;
  cursor:pointer;
  transition:border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.chat-filter-chip:hover,
.chat-filter-chip:focus-visible{
  border-color:rgba(126,217,255,0.28);
  color:var(--site-chat-text);
  outline:none;
}

.chat-filter-chip.is-active{
  border-color:rgba(214,191,116,0.28);
  background:rgba(214,191,116,0.12);
  color:#fef3c7;
}

.chat-filter-chip-badge{
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(126,217,255,0.18);
  color:var(--site-chat-accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font:800 10px/1 "Manrope", sans-serif;
}

.chat-filter-chip-badge.is-hidden{
  display:none;
}

.chat-search-field{
  display:grid;
  gap:5px;
  color:var(--site-chat-muted);
  font:700 10px/1.2 "Manrope", sans-serif;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.chat-search-field input{
  width:100%;
  min-height:36px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  padding:0 12px;
  background:linear-gradient(180deg, rgba(18,24,32,0.96), rgba(11,16,24,0.96));
  color:var(--site-chat-text);
  font:700 12px/1 "Manrope", sans-serif;
  outline:none;
}

.chat-search-field input::placeholder{
  color:rgba(148,163,184,0.74);
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
}

.chat-search-field input:focus{
  border-color:rgba(214,191,116,0.42);
  box-shadow:0 0 0 2px rgba(214,191,116,0.10), 0 10px 26px rgba(0,0,0,0.18);
}

.site-chat-search-field{
  margin-top:-2px;
}

.site-chat-header-meta{
  margin:2px 0 0;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.chat-realtime-pill{
  width:max-content;
  max-width:100%;
  min-height:22px;
  margin-top:6px;
  padding:3px 8px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.20);
  background:rgba(255,255,255,0.045);
  color:rgba(226,232,240,0.72);
  font:800 10px/1 "Manrope", sans-serif;
  letter-spacing:0.02em;
  white-space:nowrap;
}

.chat-realtime-pill.is-hidden{
  display:none !important;
}

.chat-realtime-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:rgba(148,163,184,0.82);
  box-shadow:0 0 0 3px rgba(148,163,184,0.10);
}

.chat-realtime-pill.is-live{
  border-color:rgba(110,231,183,0.28);
  background:rgba(16,185,129,0.10);
  color:#bbf7d0;
}

.chat-realtime-pill.is-live .chat-realtime-dot{
  background:#6ee7b7;
  box-shadow:0 0 0 3px rgba(110,231,183,0.14), 0 0 16px rgba(110,231,183,0.34);
}

.chat-realtime-pill.is-warning{
  border-color:rgba(253,186,116,0.30);
  background:rgba(251,146,60,0.10);
  color:#fed7aa;
}

.chat-realtime-pill.is-warning .chat-realtime-dot{
  background:#fdba74;
  box-shadow:0 0 0 3px rgba(253,186,116,0.14);
  animation:chatRealtimePulse 1s ease-in-out infinite;
}

.chat-admin-head-actions .chat-realtime-pill{
  margin-top:0;
}

@keyframes chatRealtimePulse{
  0%, 100%{
    opacity:0.55;
    transform:scale(0.92);
  }
  50%{
    opacity:1;
    transform:scale(1.08);
  }
}

.site-chat-close{
  min-height:34px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  color:var(--site-chat-text);
  padding:6px 10px;
  cursor:pointer;
  font:700 11px/1 "Manrope", sans-serif;
}

.site-chat-close[disabled]{
  opacity:0.55;
  cursor:wait;
}

.site-chat-close.is-muted{
  color:rgba(226,232,240,0.62);
}

.site-chat-status{
  margin:0;
  min-height:14px;
}

.site-chat-status.is-error{
  color:#fecaca;
}

.site-chat-login-prompt,
.site-chat-thread-wrap{
  min-height:0;
}

.site-chat-login-prompt[hidden],
.site-chat-login-prompt.is-hidden,
.site-chat-thread-wrap[hidden],
.site-chat-thread-wrap.is-hidden{
  display:none !important;
}

.site-chat-thread-wrap{
  display:flex;
  flex-direction:column;
  position:relative;
  gap:8px;
  flex:1 1 auto;
}

.site-chat-thread-wrap.is-hidden{
  display:none;
}

.site-chat-login-prompt{
  display:flex;
  align-items:center;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.03);
  flex:1 1 auto;
}

.site-chat-login-prompt p{
  margin:0;
  color:var(--site-chat-muted);
  font:500 12px/1.45 "Manrope", sans-serif;
}

.site-chat-messages{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  min-height:0;
  padding:10px 8px;
  padding-right:4px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,0.024) 0, rgba(255,255,255,0.024) 1px, transparent 1px),
    radial-gradient(circle at 0 0, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8,14,20,0.98), rgba(8,13,18,0.98));
  background-size:18px 18px, 18px 18px, auto;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);
  overscroll-behavior:contain;
}

.site-chat-new-messages{
  position:absolute;
  left:50%;
  bottom:118px;
  transform:translateX(-50%);
  z-index:3;
  min-height:28px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid rgba(126,217,255,0.42);
  background:rgba(8,16,24,0.94);
  color:var(--site-chat-accent);
  box-shadow:0 12px 28px rgba(0,0,0,0.28);
  font:800 11px/1 "Manrope", sans-serif;
  cursor:pointer;
}

.site-chat-new-messages:hover,
.site-chat-new-messages:focus-visible{
  outline:none;
  border-color:rgba(126,217,255,0.74);
}

.site-chat-empty{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--site-chat-muted);
  background:rgba(17,24,33,0.92);
  font:500 12px/1.35 "Manrope", sans-serif;
  max-width:min(78%, 320px);
}

.chat-admin-empty{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--site-chat-muted);
  background:rgba(17,24,33,0.92);
  font:500 12px/1.35 "Manrope", sans-serif;
}

.chat-admin-thread-item{
  width:100%;
  border:1px solid transparent;
  background:rgba(255,255,255,0.028);
  color:var(--site-chat-text);
  border-radius:12px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:9px;
  text-align:left;
  cursor:pointer;
  transition:background 0.16s ease, border-color 0.16s ease;
}

.chat-admin-thread-item:hover,
.chat-admin-thread-item:focus-visible{
  border-color:rgba(126,217,255,0.26);
  background:rgba(255,255,255,0.04);
  outline:none;
}

.chat-admin-thread-item.is-active{
  border-color:rgba(214,191,116,0.34);
  background:linear-gradient(145deg, rgba(214,191,116,0.09), rgba(255,255,255,0.035));
}

.chat-admin-thread-item.is-unread{
  background:linear-gradient(145deg, rgba(8,34,41,0.78), rgba(255,255,255,0.035));
}

.chat-avatar--thread{
  position:relative;
  width:40px;
  height:40px;
}

.chat-admin-thread-item.is-online .chat-avatar--thread::after{
  content:"";
  position:absolute;
  right:-1px;
  bottom:-1px;
  width:10px;
  height:10px;
  border-radius:999px;
  border:2px solid rgba(10,14,22,0.96);
  background:#1fd665;
  box-shadow:0 0 0 3px rgba(31,214,101,0.12);
}

.chat-admin-thread-body{
  display:grid;
  gap:4px;
  min-width:0;
}

.chat-admin-thread-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.chat-admin-thread-title-row{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.chat-admin-thread-title{
  min-width:0;
  font:700 13px/1.2 "Manrope", sans-serif;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chat-admin-thread-handle{
  min-width:0;
  color:rgba(255,255,255,0.44);
  font:500 11px/1.2 "Manrope", sans-serif;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chat-admin-thread-tag{
  display:inline-flex;
  align-items:center;
  min-height:16px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(34,197,94,0.12);
  color:#9ff2bf;
  font:800 9px/1 "Manrope", sans-serif;
  letter-spacing:0.08em;
  text-transform:uppercase;
  flex-shrink:0;
}

.chat-admin-thread-tag.is-grace{
  background:rgba(214,191,116,0.12);
  color:#fde68a;
}

.chat-thread-status-chip{
  display:inline-flex;
  align-items:center;
  min-height:16px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(148,163,184,0.12);
  color:#cbd5e1;
  font:800 9px/1 "Manrope", sans-serif;
  letter-spacing:0.06em;
  text-transform:uppercase;
  flex-shrink:0;
}

.chat-thread-status-chip.is-important,
.chat-thread-status-btn.is-important.is-active{
  background:rgba(248,113,113,0.16);
  border-color:rgba(248,113,113,0.34);
  color:#fecaca;
}

.chat-thread-status-chip.is-screenshot,
.chat-thread-status-btn.is-screenshot.is-active{
  background:rgba(126,217,255,0.14);
  border-color:rgba(126,217,255,0.34);
  color:#bae6fd;
}

.chat-thread-status-chip.is-tutorial,
.chat-thread-status-btn.is-tutorial.is-active{
  background:rgba(214,191,116,0.14);
  border-color:rgba(214,191,116,0.34);
  color:#fef3c7;
}

.chat-thread-status-chip.is-pending,
.chat-thread-status-btn.is-pending.is-active{
  background:rgba(251,146,60,0.14);
  border-color:rgba(251,146,60,0.34);
  color:#fed7aa;
}

.chat-thread-status-chip.is-answered,
.chat-thread-status-btn.is-answered.is-active{
  background:rgba(34,197,94,0.14);
  border-color:rgba(34,197,94,0.34);
  color:#bbf7d0;
}

.chat-thread-status-controls{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}

.chat-thread-status-controls.is-hidden{
  display:none !important;
}

.chat-thread-status-label{
  color:var(--site-chat-muted);
  font:800 9px/1 "Manrope", sans-serif;
  letter-spacing:0.10em;
  text-transform:uppercase;
}

.chat-thread-status-btn{
  min-height:24px;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:999px;
  padding:0 8px;
  background:rgba(255,255,255,0.035);
  color:var(--site-chat-muted);
  font:800 10px/1 "Manrope", sans-serif;
  cursor:pointer;
  transition:background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.chat-thread-status-btn:hover,
.chat-thread-status-btn:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(214,191,116,0.28);
  color:var(--site-chat-text);
  outline:none;
}

.chat-thread-status-btn.is-active{
  background:rgba(214,191,116,0.12);
  border-color:rgba(214,191,116,0.30);
  color:#fef3c7;
}

.chat-admin-thread-time{
  color:rgba(255,255,255,0.48);
  font:500 10px/1.2 "Manrope", sans-serif;
  white-space:nowrap;
  padding-top:1px;
  min-width:52px;
  text-align:right;
}

.chat-admin-thread-time.is-attention{
  color:#22c55e;
  font-weight:800;
}

.chat-admin-thread-preview-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.chat-admin-thread-preview{
  min-width:0;
  flex:1 1 auto;
  color:var(--site-chat-muted);
  font:500 11px/1.3 "Manrope", sans-serif;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chat-admin-thread-meta-inline{
  flex-shrink:0;
  color:rgba(255,255,255,0.42);
  font:500 10px/1 "Manrope", sans-serif;
  white-space:nowrap;
}

.chat-admin-thread-unread{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#1fd665;
  color:#052012;
  font:800 10px/1 "Manrope", sans-serif;
  flex-shrink:0;
}

.site-chat-compose{
  flex:0 0 auto;
  display:grid;
  gap:6px;
  padding:8px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(12,18,26,0.98), rgba(9,13,20,0.98));
}

.site-chat-compose.is-disabled{
  opacity:0.64;
}

.chat-compose-field{
  display:grid;
  gap:4px;
  color:var(--site-chat-muted);
  font:500 11px/1.35 "Manrope", sans-serif;
}

.chat-compose-field textarea{
  width:100%;
  min-height:42px;
  max-height:132px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(18,24,32,0.98);
  color:var(--site-chat-text);
  resize:none;
  font:500 13px/1.35 "Manrope", sans-serif;
  overflow-y:auto;
}

.chat-compose-field textarea:focus-visible{
  border-color:rgba(126,217,255,0.58);
  box-shadow:0 0 0 2px rgba(126,217,255,0.12);
  outline:none;
}

.chat-quick-replies{
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  padding:1px 1px 3px;
  scrollbar-width:none;
}

.chat-quick-replies::-webkit-scrollbar{
  display:none;
}

.chat-quick-reply{
  flex:0 0 auto;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(214,191,116,0.22);
  background:rgba(214,191,116,0.08);
  color:#fef3c7;
  font:800 11px/1 "Manrope", sans-serif;
  cursor:pointer;
  transition:background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.chat-quick-reply:hover,
.chat-quick-reply:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(214,191,116,0.42);
  background:rgba(214,191,116,0.15);
  outline:none;
}

.chat-quick-reply--edit{
  border-color:rgba(126,217,255,0.22);
  background:rgba(126,217,255,0.08);
  color:#bae6fd;
}

.chat-quick-reply--edit.is-active{
  border-color:rgba(126,217,255,0.42);
  background:rgba(126,217,255,0.16);
}

.chat-quick-reply-editor{
  display:grid;
  gap:8px;
  padding:9px;
  border:1px solid rgba(126,217,255,0.14);
  border-radius:12px;
  background:rgba(8,13,20,0.84);
}

.chat-quick-reply-editor.is-hidden{
  display:none !important;
}

.chat-quick-reply-editor-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  color:var(--site-chat-text);
  font:800 11px/1.2 "Manrope", sans-serif;
}

.chat-quick-reply-editor-head span{
  color:var(--site-chat-muted);
  font:600 10px/1.2 "Manrope", sans-serif;
}

.chat-quick-reply-editor-rows{
  display:grid;
  gap:6px;
  max-height:210px;
  overflow:auto;
  padding-right:2px;
}

.chat-quick-reply-editor-row{
  display:grid;
  grid-template-columns:minmax(74px, 0.38fr) minmax(0, 1fr);
  gap:6px;
}

.chat-quick-reply-editor-row input,
.chat-quick-reply-editor-row textarea{
  width:100%;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  background:rgba(18,24,32,0.94);
  color:var(--site-chat-text);
  font:700 11px/1.3 "Manrope", sans-serif;
  outline:none;
}

.chat-quick-reply-editor-row input{
  min-height:32px;
  padding:0 9px;
}

.chat-quick-reply-editor-row textarea{
  min-height:42px;
  padding:8px 9px;
  resize:vertical;
}

.chat-quick-reply-editor-row input:focus,
.chat-quick-reply-editor-row textarea:focus{
  border-color:rgba(126,217,255,0.34);
  box-shadow:0 0 0 2px rgba(126,217,255,0.10);
}

.chat-quick-reply-editor-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}

.chat-user-profile-card{
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid rgba(214,191,116,0.12);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(17,24,39,0.82), rgba(8,13,20,0.82));
}

.chat-user-profile-card.is-hidden{
  display:none !important;
}

.chat-user-profile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:var(--site-chat-text);
  font:900 11px/1.2 "Manrope", sans-serif;
}

.chat-user-profile-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px;
}

.chat-user-profile-item{
  min-width:0;
  padding:7px 8px;
  border-radius:10px;
  background:rgba(255,255,255,0.035);
  border:1px solid rgba(255,255,255,0.06);
}

.chat-user-profile-item span{
  display:block;
  color:var(--site-chat-muted);
  font:800 9px/1.15 "Manrope", sans-serif;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.chat-user-profile-item strong{
  display:block;
  margin-top:3px;
  color:var(--site-chat-text);
  font:800 11px/1.25 "Manrope", sans-serif;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chat-user-profile-item.is-accent{
  border-color:rgba(214,191,116,0.18);
  background:rgba(214,191,116,0.07);
}

.site-chat-widget.is-admin-thread-open .site-chat-panel{
  gap:6px;
  padding:8px;
  max-height:min(720px, calc(100dvh - 12px));
}

.site-chat-widget.is-admin-thread-open .site-chat-panel-head{
  position:relative;
  align-items:flex-start;
  gap:6px;
  padding-right:96px;
  padding-bottom:6px;
}

.site-chat-widget.is-admin-thread-open .site-chat-panel-head-main{
  gap:8px;
  width:100%;
}

.site-chat-widget.is-admin-thread-open .site-chat-panel-avatar{
  width:38px;
  height:38px;
}

.site-chat-widget.is-admin-thread-open .site-chat-kicker{
  font-size:8px;
  letter-spacing:0.10em;
}

.site-chat-widget.is-admin-thread-open .site-chat-panel-head h3{
  font-size:15px;
  margin-top:1px;
}

.site-chat-widget.is-admin-thread-open .site-chat-header-meta{
  -webkit-line-clamp:1;
  font-size:10px;
}

.site-chat-widget.is-admin-thread-open .chat-realtime-pill{
  min-height:18px;
  margin-top:4px;
  padding:2px 7px;
  font-size:9px;
}

.site-chat-widget.is-admin-thread-open .chat-realtime-dot{
  width:6px;
  height:6px;
}

.site-chat-widget.is-admin-thread-open .site-chat-panel-actions{
  position:absolute;
  top:0;
  right:0;
  gap:4px;
  max-width:96px;
}

.site-chat-widget.is-admin-thread-open .site-chat-close{
  min-height:28px;
  padding:5px 8px;
  font-size:10px;
}

.site-chat-widget.is-admin-thread-open #siteChatArchiveBtn,
.site-chat-widget.is-admin-thread-open #siteChatSoundBtn{
  display:none !important;
}

.site-chat-widget.is-admin-thread-open .site-chat-status{
  display:none;
}

.site-chat-widget.is-admin-thread-open .site-chat-thread-wrap{
  gap:6px;
}

.site-chat-widget.is-admin-thread-open .site-chat-status-controls,
.site-chat-widget.is-admin-thread-open .site-chat-profile-card{
  display:none !important;
}

.site-chat-widget.is-admin-thread-open .site-chat-messages{
  min-height:270px;
  padding:8px 6px;
  border-radius:12px;
}

.site-chat-widget.is-admin-thread-open .chat-message-bubble{
  max-width:min(84%, 330px);
}

.site-chat-widget.is-admin-thread-open .chat-message-action.is-wide{
  min-height:17px;
  padding:1px 5px;
  font-size:8px;
}

.site-chat-widget.is-admin-thread-open .site-chat-compose{
  gap:5px;
  padding:7px;
  border-radius:12px;
}

.site-chat-widget.is-admin-thread-open .chat-compose-field{
  gap:3px;
}

.site-chat-widget.is-admin-thread-open .chat-compose-field textarea{
  min-height:38px;
  max-height:86px;
  padding:8px 10px;
  font-size:12px;
}

.site-chat-widget.is-admin-thread-open .chat-quick-replies{
  gap:5px;
  padding-bottom:1px;
}

.site-chat-widget.is-admin-thread-open .chat-quick-reply{
  min-height:24px;
  padding:0 8px;
  font-size:10px;
}

.site-chat-widget.is-admin-thread-open .chat-compose-tools{
  gap:6px;
  align-items:center;
}

.site-chat-widget.is-admin-thread-open .chat-attachment-row{
  gap:5px;
}

.site-chat-widget.is-admin-thread-open .chat-attachment-name{
  max-width:82px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.site-chat-widget.is-admin-thread-open .chat-attach-btn,
.site-chat-widget.is-admin-thread-open .chat-send-btn{
  min-height:30px;
  padding:6px 10px;
  font-size:11px;
}

.site-chat-widget.is-admin-thread-open .chat-send-btn{
  min-width:92px;
}

.site-chat-compose.is-drop-active,
.chat-admin-composer.is-drop-active{
  border-color:rgba(126,217,255,0.46);
  box-shadow:0 0 0 2px rgba(126,217,255,0.12), 0 18px 36px -26px rgba(126,217,255,0.42);
}

.site-chat-compose.is-drop-active .chat-compose-field textarea,
.chat-admin-composer.is-drop-active .chat-compose-field textarea{
  border-color:rgba(126,217,255,0.62);
  background:rgba(20,29,40,0.98);
}

.site-chat-compose.is-drop-active .chat-attachment-name::before,
.chat-admin-composer.is-drop-active .chat-attachment-name::before{
  content:"Suelta la imagen aqui | ";
  color:var(--site-chat-accent, #7ed9ff);
}


.chat-compose-tools{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}

.chat-attachment-row{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  flex:1 1 auto;
  min-width:0;
}

.site-chat-btn,
.chat-attach-btn,
.chat-send-btn{
  appearance:none;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  padding:7px 12px;
  min-height:34px;
  cursor:pointer;
  font:700 12px/1 "Manrope", sans-serif;
  transition:transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-chat-btn:hover,
.site-chat-btn:focus-visible,
.chat-attach-btn:hover,
.chat-attach-btn:focus-visible,
.chat-send-btn:hover,
.chat-send-btn:focus-visible{
  transform:translateY(-1px);
  outline:none;
}

.site-chat-btn--ghost,
.chat-attach-btn{
  background:rgba(255,255,255,0.06);
  color:var(--site-chat-text);
}

.site-chat-btn--primary,
.chat-send-btn{
  border-color:rgba(214,191,116,0.42);
  background:linear-gradient(135deg, rgba(214,191,116,0.96), rgba(255,214,122,0.88));
  color:#0b1118;
  box-shadow:0 12px 24px -18px rgba(214,191,116,0.74);
}

.site-chat-btn--primary:hover,
.site-chat-btn--primary:focus-visible,
.chat-send-btn:hover,
.chat-send-btn:focus-visible{
  border-color:rgba(255,233,177,0.66);
}

.chat-image-preview{
  width:96px;
  max-width:96px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.025);
  padding:4px;
  align-self:flex-start;
}

.chat-image-preview::after{
  content:attr(data-meta);
  display:block;
  padding-top:3px;
  color:var(--site-chat-muted);
  font:700 9px/1.15 "Manrope", sans-serif;
  text-align:center;
}

.chat-image-preview.is-hidden{
  display:none;
}

.chat-image-preview img,
.chat-message-image img{
  width:100%;
  height:auto;
  border-radius:8px;
}

.chat-message{
  display:flex;
  justify-content:flex-start;
}

.chat-message.is-self{
  justify-content:flex-end;
}

.chat-date-separator{
  display:flex;
  justify-content:center;
  padding:2px 0;
}

.chat-date-separator span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(17,27,33,0.9);
  color:rgba(255,255,255,0.58);
  font:600 10px/1 "Manrope", sans-serif;
}

.chat-message-bubble{
  position:relative;
  width:fit-content;
  max-width:min(72%, 340px);
  padding:7px 9px 5px;
  border-radius:12px 12px 12px 4px;
  background:linear-gradient(180deg, rgba(28,39,47,0.98), rgba(20,29,35,0.98));
  display:grid;
  gap:5px;
  color:#e9edef;
  box-shadow:0 6px 16px rgba(0,0,0,0.14);
}

.chat-message-bubble::after{
  content:"";
  position:absolute;
  top:0;
  left:-4px;
  width:8px;
  height:10px;
  background:rgba(28,39,47,0.98);
  clip-path:polygon(100% 0, 100% 100%, 0 0);
  pointer-events:none;
}

.chat-message.is-self .chat-message-bubble{
  border-radius:12px 12px 4px 12px;
  background:linear-gradient(180deg, rgba(0,96,78,0.98), rgba(0,80,65,0.98));
  color:#f4fffc;
}

.chat-message.is-self .chat-message-bubble::after{
  left:auto;
  right:-4px;
  background:rgba(0,96,78,0.98);
  clip-path:polygon(0 0, 100% 0, 0 100%);
}


.chat-message.is-failed .chat-message-bubble{
  background:linear-gradient(180deg, rgba(127,29,29,0.98), rgba(91,16,16,0.98));
  border:1px solid rgba(248,113,113,0.42);
  color:#fff7f7;
}

.chat-message.is-failed .chat-message-bubble::after{
  background:rgba(127,29,29,0.98);
}

.chat-message.is-pro-welcome .chat-message-bubble{
  border:1px solid rgba(214,191,116,0.55);
  background:
    linear-gradient(180deg, rgba(52,43,18,0.98), rgba(31,27,14,0.98)),
    linear-gradient(135deg, rgba(214,191,116,0.18), rgba(255,220,126,0.08));
  box-shadow:0 12px 28px rgba(214,191,116,0.16), 0 0 0 1px rgba(214,191,116,0.08) inset;
}

.chat-message.is-pro-welcome .chat-message-bubble::after{
  background:rgba(52,43,18,0.98);
}

.chat-message.is-pro-welcome .chat-message-text{
  color:#fff6d8;
}

.chat-typing-indicator{
  display:inline-flex;
  align-items:center;
  gap:4px;
  width:fit-content;
  max-width:min(72%, 340px);
  margin:1px 0 2px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(20,29,35,0.92);
  color:rgba(255,255,255,0.68);
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

.chat-typing-indicator span{
  width:5px;
  height:5px;
  border-radius:999px;
  background:#7ed9ff;
  opacity:0.34;
  animation:siteChatTypingDot 1.08s ease-in-out infinite;
}

.chat-typing-indicator span:nth-child(2){
  animation-delay:0.14s;
}

.chat-typing-indicator span:nth-child(3){
  animation-delay:0.28s;
}

.chat-typing-indicator strong{
  margin-left:3px;
  font:700 11px/1 "Manrope", sans-serif;
}

@keyframes siteChatTypingDot{
  0%, 100%{
    transform:translateY(0);
    opacity:0.28;
  }
  50%{
    transform:translateY(-2px);
    opacity:0.9;
  }
}

.site-chat-widget.has-pro-welcome-highlight .site-chat-toggle,
.site-chat-widget.has-pro-welcome-highlight .site-chat-panel{
  box-shadow:0 0 0 2px rgba(214,191,116,0.42), 0 0 0 8px rgba(214,191,116,0.10), 0 22px 44px rgba(0,0,0,0.36);
  animation:siteChatProWelcomePulse 1.2s ease-in-out 3;
}

@keyframes siteChatProWelcomePulse{
  0%, 100%{
    transform:translateY(0) scale(1);
  }
  50%{
    transform:translateY(-1px) scale(1.012);
  }
}

.chat-message-text{
  white-space:pre-wrap;
  word-break:break-word;
  font:500 13px/1.38 "Manrope", sans-serif;
}

.chat-message-link{
  color:#7ed9ff;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  overflow-wrap:anywhere;
}

.chat-message-link:hover,
.chat-message-link:focus-visible{
  color:#d6bf74;
}

.chat-message-link:focus-visible{
  outline:2px solid rgba(126,217,255,0.72);
  outline-offset:2px;
  border-radius:4px;
}

.chat-message.is-self .chat-message-link{
  color:#d9fff4;
}

.chat-message.is-self .chat-message-link:hover,
.chat-message.is-self .chat-message-link:focus-visible{
  color:#ffffff;
}

.chat-message-image{
  max-width:min(220px, 100%);
}

.chat-message-image-button{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
}

.chat-message-image-button:focus-visible{
  outline:2px solid rgba(126,217,255,0.72);
  outline-offset:3px;
  border-radius:10px;
}

.chat-message-image-actions{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:6px;
}

.chat-message-image-action{
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(126,217,255,0.24);
  background:rgba(255,255,255,0.07);
  color:#bfecff;
  text-decoration:none;
  font:800 10px/1 "Manrope", sans-serif;
  cursor:pointer;
}

.chat-message-image-action:hover,
.chat-message-image-action:focus-visible{
  border-color:rgba(214,191,116,0.42);
  background:rgba(214,191,116,0.12);
  color:#fef3c7;
  outline:none;
}

.chat-message-footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-height:11px;
  gap:4px;
  flex-wrap:wrap;
}

.chat-message-date,
.chat-message-status,
.chat-message-seen-at{
  color:rgba(217,225,230,0.56);
  font:600 10px/1 "Manrope", sans-serif;
}

.chat-message-status.is-read{
  color:#38bdf8;
  text-shadow:0 0 10px rgba(56,189,248,0.34);
}

.chat-message-seen-at{
  color:rgba(186,230,253,0.92);
  font-weight:800;
}

.chat-message-status.is-error{
  color:#fecaca;
}

.chat-message.is-self .chat-message-date,
.chat-message.is-self .chat-message-status{
  color:rgba(233,255,250,0.74);
}

.chat-message.is-self .chat-message-status.is-read,
.chat-message.is-self .chat-message-seen-at{
  color:#38bdf8;
}


.chat-message-actions{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:2px;
}

.chat-message-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:18px;
  padding:2px 6px;
  border:1px solid rgba(254,202,202,0.36);
  border-radius:6px;
  background:rgba(255,255,255,0.09);
  color:#fee2e2;
  font:700 9px/1 "Manrope", sans-serif;
  cursor:pointer;
}

.chat-message-action:hover,
.chat-message-action:focus-visible{
  background:rgba(255,255,255,0.16);
  outline:none;
}

.chat-message-action.is-danger{
  width:18px;
  padding:0;
}

.chat-message-action.is-danger.is-wide{
  width:auto;
  padding:2px 6px;
}
.site-chat-widget.has-new-message-flash .site-chat-toggle,
.site-chat-widget.has-new-message-flash .site-chat-panel{
  box-shadow:0 0 0 2px rgba(126,217,255,0.22), 0 18px 36px rgba(0,0,0,0.32);
}

body.site-chat-lightbox-open{
  overflow:hidden;
}

.site-chat-lightbox{
  position:fixed;
  inset:0;
  z-index:23000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(4,8,14,0.76);
  backdrop-filter:blur(14px);
  overflow:auto;
}

.site-chat-lightbox[hidden],
.site-chat-lightbox.is-hidden{
  display:none !important;
}

.site-chat-lightbox-backdrop{
  position:absolute;
  inset:0;
}

.site-chat-lightbox-dialog{
  position:relative;
  width:min(1120px, calc(100vw - 36px));
  max-height:calc(100dvh - 36px);
  min-height:0;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(420px circle at 100% 0%, rgba(214,191,116,0.14), transparent 56%),
    linear-gradient(180deg, rgba(18,24,36,0.985), rgba(8,12,19,0.985));
  box-shadow:0 32px 80px -40px rgba(0,0,0,0.88);
  color:var(--site-chat-text);
  overflow:hidden;
}

.site-chat-lightbox-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}

.site-chat-lightbox-copy{
  min-width:0;
}

.site-chat-lightbox-copy h3{
  margin:2px 0 0;
  font:700 18px/1.12 "Space Grotesk", sans-serif;
}

.site-chat-lightbox-meta{
  margin:4px 0 0;
  color:var(--site-chat-muted);
  font:500 12px/1.35 "Manrope", sans-serif;
  word-break:break-word;
}

.site-chat-lightbox-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex-shrink:0;
}

.site-chat-lightbox-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(214,191,116,0.34);
  background:rgba(214,191,116,0.12);
  color:#fde68a;
  text-decoration:none;
  font:700 12px/1 "Manrope", sans-serif;
  transition:transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-chat-lightbox-download:hover,
.site-chat-lightbox-download:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(255,233,177,0.62);
  background:rgba(214,191,116,0.18);
  outline:none;
}

.site-chat-lightbox-action-secondary{
  border-color:rgba(126,217,255,0.24);
  background:rgba(126,217,255,0.08);
  color:#bfecff;
}

.site-chat-lightbox-action-secondary:hover,
.site-chat-lightbox-action-secondary:focus-visible{
  border-color:rgba(126,217,255,0.46);
  background:rgba(126,217,255,0.14);
  color:#e0f7ff;
}

.site-chat-lightbox-body{
  display:flex;
  min-height:0;
  flex:1 1 auto;
  overflow:hidden;
}

.site-chat-lightbox-scroll{
  width:100%;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,0.024) 0, rgba(255,255,255,0.024) 1px, transparent 1px),
    radial-gradient(circle at 0 0, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8,14,20,0.98), rgba(8,13,18,0.98));
  background-size:18px 18px, 18px 18px, auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,0.36) transparent;
}

.site-chat-lightbox-scroll::-webkit-scrollbar{
  width:8px;
  height:8px;
}

.site-chat-lightbox-scroll::-webkit-scrollbar-track{
  background:transparent;
}

.site-chat-lightbox-scroll::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,0.32);
  border-radius:999px;
}

.site-chat-lightbox-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(148,163,184,0.46);
}

.site-chat-lightbox-scroll img{
  display:block;
  width:auto;
  height:auto;
  max-width:none;
  max-height:none;
  margin:auto;
  border-radius:12px;
  box-shadow:0 22px 54px -28px rgba(0,0,0,0.72);
}

.site-chat-messages,
.chat-compose-field textarea{
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,0.32) transparent;
}

.site-chat-messages::-webkit-scrollbar,
.chat-compose-field textarea::-webkit-scrollbar{
  width:6px;
  height:6px;
}

.site-chat-messages::-webkit-scrollbar-track,
.chat-compose-field textarea::-webkit-scrollbar-track{
  background:transparent;
}

.site-chat-messages::-webkit-scrollbar-thumb,
.chat-compose-field textarea::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(148,163,184,0.28);
}

.site-chat-messages::-webkit-scrollbar-thumb:hover,
.chat-compose-field textarea::-webkit-scrollbar-thumb:hover{
  background:rgba(148,163,184,0.42);
}

@media (max-width: 640px){
  .site-chat-widget{
    right:var(--site-chat-right, 10px);
    bottom:var(--site-chat-bottom, 10px);
    width:min(calc(100vw - 20px), 360px);
  }

  .site-chat-widget.is-side-left{
    left:var(--site-chat-left, 10px);
    right:auto;
  }

  .site-chat-toggle{
    min-width:0;
    width:100%;
  }

  .site-chat-panel{
    max-height:min(640px, calc(100dvh - 14px));
    padding:9px;
  }

  .site-chat-panel-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .site-chat-panel-actions{
    justify-content:flex-start;
  }

  .site-chat-lightbox{
    padding:10px;
  }

  .site-chat-lightbox-dialog{
    width:calc(100vw - 20px);
    max-height:calc(100dvh - 20px);
    padding:10px;
  }

  .site-chat-lightbox-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .site-chat-lightbox-actions{
    justify-content:flex-start;
  }

  .site-chat-lightbox-scroll{
    padding:8px;
  }
}
