.redtop-telegram-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

/* Removes the retired icon-only control during cached in-page upgrades. */
.redtop-culinary-bot-button {
  display: none !important;
}

.redtop-telegram-button {
  display: inline-flex !important;
  position: relative;
  z-index: 2;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  font: inherit;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.redtop-telegram-button svg {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.redtop-telegram-button span {
  display: block;
  text-align: left;
}

.redtop-telegram-button small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  opacity: 0.72;
}

.redtop-telegram-button--channel {
  color: #fff !important;
  background: #141414 !important;
}

.redtop-telegram-button--bot {
  color: #fff !important;
  background: #ef3128 !important;
}

.redtop-telegram-button--support {
  color: #141414 !important;
  border-color: #d3d3d3 !important;
  background: #fff !important;
}

.redtop-telegram-button:hover,
.redtop-telegram-button:focus-visible {
  outline: 3px solid rgb(20 20 20 / 14%) !important;
  outline-offset: 2px;
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 16%) !important;
}

.redtop-telegram-action-group--slider {
  max-width: calc(100vw - 24px);
}

.redtop-telegram-button--slider {
  min-height: 54px;
}

.redtop-telegram-contact-actions {
  display: block;
}

.redtop-telegram-action-group--contact {
  margin-top: 10px;
}

.redtop-mobile-telegram {
  margin: 14px 0;
  padding: 15px;
  border-radius: 18px;
  background: #f5f5f5;
}

.redtop-mobile-telegram h2 {
  margin: 0 0 11px;
  color: #141414;
  font-size: 15px;
  font-weight: 800;
}

.redtop-telegram-action-group--mobile {
  display: grid;
}

.redtop-telegram-button--mobile {
  width: 100%;
}

.redtop-footer-telegram {
  margin-top: 24px;
}

.redtop-footer-telegram .widget-title {
  margin-bottom: 12px;
}

.redtop-telegram-action-group--footer {
  display: grid;
  max-width: 290px;
}

.redtop-telegram-button--footer {
  width: 100%;
}

.redtop-product-telegram {
  clear: both;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(0 0 0 / 7%);
}

.redtop-product-telegram h2 {
  margin: 0 0 6px;
  color: #141414;
  font-size: 19px;
  line-height: 1.2;
}

.redtop-product-telegram > p {
  margin: 0 0 15px;
  color: #686868;
  font-size: 14px;
  line-height: 1.4;
}

.redtop-telegram-action-group--product-main .redtop-telegram-button {
  flex: 1 1 190px;
}

.redtop-telegram-action-group--product-support {
  margin-top: 10px;
}

.redtop-telegram-action-group--product-support .redtop-telegram-button {
  width: 100%;
  justify-content: center;
}

.redtop-support-link {
  font-weight: 700;
}

@media (max-width: 767px) {
  .redtop-telegram-action-group--slider,
  .redtop-telegram-action-group--contact,
  .redtop-telegram-action-group--product-main {
    display: grid;
    width: 100%;
  }

  .redtop-telegram-button--slider,
  .redtop-telegram-button--contact,
  .redtop-telegram-button--product-main {
    width: 100%;
  }

  .redtop-product-telegram {
    padding: 16px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .redtop-telegram-button {
    transition: none !important;
  }
}
