#cyberitChatRoot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.cy-chat-visible #cyberitChatRoot {
  opacity: 1;
  pointer-events: auto;
}

.cy-chat-fab {
  height: 58px;
  min-width: 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 8px;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.36);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cy-chat-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(34, 197, 94, 0.42);
  filter: saturate(1.08);
}

.cy-chat-fab:active {
  transform: translateY(0);
}

.cy-chat-fab-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.cy-chat-fab-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.cy-chat-panel {
  width: min(360px, calc(100vw - 32px));
  height: 520px;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-bottom: 12px;
  background: rgba(8, 17, 31, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  overscroll-behavior: contain;
}

.cy-chat-open .cy-chat-panel {
  display: flex;
}

.cy-chat-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbeafe;
}

.cy-chat-title {
  font-size: 14px;
  font-weight: 600;
}

.cy-chat-status {
  font-size: 12px;
  color: #93c5fd;
}

.cy-chat-close {
  border: 0;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  font-size: 18px;
}

.cy-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cy-chat-name-step,
.cy-chat-conversation {
  display: none;
  height: 100%;
}

.cy-chat-needs-name .cy-chat-name-step {
  display: flex;
}

.cy-chat-ready .cy-chat-conversation {
  display: flex;
}

.cy-chat-name-step {
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  color: #dbeafe;
}

.cy-chat-name-step h4 {
  margin: 0;
  font-size: 16px;
}

.cy-chat-name-step p {
  margin: 0;
  font-size: 13px;
  color: #93c5fd;
}

.cy-input,
.cy-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 12px;
  font-size: 16px;
}

.cy-input {
  background: rgba(3, 7, 18, 0.8);
  color: #e2e8f0;
}

.cy-btn {
  cursor: pointer;
  font-weight: 600;
  color: #08111f;
  background: linear-gradient(135deg, #00f0ff, #38bdf8);
}

.cy-chat-conversation {
  flex-direction: column;
}

.cy-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cy-chat-msg {
  max-width: 82%;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #e2e8f0;
}

.cy-chat-msg small {
  display: block;
  margin-top: 4px;
  opacity: 0.7;
  font-size: 10px;
}

.cy-chat-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(59, 130, 246, 0.3));
}

.cy-chat-msg-admin {
  align-self: flex-start;
  background: rgba(148, 163, 184, 0.2);
}

.cy-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cy-chat-input-row .cy-input {
  flex: 1;
}

.cy-chat-meta {
  display: none;
}

@media (max-width: 768px) {
  #cyberitChatRoot {
    right: 14px;
    bottom: 86px;
  }

  .cy-chat-fab {
    height: 52px;
    padding: 0 14px 0 7px;
    gap: 8px;
  }

  .cy-chat-fab-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .cy-chat-fab-label {
    font-size: 13px;
  }

  .cy-chat-panel {
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
  }

  .cy-input,
  .cy-btn {
    font-size: 16px;
  }
}
