/* Robo Widget Styles */

.robo-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.robo-button {
  position: relative;
  background-size: contain;
  width: 120px;
  height: 120px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
}

/* Индикатор статуса консультанта */
.robo-widget .status-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  background-color: #4caf50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
  animation: robo-pulse 2s ease-in-out infinite;
}

.robo-widget .status-indicator.offline {
  background-color: #9e9e9e;
  animation: none;
}

.robo-widget .status-indicator.online {
  background-color: #4caf50;
}

@keyframes robo-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4), 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  50% {
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4), 0 0 0 8px rgba(76, 175, 80, 0);
  }
}

/* Волны - отключены */
.robo-button::before,
.robo-button::after {
  display: none;
}

/* Иконки мессенджеров */
.robo-widget .messengers-icons {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 160px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  z-index: 1001;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
}

.robo-widget .messengers-icons.show {
  display: flex;
  flex-wrap: nowrap;
}

.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: translateX(-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-slideInRight 0.5s ease forwards 0.1s; 
}
.robo-widget .messengers-icons.show .messenger-icon:nth-child(2) { 
  animation: robo-slideInRight 0.5s ease forwards 0.3s; 
}
.robo-widget .messengers-icons.show .messenger-icon:nth-child(3) { 
  animation: robo-slideInRight 0.5s ease forwards 0.5s; 
}

.robo-widget .messenger-icon:hover {
  transform: rotateY(360deg) scale(1.2) translateY(-8px);
}

.robo-widget .messenger-icon:hover img {
  transform: rotateY(360deg) scale(1.1);
}

.robo-widget .messenger-icon:not(:hover) {
  transition: all 0.4s ease;
}

.robo-widget .messenger-icon:active {
  transform: rotateY(0deg) scale(0.95) translateY(0);
}

@keyframes robo-slideInRight {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Диалог */
.robo-widget .robo-dialog {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 160px;
  width: 280px;
  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-dialogSlideUp 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-dialogSlideUp {
  from { 
    transform: translateY(20px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@media (max-width: 768px) {
  .robo-widget .robo-button {
    width: 90px;
    height: 90px;
  }
  .robo-widget .robo-button::before,
  .robo-widget .robo-button::after {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
  }
  .robo-widget .status-indicator {
    width: 16px;
    height: 16px;
    top: 6px;
    right: 6px;
    border-width: 2px;
  }
  .robo-widget .messengers-icons {
    left: 110px;
    bottom: 20px;
    gap: 12px;
  }
  .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 .messenger-icon:hover {
    transform: rotateY(180deg) scale(1.15) translateY(-5px);
  }
  .robo-widget .robo-dialog {
    width: 240px;
    bottom: 20px;
    left: 110px;
    padding: 15px;
  }
  .robo-widget .robo-dialog p {
    font-size: 13px;
  }
}

