@font-face {
  font-family: "Pofak";
  src: url("./fonts/Pofak-Regular.fedb91778993.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 600;
  font-display: swap;
}
@font-face {
  font-family: "Pofak";
  src: url("./fonts/Pofak-Bold.f377f3091ea7.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

.telegram-support,
.telegram-support * {
  box-sizing: border-box;
  font-family: "Pofak", Tahoma, "Segoe UI", Arial, sans-serif;
}

.telegram-support {
  direction: rtl;
  z-index: 9999;
  position: fixed;
  left: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 30px);
  display: grid;
  justify-items: start;
  gap: 11px;
  pointer-events: none;
}

.telegram-support-card,
.telegram-support-toggle {
  pointer-events: auto;
}

.telegram-support-card {
  color: #24154b;
  background: #fff;
  border: 1px solid #e6ddf5;
  border-radius: 22px 22px 8px 22px;
  width: min(330px, calc(100vw - 32px));
  padding: 20px 20px 17px;
  box-shadow: 0 22px 65px #210c4f35, 0 4px 14px #210c4f12;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.97);
  transform-origin: left bottom;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.telegram-support.is-open .telegram-support-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.telegram-support-close {
  color: #887b9f;
  background: #f4f0fa;
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 20px/28px Arial, sans-serif;
  cursor: pointer;
}

.telegram-support-status {
  color: #229ed9;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}

.telegram-support-status i {
  background: #39c97a;
  border: 3px solid #dff8ea;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.telegram-support-card strong {
  display: block;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.75;
}

.telegram-support-card p {
  color: #756b88;
  margin: 7px 0 14px;
  font-size: 11px;
  line-height: 1.85;
}

.telegram-support-card > a {
  color: #fff;
  background: #229ed9;
  border-radius: 13px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.telegram-support-toggle {
  color: #fff;
  background: #229ed9;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 8px 12px 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 32px #229ed959;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.telegram-support-toggle:hover,
.telegram-support-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px #229ed96b;
}

.telegram-support-toggle svg {
  fill: currentColor;
  width: 34px;
  height: 34px;
}

.telegram-support-toggle span {
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 620px) {
  .telegram-support {
    left: 12px;
    bottom: 12px;
  }

  .telegram-support-toggle {
    width: 54px;
    padding: 9px;
    justify-content: center;
  }

  .telegram-support-toggle span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-support-card,
  .telegram-support-toggle {
    transition: none;
  }
}
