#ss-telegram-widget {
  --ss-tg-blue: #229ed9;
  --ss-tg-blue-dark: #1687c1;
  --ss-tg-navy: #102435;
  --ss-tg-lime: #d8ef62;
  bottom: 20px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  position: fixed;
  right: 20px;
  z-index: 2147483000;
}

#ss-telegram-widget * { box-sizing: border-box; }

.ss-tg-launcher {
  align-items: center;
  background: var(--ss-tg-blue);
  border: 3px solid #fff;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(16, 67, 94, .28);
  color: #fff;
  display: flex;
  gap: 9px;
  min-height: 56px;
  padding: 8px 15px 8px 9px;
}

.ss-tg-launcher:hover { background: var(--ss-tg-blue-dark); transform: translateY(-1px); }
.ss-tg-launcher > span { text-align: left; }
.ss-tg-launcher strong, .ss-tg-launcher small { display: block; }
.ss-tg-launcher strong { font-size: 13px; line-height: 1.2; }
.ss-tg-launcher small { font-size: 10px; margin-top: 3px; opacity: .84; }
.ss-tg-launcher i { background: #51d08d; border: 2px solid #fff; border-radius: 50%; height: 10px; position: absolute; right: 7px; top: 4px; width: 10px; }

.ss-tg-plane {
  align-items: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
  display: flex;
  font-size: 17px;
  height: 37px;
  justify-content: center;
  transform: rotate(-18deg);
  width: 37px;
}

.ss-tg-panel {
  background: #fff;
  border: 1px solid #dbe5ea;
  border-radius: 18px;
  bottom: 69px;
  box-shadow: 0 20px 60px rgba(13, 44, 61, .24);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(10px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
  visibility: hidden;
  width: min(380px, calc(100vw - 24px));
}

.is-open .ss-tg-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.ss-tg-panel header {
  align-items: center;
  background: var(--ss-tg-navy);
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 14px 15px;
}

.ss-tg-avatar {
  align-items: center;
  background: var(--ss-tg-blue);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 43px;
  font-size: 12px;
  font-weight: 800;
  height: 43px;
  justify-content: center;
}

.ss-tg-panel header > div { flex: 1; }
.ss-tg-panel header strong, .ss-tg-panel header small { display: block; }
.ss-tg-panel header strong { font-size: 13px; }
.ss-tg-panel header small { color: #bdcbd4; font-size: 10px; margin-top: 4px; }
.ss-tg-panel header small i { background: #51d08d; border-radius: 50%; display: inline-block; height: 7px; margin-right: 4px; width: 7px; }
.ss-tg-close { background: transparent; border: 0; color: #b9c6ce; font-size: 24px; line-height: 1; padding: 4px; }

.ss-tg-body {
  background: #f4f8fa;
  padding: 16px;
}

.ss-tg-body > p {
  color: #73828c;
  font-size: 10px;
  margin: 15px 0 8px;
  text-transform: uppercase;
}
.ss-tg-body > p:first-child { margin-top: 0; }

.ss-tg-body > a {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5ea;
  border-radius: 9px;
  color: #243640;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  justify-content: space-between;
  margin-top: 6px;
  padding: 11px 12px;
  text-decoration: none;
}

.ss-tg-body > a:hover { border-color: var(--ss-tg-blue); color: var(--ss-tg-blue-dark); }
.ss-tg-body > a b { color: var(--ss-tg-blue); font-size: 18px; }

.ss-tg-body .ss-contact-channel {
  align-items: center;
  border-radius: 11px;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.ss-contact-channel span,
.ss-contact-channel b,
.ss-contact-channel small { display: block; }
.ss-contact-channel b { color: inherit!important; font-size: 13px!important; }
.ss-contact-channel small { font-size: 10px; font-weight: 400; margin-top: 3px; opacity: .78; }
.ss-contact-channel em { border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; padding: 5px 7px; }
.ss-contact-telegram { border-color: #93D2EF!important; }
.ss-contact-telegram em { background: #E4F5FC; color: var(--ss-tg-blue-dark); }
.ss-contact-zalo {
  background: #F5F7F8;
  border: 1px dashed #C7D1D6;
  color: #74818A;
  cursor: not-allowed;
  margin-top: 7px;
}
.ss-contact-zalo em { background: #E8ECEE; color: #68757D; }

.ss-tg-panel footer { background: #fff; padding: 12px 15px; text-align: center; }
.ss-tg-panel footer > a { align-items: center; background: var(--ss-tg-blue); border-radius: 9px; color: #fff; display: flex; font-size: 12px; font-weight: 700; gap: 7px; justify-content: center; padding: 12px; text-decoration: none; }
.ss-tg-panel footer > a:hover { background: var(--ss-tg-blue-dark); }
.ss-tg-panel footer > a span { display: inline-block; transform: rotate(-18deg); }

@media (max-width: 520px) {
  #ss-telegram-widget { bottom: 12px; right: 10px; }
  .ss-tg-panel { bottom: 65px; position: fixed; right: 10px; }
  .ss-tg-launcher > span:not(.ss-tg-plane) { display: none; }
  .ss-tg-launcher { border-radius: 50%; min-height: 54px; padding: 6px; width: 54px; }
  .ss-tg-plane { height: 36px; width: 36px; }
}
