#phoneops-chat-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #000;
  color: #fff;
  padding: 14px 22px 14px 32px;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-weight: bold;
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: fixed;
}

#phoneops-chat-bubble .phoneops-badge-corner {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #000;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: bold;
  transform: rotate(-45deg);
  border-radius: 2px;
  font-family: Georgia, serif;
}

#phoneops-chat-bubble .phoneops-badge-text {
  font-size: 15px;
  letter-spacing: 0.5px;
  font-family: Georgia, serif;
  text-align: center;
}

#phoneops-chat-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 380px;
  height: 540px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  animation: phoneops-slide-up 0.25s ease-out;
}

@keyframes phoneops-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#phoneops-chat-header {
  background: linear-gradient(135deg, #0f62fe, #1a73e8);
  color: white;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

#phoneops-chat-header::before {
  content: "●";
  font-size: 10px;
  color: #4cff9f;
}

#phoneops-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  font-size: 15px;
  background: #f5f7fb;
}

.phoneops-msg {
  margin-bottom: 10px;
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 82%;
  line-height: 1.4;
  white-space: pre-line;
}

.phoneops-user {
  background: #dbe7ff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.phoneops-bot {
  background: #ffffff;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

#phoneops-chat-input-area {
  display: flex;
  border-top: 1px solid #dde1ea;
  background: #ffffff;
}

#phoneops-chat-input {
  flex: 1;
  padding: 11px 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

#phoneops-chat-send {
  background: #0f62fe;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

#phoneops-typing {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  margin-left: 4px;
  display: none;
}

/* Close Button Styling */
#phoneops-chat-header {
  position: relative;
}

#phoneops-chat-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#phoneops-chat-close:hover {
  opacity: 1;
}
