// Core Chatsy Styles
// Chat widget integration and floating action button

// ============================================
// Pre-Chat Button Base
// ============================================

#prechat-btn {
  position: fixed;
  background: #237AFC;
  color: #fff;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 1;
  border-radius: 50%;
  right: 20px;
  bottom: 20px;
  transition: background 0.5s;
  z-index: 11;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 10px 0px;
  
  // Animation setup
  transition: transform 167ms cubic-bezier(0.33, 0, 0, 1) 0s;
  transform-origin: center center;

  // ============================================
  // Button Icon
  // ============================================
  
  svg {
    color: #fff;
    width: 50%;
    opacity: 1.0;
    pointer-events: none;
  }

  // ============================================
  // Button Interactions
  // ============================================
  
  &:hover {
    transition: transform 250ms cubic-bezier(0.33, 0, 0, 1) 0s;
    transform: scale(1.1);
  }

  &:active {
    transform: scale(0.85);
    transition: transform 134ms cubic-bezier(0.45, 0, 0.2, 1) 0s;
  }
}

// ============================================
// Responsive Adjustments
// ============================================

@media (max-width: 768px) {
  #prechat-btn {
    bottom: 15px;
  }
}