.chatkit-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.chatkit-widget__panel {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  height: min(310px, calc(100vh - 104px));
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(34,197,94,.26);
  background: rgba(5,14,7,.96);
  box-shadow: 0 26px 80px rgba(0,0,0,.58);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  pointer-events: auto;
}
.chatkit-widget.is-open .chatkit-widget__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.chatkit-widget__panel openai-chatkit {
  display: block;
  width: 100%;
  height: 100%;
}
.chatkit-widget__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(34,197,94,.16), transparent 46%),
    rgba(5,14,7,.98);
  color: #f0fdf4;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  transition: opacity .22s ease, visibility .22s ease;
}
.chatkit-widget__loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chatkit-widget__loading strong {
  font-size: 13px;
  font-weight: 850;
  color: #22c55e;
}
.chatkit-widget__loading span {
  color: rgba(240,253,244,.58);
  font-size: 13px;
}
.chatkit-widget__orb {
  position: relative;
  width: 58px;
  height: 58px;
}
.chatkit-widget__orb span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid transparent;
  border-top-color: #22c55e;
  border-left-color: rgba(34,197,94,.35);
  animation: chatkitOrbit 1.15s linear infinite;
}
.chatkit-widget__orb span:nth-child(2) {
  inset: 9px;
  animation-duration: 1.65s;
  animation-direction: reverse;
  opacity: .75;
}
.chatkit-widget__orb span:nth-child(3) {
  inset: 20px;
  border-top-color: #86efac;
  border-left-color: rgba(134,239,172,.28);
  animation-duration: .9s;
}
@keyframes chatkitOrbit {
  to { transform: rotate(360deg); }
}
.chatkit-widget__button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 17px;
  border-radius: 999px;
  border: 1px solid rgba(134,239,172,.32);
  background: linear-gradient(135deg, #22c55e, #86efac);
  color: #06120a;
  box-shadow: 0 16px 38px rgba(34,197,94,.26);
  font: 850 14px/1.1 Inter, Arial, sans-serif;
  cursor: pointer;
}
.chatkit-widget__button:hover {
  background: linear-gradient(135deg, #16a34a, #6ee7b7);
}
.chatkit-widget__button-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  background: rgba(6,18,10,.12);
}
.chatkit-widget__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #06120a;
  opacity: .45;
  animation: chatkitDotPulse 1.05s ease-in-out infinite;
}
.chatkit-widget__dot:nth-child(2) { animation-delay: .14s; }
.chatkit-widget__dot:nth-child(3) { animation-delay: .28s; }
@keyframes chatkitDotPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: .42; }
  35% { transform: translateY(-3px); opacity: 1; }
}
.chatkit-widget__fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #f0fdf4;
  text-align: left;
  font-family: Inter, Arial, sans-serif;
}
.chatkit-widget__fallback strong { font-size: 18px; }
.chatkit-widget__fallback span { color: rgba(240,253,244,.58); font-size: 14px; line-height: 1.45; }
@media (max-width: 640px) {
  .chatkit-widget { right: 10px; left: 10px; bottom: 10px; }
  .chatkit-widget__panel { width: 100%; height: min(340px, calc(100vh - 90px)); }
  .chatkit-widget__button { width: 100%; justify-content: center; }
}
