/* Віджет чату */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #06A77D, #0EAD69);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.chat-button.hidden {
  display: none;
}

.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.chat-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-popup-header {
  background: linear-gradient(45deg, #05BFDB, #0A2647);
  color: white;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-popup-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-popup {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.close-popup:hover {
  opacity: 0.8;
}

.chat-popup-body {
  padding: 24px 20px;
}

.chat-popup-body p {
  margin-bottom: 16px;
  color: #333;
  line-height: 1.6;
}

.chat-cta-btn {
  background: linear-gradient(45deg, #06A77D, #0EAD69);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  font-size: 16px;
}

.chat-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.dismiss-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.dismiss-link:hover {
  color: #333;
  text-decoration: underline;
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
  .chat-popup {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 90px;
  }
  .chat-button {
    bottom: 20px;
    right: 20px;
  }
}
