.five9-chat-button {
  height: 5.5rem !important;
}

/* Base button styles */
.five9-chat-button,
.five9-action-btn,
.five9-cancel-btn,
.five9-confirm-btn,
#send-button,
.input-message-div button,
#start-chat-button,
#start-email-button {
  background: #b25121 !important;
  color: white !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 10px !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
}

.five9-chat-button:hover,
.five9-action-btn:hover,
.five9-cancel-btn:hover,
.five9-confirm-btn:hover,
#send-button:hover,
.input-message-div button:hover,
#start-chat-button:hover,
#start-email-button:hover {
  background: #67200e !important;
}

/* Input Fields */
.ui-input-text.ui-focus {
  border-color: #b25121 !important;
}

/* Message Containers */
.message-container-client .message-container {
  background-color: #91852c !important; /* Sage color */
  color: #fffbf3 !important; /* Sand 100 */
}

.message-container-agent .message-container {
  background-color: #fcf5e8 !important; /* Sand 700 */
  border: 1px solid #b25121 !important;
}

.message-container-agent .typing {
  font-size: 14px !important;
}

/* Chat Layout */
#start-chat-button,
#send-survey-button {
  bottom: 85px !important;
}

.input-message-div {
  position: absolute !important;
  flex-wrap: wrap !important;
  justify-content: right !important;
  bottom: 55px !important;
}

.input-message-div textarea {
  margin: 0 10px 10px !important;
  width: 100% !important;
  height: 75px !important;
  font-family: 'Lato', sans-serif !important;
}

/* Minimize Button */
#five9-minimize-button {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding-right: 8px !important;
  border-radius: 0.5rem 0.5rem 0rem 0rem !important;
  background-image: url('/themes/custom/ergosb/assets/images/cs-logo-white.png') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 108px auto !important; /* Adjust size as needed */
}

#five9-minimize-button .five9-icon,
#five9-minimize-button .five9-text {
  display: none !important;
}

#five9-minimize-icon,
#five9-popout-button {
  display: block !important;
  margin-left: 8px !important;
}

/* Maximize Button */
#five9-maximize-button {
  position: fixed !important;
  bottom: 3% !important;
  right: 3% !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background-color: #b25121 !important;
  box-shadow: 0 2px 10px rgba(55, 55, 55, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  z-index: 9999 !important;
}

#five9-maximize-button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(55, 55, 55, 0.3) !important;
  background-color: #67200e !important;
}

#five9-maximize-button .five9-icon {
  width: 24px !important;
  height: 24px !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
}

#five9-maximize-button .five9-text {
  display: none !important;
}

/* Close Buttons */
#terminate-connecting-button,
#terminate-conversation-button,
#close-button {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  position: absolute !important;
  visibility: collapse !important;
  height: 10px !important;
  width: 10px !important;
  top: 0 !important;
  right: 0 !important;
}

#terminate-connecting-button::before,
#terminate-connecting-button::after,
#terminate-conversation-button::before,
#terminate-conversation-button::after,
#close-button::before,
#close-button::after {
  position: absolute !important;
  content: '' !important;
  width: 50% !important;
  height: 2px !important;
  background-color: #fffbf3 !important;
  visibility: visible !important;
  background-image: none !important;
}

#terminate-connecting-button::before,
#terminate-conversation-button::before,
#close-button::before {
  transform: rotate(45deg) !important;
}

#terminate-connecting-button::after,
#terminate-conversation-button::after,
#close-button::after {
  transform: rotate(-45deg) !important;
}

/* Popup Screen */
.ui-popup-screen.in {
  background-color: #fffbf3 !important;
  opacity: 1 !important;
  height: auto !important;
}

/* Sentiment Table */
.sentiment-table label.sentiment {
  display: none !important;
}

.five9-frame {
  right: 1% !important;
}