/* Customer Service Panel CSS */

.cs-panel {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Panel positioning */
.cs-panel-left {
  left: 0;
}

.cs-panel-right {
  right: 0;
}

/* Individual item styling */
.cs-item {
  width: 60px;
  height: 60px;
  background-color: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cs-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Icon styling */
.cs-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
}

.cs-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.cs-icon img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.cs-title {
  display: none; /* Hide title by default, could be shown on hover if needed */
}

/* Popup styling */
.cs-popup {
  position: absolute;
  display: none;
  background: white;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 15px;
  min-width: 200px;
  z-index: 10000;
}

.cs-panel-left .cs-popup {
  left: 70px;
  transform: translateY(-50%);
  top: 50%;
}

.cs-panel-right .cs-popup {
  right: 70px;
  transform: translateY(-50%);
  top: 50%;
}

.cs-item:hover .cs-popup {
  display: block;
}

/* QR Code styling */
.cs-qr-code {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Custom content styling */
.cs-popup-content {
  text-align: center;
  font-size: 16px;
  color: #333;
}

.cs-phone, .cs-email, .cs-custom {
  display: block;
  padding: 8px 0;
  word-break: break-word;
}

/* Arrow indicator for popup */
.cs-panel-left .cs-popup:after {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.cs-panel-right .cs-popup:after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
  .cs-item {
    width: 50px;
    height: 50px;
  }
  
  .cs-icon svg,
  .cs-icon img {
    max-width: 20px;
    max-height: 20px;
  }
  
  .cs-popup {
    min-width: 160px;
  }
  
  .cs-qr-code {
    max-width: 160px;
  }
}

/* Top button specific styling */
.cs-top-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cs-top-btn.visible {
  opacity: 1;
  visibility: visible;
} 