/* Robo Widget Styles */

.robo-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.robo-button {
  position: relative;
  background-size: contain;
  width: 120px;
  height: 120px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
  display: block;
}

/* Кнопка закрытия — на месте индикатора статуса */
.robo-widget .status-indicator {
  display: none;
}


/* Волны - отключены */
.robo-button::before,
.robo-button::after {
  display: none;
}

/* Иконки мессенджеров - вертикально над кнопкой */
.robo-widget .messengers-icons {
  display: none;
  position: absolute;
  bottom: 130px;
  right: 38px;
  top: auto;
  left: auto;
  transform: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 1001;
  width: 44px;
  height: auto;
  box-sizing: border-box;
}

.robo-widget .messengers-icons.show {
  display: flex;
}

.robo-widget .messenger-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  text-decoration: none !important;
  line-height: 0 !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  perspective: 1000px;
  background: transparent !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.robo-widget .messenger-icon img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 50% !important;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.robo-widget .messengers-icons.show .messenger-icon:nth-child(1) { 
  animation: robo-slideInUp 0.5s ease forwards 0.1s; 
}
.robo-widget .messengers-icons.show .messenger-icon:nth-child(2) { 
  animation: robo-slideInUp 0.5s ease forwards 0.25s; 
}
.robo-widget .messengers-icons.show .messenger-icon:nth-child(3) { 
  animation: robo-slideInUp 0.5s ease forwards 0.4s; 
}

.robo-widget .messenger-icon:hover {
  transform: scale(1.2) translateY(-4px);
}

.robo-widget .messenger-icon:hover img {
  transform: scale(1.1);
}

.robo-widget .messenger-icon:not(:hover) {
  transition: all 0.4s ease;
}

.robo-widget .messenger-icon:active {
  transform: scale(0.95) translateY(0);
}

@keyframes robo-slideInUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Диалог - слева от кнопки */
.robo-widget .robo-dialog {
  display: none;
  position: absolute;
  bottom: 0;
  right: 130px;
  top: auto;
  left: auto;
  transform: none;
  width: 260px;
  background: linear-gradient(135deg, #405482, #324a6e);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 1002;
  animation: robo-dialogSlideIn 0.4s ease-out;
  font-size: 14px;
  color: white;
  text-align: center;
}

.robo-widget .robo-dialog.show {
  display: block;
}

.robo-widget .robo-dialog h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: white !important;
  font-weight: bold;
}

.robo-widget .robo-dialog p {
  margin: 0 0 15px;
  opacity: 0.9;
  line-height: 1.4;
}

.robo-widget .robo-dialog button {
  background: white;
  color: #405482;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.robo-widget .robo-dialog button:hover {
  background: #ff9800;
  color: white;
}

@keyframes robo-dialogSlideIn {
  from { 
    transform: translateX(20px); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@media (max-width: 768px) {
  .robo-widget {
    bottom: 15px;
    right: 15px;
  }
  .robo-widget .robo-button {
    width: 90px;
    height: 90px;
  }
  .robo-widget .status-indicator {
    width: 16px;
    height: 16px;
    top: 6px;
    right: 6px;
    border-width: 2px;
  }
  .robo-widget .messengers-icons {
    bottom: 100px;
    right: 25px;
    gap: 10px;
    width: 40px;
  }
  .robo-widget .messenger-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  .robo-widget .messenger-icon img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  .robo-widget .robo-dialog {
    width: 220px;
    right: 105px;
    bottom: 0;
    padding: 15px;
  }
  .robo-widget .robo-dialog p {
    font-size: 13px;
  }
}