/* Chat Widget Styles */

/* Floating Chat Button */
.chat-widget-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #e53935;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.chat-widget-button:hover {
  background-color: #c62828;
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.5);
  transform: translateY(-2px);
}

.chat-widget-button:active {
  transform: translateY(0);
}

.chat-widget-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Chat Widget Drawer */
.chat-widget-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background-color: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.chat-widget-drawer.open {
  right: 0;
}

/* Chat Widget Header */
.chat-widget-header {
  background-color: #e53935;
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-widget-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.chat-widget-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.chat-widget-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chat-widget-close svg {
  width: 24px;
  height: 24px;
}

/* Chat Widget Content */
.chat-widget-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background-color: #f5f5f5;
}

.frontdesk-widget-slot {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background-color: white;
}

.frontdesk-widget-slot p {
  padding: 24px;
  text-align: center;
  color: #666;
  font-family: 'Montserrat', sans-serif;
}

/* Overlay */
.chat-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-widget-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hide button when drawer is open */
.chat-widget-button.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .chat-widget-drawer {
    width: 100%;
    right: -100%;
  }

  .chat-widget-button {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 14px;
  }

  .chat-widget-button span {
    display: none;
  }

  .chat-widget-button svg {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 480px) {
  .chat-widget-header {
    padding: 16px 20px;
  }

  .chat-widget-header h3 {
    font-size: 18px;
  }
}
