/* 自定义 CSS */

/* 浮动按钮样式：用作聊天按钮 */
#floating-button {
  position: fixed !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: #0073aa !important;
  color: white;
  border: none;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 1000;
  font-size: 24px !important;
}
#floating-button:hover {
  background-color: #005177;
}

/* 聊天遮罩 */
#chat-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

/* 聊天弹窗 */
#chat-popup {
  position: relative;
  max-width: none !important;
  max-height: none !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
  background: #fff;
  z-index: 1000;
  overflow: hidden;
}
#chat-popup iframe {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none;
  transform: none !important;
  transform-origin: center center !important;
}

/* 弹窗头部、输入区域 */
.chat-header {
  background-color: #0073aa;
  color: white;
  padding: 10px;
  text-align: center;
}
.chat-body {
  padding: 10px;
  height: 300px;
  overflow-y: auto;
}
.chat-footer {
  padding: 10px;
  border-top: 1px solid #ccc;
}
.chat-input {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* chat-flyout-button 样式 */
html, body, #chat-overlay, #chat-popup {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}