.elementor-3090 .elementor-element.elementor-element-3d1be2ef{--display:flex;--padding-top:40px;--padding-bottom:40px;--padding-left:0px;--padding-right:0px;}:root{--page-title-display:none;}/* Start custom CSS for shortcode, class: .elementor-element-18df83ea *//* ===================================
   CHATBOT INLINE CONTAINER - KHUNG CHAT NHÚNG VÀO TRANG
   =================================== */

.mwai-chatbot-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
}

.mwai-chat {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* ===================================
   HEADER - KHÔNG CẦN VÌ INLINE
   =================================== */

.mwai-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px 28px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mwai-header-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mwai-header-info {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ===================================
   WINDOW BOX & BODY - KHUNG CHAT
   =================================== */

.mwai-window-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
}

.mwai-body {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 32px 28px;
  scroll-behavior: smooth;
  min-height: 500px;
  max-height: 700px;
}

/* Custom Scrollbar - Đẹp hơn cho inline */
.mwai-body::-webkit-scrollbar {
  width: 8px;
}

.mwai-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
  margin: 8px 0;
}

.mwai-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mwai-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5568d3 0%, #653a8b 100%);
}

/* ===================================
   CONVERSATION - KHUNG HỘI THOẠI
   =================================== */

.mwai-conversation {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* ===================================
   MESSAGE REPLIES - TIN NHẮN
   =================================== */

.mwai-reply {
  display: flex;
  gap: 16px;
  animation: messageSlideIn 0.4s ease-out;
  position: relative;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AI Message Styling - Căn trái */
.mwai-reply.mwai-ai {
  align-items: flex-start;
  justify-content: flex-start;
}

.mwai-reply.mwai-ai .mwai-name {
  order: 1;
}

.mwai-reply.mwai-ai > div:not(.mwai-name) {
  order: 2;
  background: white;
  border-radius: 20px 20px 20px 4px;
  padding: 18px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 70%;
  border: 1px solid #f0f0f0;
  position: relative;
}

.mwai-reply.mwai-ai > div:not(.mwai-name)::before {
  content: '';
  position: absolute;
  left: -8px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent white transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.05));
}

/* User Message Styling - Căn phải */
.mwai-reply.mwai-user {
  align-items: flex-start;
  justify-content: flex-end;
}

.mwai-reply.mwai-user .mwai-name {
  order: 2;
}

.mwai-reply.mwai-user > div:not(.mwai-name) {
  order: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px 20px 4px 20px;
  padding: 18px 24px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  max-width: 70%;
  position: relative;
}

.mwai-reply.mwai-user > div:not(.mwai-name)::before {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent #764ba2 transparent;
}

/* ===================================
   AVATAR - ẢNH ĐẠI DIỆN
   =================================== */

.mwai-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mwai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  border: 3px solid white;
}

.mwai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Avatar/Name */
.mwai-name-text {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.25);
  border: 3px solid white;
  text-transform: uppercase;
}

/* ===================================
   TEXT CONTENT - NỘI DUNG TIN NHẮN
   =================================== */

.mwai-text {
  font-size: 15px;
  line-height: 1.7;
  word-wrap: break-word;
}

.mwai-text p {
  margin: 0 0 12px 0;
}

.mwai-text p:last-child {
  margin-bottom: 0;
}

.mwai-text strong {
  font-weight: 600;
  color: #667eea;
}

.mwai-reply.mwai-user .mwai-text strong {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.mwai-text img.emoji {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
  margin: 0 2px;
}

/* Code blocks trong tin nhắn */
.mwai-text code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.mwai-reply.mwai-user .mwai-text code {
  background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   REPLY ACTIONS - THAO TÁC TIN NHẮN
   =================================== */

.mwai-reply-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mwai-reply:hover .mwai-reply-actions:not(.mwai-hidden) {
  opacity: 1;
}

.mwai-reply-actions.mwai-hidden {
  display: none;
}

.mwai-download-button,
.mwai-copy-button,
.mwai-share-button {
  background: rgba(102, 126, 234, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.mwai-download-button:hover,
.mwai-copy-button:hover,
.mwai-share-button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.mwai-download-button svg,
.mwai-copy-button svg,
.mwai-share-button svg {
  width: 18px;
  height: 18px;
  fill: #667eea;
}

/* Tooltip cho actions */
.mwai-download-button::after,
.mwai-copy-button::after,
.mwai-share-button::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #2d3748;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mwai-download-button:hover::after,
.mwai-copy-button:hover::after,
.mwai-share-button:hover::after {
  opacity: 1;
}

/* ===================================
   INPUT AREA - KHUNG NHẬP LIỆU
   =================================== */

.mwai-input {
  background: white;
  padding: 24px 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.mwai-input-text {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 28px;
  padding: 12px 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-height: 56px;
}

.mwai-input-text:focus-within {
  background: white;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.mwai-input-text textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  font-family: inherit;
  color: #2d3748;
  max-height: 150px;
  padding: 4px 0;
}

.mwai-input-text textarea::placeholder {
  color: #a0aec0;
  font-style: italic;
}

/* File Upload Button in Input */
.mwai-input-text .mwai-file-upload {
  margin-right: 12px;
  position: relative;
}

.mwai-file-upload-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: transparent;
}

.mwai-file-upload-icon:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: scale(1.1);
}

.mwai-file-upload-icon svg {
  width: 20px;
  height: 20px;
  stroke: #667eea;
}

/* File upload progress */
.mwai-file-upload-progress {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #667eea;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  display: none;
}

.mwai-file-upload-icon.mwai-uploading .mwai-file-upload-progress {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Submit Button - NỔI BẬT HƠN */
.mwai-input-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mwai-input-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mwai-input-submit:active {
  transform: translateY(-1px);
}

.mwai-input-submit:not(.mwai-has-content),
.mwai-input-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Icon trong submit button */
.mwai-input-submit::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.3s ease;
}

.mwai-input-submit:hover::after {
  transform: translateX(4px);
}

/* ===================================
   FOOTER - CHÂN TRANG
   =================================== */

.mwai-footer {
  background: #f8f9fa;
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mwai-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mwai-footer .mwai-file-upload-icon.mwai-lucide {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.mwai-footer .mwai-file-upload-icon.mwai-lucide:hover {
  background: #667eea;
  border-color: #667eea;
  transform: scale(1.05);
}

.mwai-footer .mwai-file-upload-icon.mwai-lucide:hover svg {
  stroke: white;
}

.mwai-footer .mwai-file-upload-icon svg {
  width: 20px;
  height: 20px;
  stroke: #667eea;
  transition: stroke 0.3s ease;
}

/* Footer text/info */
.mwai-footer-info {
  font-size: 12px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mwai-footer-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mwai-footer-info a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ===================================
   LOADING/TYPING INDICATOR
   =================================== */

.mwai-typing-indicator {
  display: flex;
  gap: 6px;
  padding: 16px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  width: fit-content;
}

.mwai-typing-indicator span {
  width: 10px;
  height: 10px;
  background: #cbd5e0;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.mwai-typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
  background: #667eea;
}

.mwai-typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
  background: #764ba2;
}

.mwai-typing-indicator span:nth-child(3) {
  background: #9f7aea;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-12px);
  }
}

/* ===================================
   WELCOME MESSAGE - TIN NHẮN CHÀO MỪNG
   =================================== */

.mwai-welcome-message {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
}

.mwai-welcome-message h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mwai-welcome-message p {
  font-size: 15px;
  line-height: 1.6;
}

/* ===================================
   SUGGESTED PROMPTS - GỢI Ý CÂU HỎI
   =================================== */

.mwai-suggested-prompts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.mwai-prompt-button {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 14px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mwai-prompt-button:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.mwai-prompt-button::before {
  content: '💬';
  font-size: 20px;
}

/* ===================================
   RESPONSIVE - GIAO DIỆN RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .mwai-chatbot-container {
    padding: 12px;
  }
  
  .mwai-chat {
    border-radius: 12px;
  }
  
  .mwai-body {
    padding: 20px 16px;
    min-height: 400px;
  }
  
  .mwai-reply.mwai-ai > div:not(.mwai-name),
  .mwai-reply.mwai-user > div:not(.mwai-name) {
    max-width: 85%;
    padding: 14px 18px;
  }
  
  .mwai-avatar,
  .mwai-name-text {
    width: 36px;
    height: 36px;
  }
  
  .mwai-input {
    padding: 16px;
  }
  
  .mwai-input-submit {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 48px;
  }
  
  .mwai-suggested-prompts {
    grid-template-columns: 1fr;
  }
  
  .mwai-footer {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .mwai-window-box {
    min-height: 500px;
  }
  
  .mwai-body {
    min-height: 350px;
  }
  
  .mwai-text {
    font-size: 14px;
  }
  
  .mwai-reply.mwai-ai > div:not(.mwai-name),
  .mwai-reply.mwai-user > div:not(.mwai-name) {
    max-width: 90%;
  }
  
  .mwai-input-submit span {
    display: none;
  }
  
  .mwai-input-submit {
    min-width: 48px;
    padding: 12px;
  }
}

/* ===================================
   ACCESSIBILITY - KHẢ NĂNG TRUY CẬP
   =================================== */

/* Focus states */
button:focus-visible,
textarea:focus-visible,
.mwai-file-upload-icon:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .mwai-chat {
    border: 2px solid currentColor;
  }
  
  .mwai-reply.mwai-ai > div:not(.mwai-name),
  .mwai-reply.mwai-user > div:not(.mwai-name) {
    border: 2px solid currentColor;
  }
}

/* ===================================
   PRINT STYLES - IN ẤN
   =================================== */

@media print {
  .mwai-input,
  .mwai-footer,
  .mwai-reply-actions {
    display: none !important;
  }
  
  .mwai-chat {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .mwai-body {
    max-height: none;
    overflow: visible;
  }
}

/* ===================================
   CUSTOM UTILITIES - TIỆN ÍCH BỔ SUNG
   =================================== */

/* Fade in animation for initial load */
.mwai-chat.mwai-loaded {
  animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Error state */
.mwai-error-message {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  border-left: 4px solid #c53030;
  font-size: 14px;
}

/* Success state */
.mwai-success-message {
  background: #c6f6d5;
  color: #22543d;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  border-left: 4px solid #22543d;
  font-size: 14px;
}/* End custom CSS */