/* Simple Telegram chat widget (static site) */

#tg-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

#tg-chat-widget * { box-sizing: border-box; }

#tg-chat-widget .tg-chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #00768E, #01AAC7);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#tg-chat-widget .tg-chat-btn:focus { outline: none; }

#tg-chat-widget .tg-chat-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 320px;
  max-width: calc(100vw - 36px);
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 50px rgba(0,0,0,0.45);
  padding: 12px;
  display: none;
}

#tg-chat-widget.tg-open .tg-chat-panel { display: block; }

#tg-chat-widget .tg-chat-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

#tg-chat-widget .tg-chat-desc {
  font-size: 12px;
  opacity: 0.85;
  margin: 0 0 10px 0;
}

#tg-chat-widget .tg-chat-field {
  width: 100%;
  margin: 0 0 8px 0;
}

#tg-chat-widget input,
#tg-chat-widget textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #0b0b0b;
  color: #fff;
}

#tg-chat-widget textarea { min-height: 84px; resize: vertical; }

#tg-chat-widget .tg-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#tg-chat-widget .tg-send {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #01AAC7;
  color: #fff;
  font-weight: bold;
}

#tg-chat-widget .tg-close {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: #fff;
}

#tg-chat-widget .tg-status {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.9;
}

#tg-chat-widget .tg-status.tg-ok { color: #9ef59e; }
#tg-chat-widget .tg-status.tg-err { color: #ffb3b3; }
