#consultantWidget {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@keyframes fab-bounce-in {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes card-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

#consultantWidget .fab-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #b411c0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: fab-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  pointer-events: auto;
}

#consultantWidget .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: inherit;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#consultantWidget .fab-icon {
  width: 32px;
  height: 32px;
  color: white;
  position: relative;
  z-index: 10;
}

#consultantWidget .overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

#consultantWidget .widget-card {
  position: fixed;
  z-index: 9999;
  bottom: 24px;
  right: 15px;
  width: calc(100% - 30px);
  max-width: 420px;
  background-color: #1A2332;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(45, 63, 82, 0.5);
  animation: card-slide-up 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  pointer-events: auto;
}

#consultantWidget .close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  padding: 8px;
  border-radius: 50%;
  background-color: rgba(45, 63, 82, 0.5);
  border: none;
  cursor: pointer;
  color: #A8B5C8;
  transition: all 0.2s;
}

#consultantWidget .close-button:hover { background-color: rgba(45, 63, 82, 1); color: white; }

#consultantWidget .widget-content { padding: 20px 24px; }

/* Блок оператора */
#consultantWidget .header-section { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
#consultantWidget .avatar-container { position: relative; flex-shrink: 0; }
#consultantWidget .avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 2px solid #2D3F52; background-color: #2D3F52; }
#consultantWidget .avatar img { width: 100%; height: 100%; object-fit: cover; }
#consultantWidget .status-indicator { position: absolute; bottom: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background-color: #25D366; border: 2px solid #1A2332; }
#consultantWidget .header-text { flex: 1; padding-top: 4px; }
#consultantWidget .widget-title { font-size: 20px; font-weight: 600; color: white; margin-bottom: 4px; }
#consultantWidget .widget-description { font-size: 14px; color: #A8B5C8; line-height: 1.5; }

#consultantWidget .section-title { font-size: 14px; font-weight: 500; color: #A8B5C8; margin-bottom: 12px; }

#consultantWidget .copyright-link {
  position: fixed;
  right: 15px; /* Совпадает с right у .widget-card */
  bottom: 5px;  /* Чуть ниже нижней границы карточки */
  width: calc(100% - 30px);
  max-width: 420px;
  text-align: right;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  z-index: 10000;
  pointer-events: auto;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

#consultantWidget .copyright-link:hover {
  color: #A8B5C8;
}

/* Сетка мессенджеров 2х2 */
#consultantWidget .messengers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

#consultantWidget .messenger-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 12px;
  background-color: rgba(45, 63, 82, 0.3);
  border: 1px solid rgba(45, 63, 82, 0.5);
  text-decoration: none;
  transition: all 0.2s;
}

#consultantWidget .messenger-item:hover { background-color: rgba(45, 63, 82, 0.6); transform: translateY(-2px); }

#consultantWidget .messenger-img { width: 40px; height: 40px; object-fit: contain; }
#consultantWidget .messenger-label { font-size: 14px; font-weight: 500; color: white; }

/* Телефоны */
#consultantWidget .phone-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 12px; }
#consultantWidget .phone-button { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 12px; background-color: #1F2E3F; border: 1px solid rgba(45, 63, 82, 0.5); text-decoration: none; text-align: center; }
#consultantWidget .phone-number { font-size: 14px; font-weight: 600; color: white; margin-bottom: 4px; }
#consultantWidget .phone-label { font-size: 11px; color: #A8B5C8; }

#consultantWidget, #consultantWidget * { pointer-events: auto; }

#consultantWidget .phone-icon {
    width: 20px;
    height: 20px;
    color: #00A8E8;
    margin-bottom: 8px;
    transition: transform 0.2s;
}