.telegram-widget-shell {
  display: grid;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-top: 16px;
  justify-self: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.telegram-widget-shell [hidden] {
  display: none !important;
}

.telegram-widget-shell--left {
  justify-self: start;
}

.telegram-widget-shell--login-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  overflow: visible;
}

.telegram-widget-shell--icon-only {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
}

.telegram-widget-shell__mount {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.telegram-widget-shell--left .telegram-widget-shell__mount {
  justify-content: flex-start;
}

.telegram-widget-shell--icon-only .telegram-widget-shell__mount {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 999px;
  justify-content: flex-start;
}

.telegram-widget-shell__icon-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #f7fbff;
  background: #54a9eb;
}

.telegram-widget-shell__icon-placeholder svg {
  width: 24px;
  height: 24px;
}

.telegram-widget-shell__mount > iframe {
  display: block;
  max-width: 100%;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: inset(0 round 999px);
}

.telegram-widget-shell--icon-only .telegram-widget-shell__mount > iframe {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: -4px;
  max-width: none;
  height: 40px !important;
  transform: none;
}

.telegram-widget-shell__mount > iframe:focus-visible {
  outline: 2px solid #dff6ff;
  outline-offset: 3px;
}

.telegram-widget-shell--login-icon:focus-within {
  outline: 2px solid #dff6ff;
  outline-offset: 3px;
  border-radius: 999px;
}

.telegram-widget-shell--login-icon.is-unavailable {
  opacity: 0.48;
}

.telegram-widget-shell__loading {
  margin: 0;
  color: rgba(231, 236, 248, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.telegram-widget-shell--login-icon .telegram-widget-shell__loading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.telegram-widget-shell--left .telegram-widget-shell__loading {
  text-align: left;
}

.external-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1f78b8;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.external-auth-button:hover {
  background: #176fa6;
  transform: translateY(-1px);
}

.external-auth-button:focus-visible {
  background: #176fa6;
  outline: 2px solid #dff6ff;
  outline-offset: 3px;
}

.external-auth-button:active {
  transform: translateY(0);
}

.external-auth-button--discord {
  background: #174f75;
}

.external-auth-button--discord:hover,
.external-auth-button--discord:focus-visible {
  background: #1b638e;
}

.external-auth-button--discord-icon {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: #5865f2;
  transition: background-color 160ms ease;
}

.external-auth-button--discord-icon:hover,
.external-auth-button--discord-icon:focus-visible {
  background: #4752c4;
  transform: none;
}

.external-auth-button--discord-icon:active {
  background: #3c45a5;
  transform: none;
}

.external-auth-button svg {
  width: 21px;
  height: 21px;
  color: #fff;
}

.external-auth-button--discord-icon svg {
  width: 23px;
  height: 23px;
}

@media (max-width: 560px) {
  .external-auth-button:not(.external-auth-button--discord-icon) {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .telegram-widget-shell--login-icon:focus-within,
  .external-auth-button--discord-icon:focus-visible {
    outline-color: Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  .external-auth-button {
    transition: none;
  }

  .external-auth-button:hover,
  .external-auth-button:active {
    transform: none;
  }
}
