/* Hotbot справа и поверх остальных элементов */
html body .hotbot-widget,
html body .hotbot-widget .hotbot-widget-container,
html body .hotbot-widget .hotbot-chat-container,
html body .hotbot-widget .hotbot-shop-overlay {
  z-index: 2147483647 !important;
}

html body .hotbot-widget .hotbot-widget-buttons-wrap {
  position: fixed !important;
  left: auto !important;
  right: 24px !important;
  bottom: 24px !important;
}

html body .hotbot-widget .hotbot-widget-buttons-wrap-shop {
  display: block !important;
  left: auto !important;
  right: 24px !important;
  bottom: 104px !important;
}

html body .hotbot-widget .hotbot-widget-tooltip--shop {
  display: none !important;
}

html body .hotbot-widget .hotbot-widget-bubbles,
html body .hotbot-widget .hotbot-info-widget {
  left: auto !important;
  right: 24px !important;
}

html body .hotbot-widget .hotbot-chat-container {
  left: auto !important;
  right: 24px !important;
}

/* Общие стили кнопок сайта */
#desk-book-fab,
#pro-call-fab {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 120px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dca15d;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1000000;
}

#desk-book-fab svg,
#pro-call-fab svg {
  display: block;
  width: 26px;
  height: 26px;
}

#desk-book-fab::before,
#desk-book-fab::after,
#pro-call-fab::before,
#pro-call-fab::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  z-index: -1;
  animation: floating-button-pulse 1.6s ease-out infinite;
}

#desk-book-fab::before,
#desk-book-fab::after {
  background: rgba(220, 161, 93, 0.35);
}

#pro-call-fab::before,
#pro-call-fab::after {
  background: rgba(243, 202, 55, 0.35);
}

#desk-book-fab::after,
#pro-call-fab::after {
  opacity: 0.65;
  animation-delay: 0.8s;
}

@keyframes floating-button-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.75;
  }

  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

#desk-book-fab:focus-visible,
#pro-call-fab:focus-visible,
.round-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

#desk-book-fab:active,
#pro-call-fab:active,
.round-btn:active {
  transform: scale(0.98);
}

/* Бронирование показывается только на десктопе */
@media (max-width: 1024px) {
  #desk-book-fab {
    display: none !important;
  }
  #pro-call-fab {
      position: fixed;
      right: 20px;
      left: auto;
  }
}

/* Звонок показывается только на мобильных и планшетах */
@media (min-width: 1025px) {
  #pro-call-fab,
  .round-btn {
    display: none !important;
  }
}

#pro-call-fab {
  bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

/* MAX и Telegram слева снизу */
.round-btn {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 999999;
}

.round-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.round-btn.tg {
  left: 16px;
  right: auto;
}

.round-btn.max {
  left: 72px;
  right: auto;
}

@media (max-width: 600px) {
  html body .hotbot-widget
  .hotbot-widget-buttons-wrap:not(.hotbot-widget-buttons-wrap-shop) {
    left: auto !important;
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .hotbot-widget .hotbot-widget-buttons-wrap-shop {
    display: none !important;
  }

  html body .hotbot-widget .hotbot-widget-bubbles,
  html body .hotbot-widget .hotbot-info-widget {
    left: auto !important;
    right: 16px !important;
    bottom: 96px !important;
  }

  html body .hotbot-widget .hotbot-chat-container {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #desk-book-fab::before,
  #desk-book-fab::after,
  #pro-call-fab::before,
  #pro-call-fab::after {
    display: none !important;
    animation: none !important;
  }
}
