/**
 * MAC Chatbot Styles
 */

/* Container */
.mac-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
/* Overlay / backdrop cho Modal Dialog effect */
/* .mac-chatbot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.40);
    z-index: 9998;
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
} */

/* Language Selector (hiển thị trong messages) */
.mac-chatbot-language-content {
    text-align: center;
    padding: 20px;
}

.mac-chatbot-language-on-home {
    margin-bottom: 12px;
}

/* Khi đang chọn ngôn ngữ, ẩn toàn bộ nội dung home bên dưới selector */
.mac-chatbot-screen-home.mac-chatbot-language-lock .mac-chatbot-home-heading,
.mac-chatbot-screen-home.mac-chatbot-language-lock .mac-chatbot-home-description,
.mac-chatbot-screen-home.mac-chatbot-language-lock .mac-chatbot-home-content,
.mac-chatbot-screen-home.mac-chatbot-language-lock .mac-chatbot-home-links,
.mac-chatbot-screen-home.mac-chatbot-language-lock .mac-chatbot-home-quick3 {
    display: none !important;
}

.mac-chatbot-language-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.mac-chatbot-language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.mac-chatbot-lang-btn {
    padding: 12px 20px;
    background-color: #ffffff !important;
    border: 2px solid var(--mac-chatbot-accent,#0073aa) !important;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--mac-chatbot-accent,#0073aa) !important;
    transition: all 0.3s ease;
    width: 100%;
}

.mac-chatbot-lang-btn:hover {
    background-color: var(--mac-chatbot-accent,#0073aa) !important;
    color: var(--mac-chatbot-accent-text,#ffffff) !important;
    border-color: var(--mac-chatbot-accent,#0073aa) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--mac-chatbot-accent,#0073aa) !important;
}

.mac-chatbot-lang-btn:active {
    transform: translateY(0);
}

/* Chat Window (Modal Dialog) */
.mac-chatbot-chat-window {
    width: 380px;
    height: 600px;
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* animation nhẹ khi mở */
    animation: macChatbotSlideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes macChatbotSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile full-screen */
@media (max-width: 480px) {
    .mac-chatbot-chat-window {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-bottom: 0;
    }
    .admin-bar .mac-chatbot-chat-window {
        top: 46px;
        height: calc(100dvh - 46px);
    }
    .mac-chatbot-container {
        bottom: 16px;
        right: 16px;
    }
}

.mac-chatbot-chat-window.mac-chatbot-minimized {
    height: 60px;
    cursor: pointer;
}

.mac-chatbot-chat-window.mac-chatbot-minimized .mac-chatbot-header {
    cursor: pointer;
}

/* Header */
.mac-chatbot-header {
    background-color: var(--mac-chatbot-accent,#0073aa);
    color: var(--mac-chatbot-accent-text,#ffffff);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mac-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mac-chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mac-chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mac-chatbot-info {
    flex: 1;
}

.mac-chatbot-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mac-chatbot-status {
    font-size: 12px;
    opacity: 0.9;
}

.mac-chatbot-header-actions {
    display: flex;
    gap: 8px;
}
.mac-chatbot-header-actions svg ,
.mac-chatbot-header-actions svg path {
    fill: var(--mac-chatbot-accent-text);

}
.mac-chatbot-minimize,
.mac-chatbot-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mac-chatbot-minimize:hover,
.mac-chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Icons */
.mac-chatbot-icon-minus::before {
    content: "−";
    font-size: 20px;
    line-height: 1;
}
.mac-chatbot-icon-send {
    height:20px
}

.mac-chatbot-icon-chat {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mac-chatbot-icon-chat-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.mac-chatbot-icon-chat-svg svg {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
}

.mac-chatbot-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 74px);
}

.mac-chatbot-screen {
    flex: 1;
    display: none;
    min-height: 0;
}

.mac-chatbot-screen-chat {
    flex-direction: column;
    min-height: 0;
}

.mac-chatbot-screen-home {
    display: block;
    padding: 16px;
    background: #f7f9fc;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mac-chatbot-home-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.mac-chatbot-home-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.mac-chatbot-home-content {
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
}

/* Home: external link cards (Intercom-style row) */
.mac-chatbot-home-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.mac-chatbot-home-links:empty {
    display: none !important;
}

a.mac-chatbot-home-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    border: 1px solid #e2e6ee;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a.mac-chatbot-home-link-card:hover {
    border-color: var(--mac-chatbot-accent, #0073aa);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.mac-chatbot-home-link-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    min-height: 44px;
    box-sizing: border-box;
}

.mac-chatbot-home-link-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    flex: 1;
    text-align: left;
}

a.mac-chatbot-home-link-card:hover .mac-chatbot-home-link-label {
    color: var(--mac-chatbot-accent, #0073aa);
}

.mac-chatbot-home-link-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mac-chatbot-accent, #0073aa);
}

.mac-chatbot-home-link-icon svg {
    display: block;
}

.mac-chatbot-home-quick-title {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin: 10px 0 8px;
}

.mac-chatbot-home-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mac-chatbot-home-quick-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e6e6e6;
    cursor: pointer;
}

.mac-chatbot-home-quick-item:hover {
    background: var(--mac-chatbot-accent, #0073aa);
    border-color: var(--mac-chatbot-accent, #0073aa);
    color: var(--mac-chatbot-accent-text, #fff);
}

.mac-chatbot-bottom-nav {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.mac-chatbot-nav-btn {
    flex: 1;
    border: 1px solid #e0e0e0;
    background-color: #fff !important;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--mac-chatbot-accent, #0073aa) !important;
    stroke: var(--mac-chatbot-accent, #0073aa) !important;
    fill: var(--mac-chatbot-accent, #0073aa) !important;
    border-color: var(--mac-chatbot-accent, #0073aa) !important;
}
.mac-chatbot-nav-btn.is-active {
	background-color: var(--mac-chatbot-accent, #0073aa) !important;
	color: var(--mac-chatbot-accent-text, #fff) !important;
	pointer-events:none;
}
.mac-chatbot-back:hover, 
.mac-chatbot-nav-btn:hover {
    background-color: var(--mac-chatbot-accent-hover, #0073aa) !important;
    border-color: var(--mac-chatbot-accent-hover, #0073aa) !important;
    color: var(--mac-chatbot-accent-text-hover, #fff) !important;
    border-color: var(--mac-chatbot-accent-hover, #0073aa) !important;
}
.mac-chatbot-nav-btn:hover svg {
    stroke: var(--mac-chatbot-accent-text-hover, #fff) !important;
    fill: var(--mac-chatbot-accent-text-hover, #fff) !important;
}
.mac-chatbot-nav-btn.is-active {
    background-color: var(--mac-chatbot-accent, #0073aa);
    border-color: var(--mac-chatbot-accent, #0073aa);
    color: var(--mac-chatbot-accent-text, #fff);
}
.mac-chatbot-nav-btn.is-active svg {
    fill: var(--mac-chatbot-accent-text, #fff);
}
.mac-chatbot-nav-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.mac-chatbot-back {
    background: transparent !important;
    border: none;
    color: #333 !important;
    cursor: pointer;
    padding: 0 3px;
    font-size: 18px;
}
.mac-chatbot-back:hover {
    background: transparent !important;
    color: #333 !important;
}
/* Messages Area */
.mac-chatbot-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mac-chatbot-message {
    display: flex;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mac-chatbot-message.mac-chatbot-user {
    justify-content: flex-end;
}

.mac-chatbot-message.mac-chatbot-bot {
    justify-content: flex-start;
}

.mac-chatbot-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.5;
}

.mac-chatbot-message-content a:not(.mac-chatbot-menu-link)  {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--mac-chatbot-accent,#0073aa);
}

.mac-chatbot-message.mac-chatbot-user .mac-chatbot-message-content {
    background-color: var(--mac-chatbot-accent,#0073aa);
    color: var(--mac-chatbot-accent-text,#ffffff);
    border-bottom-right-radius: 4px;
}

.mac-chatbot-message.mac-chatbot-bot .mac-chatbot-message-content {
    background-color: #ffffff;
    color: #333333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* Typing Indicator */
.mac-chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.mac-chatbot-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    animation: typing 1.4s infinite;
}

.mac-chatbot-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.mac-chatbot-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Suggestions */
.mac-chatbot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.mac-chatbot-suggestion-btn {
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.mac-chatbot-suggestion-btn:hover {
    background-color: var(--mac-chatbot-accent-hover,#0073aa);
    border-color: var(--mac-chatbot-accent-hover,#f0f0f0);
    color: var(--mac-chatbot-accent-text-hover,#f0f0f0);
}

/* Menu Options (quick-reply cho danh mục dịch vụ) — ul > li > a */
.mac-chatbot-menu-options-wrap {
    margin-top: 8px;
}

.mac-chatbot-menu-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px 4px;
}

.mac-chatbot-menu-options--list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mac-chatbot-menu-options--list li {
    margin: 0;
    padding: 0;
}

.mac-chatbot-menu-link {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--mac-chatbot-accent,#0073aa) !important;
    border: 1px solid var(--mac-chatbot-accent-text,#f7f9fc) !important;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--mac-chatbot-accent-text,#f7f9fc) !important;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.mac-chatbot-menu-link:hover {
    background-color: var(--mac-chatbot-accent-hover,#0073aa) !important;
    color: var(--mac-chatbot-accent-text-hover,#ffffff) !important;
    border-color: var(--mac-chatbot-accent-hover,#0073aa) !important;
}

.mac-chatbot-menu-footer {
    margin: 10px 0 0;
    font-size: 13px;
    color: #555;
}

.mac-chatbot-menu-btn {
    padding: 8px 14px;
    background-color: var(--mac-chatbot-accent,#0073aa) !important;
    border: 1px solid var(--mac-chatbot-accent-text,#f7f9fc) !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: var(--mac-chatbot-accent-text,#f7f9fc) !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}

.mac-chatbot-menu-btn:hover {
    background-color: var(--mac-chatbot-accent-hover,#0073aa) !important;
    color: var(--mac-chatbot-accent-text-hover,#ffffff) !important;
    border-color: var(--mac-chatbot-accent-hover,#0073aa) !important;
}

/* Menu options bên trong related */

.mac-chatbot-related .mac-chatbot-menu-options--list {
    padding: 0;
}

.mac-chatbot-lang-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Related Questions */
.mac-chatbot-related {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.mac-chatbot-related-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mac-chatbot-related-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mac-chatbot-related-item {
    padding: 8px 12px;
    background-color: var(--mac-chatbot-accent,#0073aa);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--mac-chatbot-accent-text,#f9f9f9);
    transition: background-color 0.2s;
}

.mac-chatbot-related-item:hover {
    background-color: var(--mac-chatbot-accent-hover,#f0f0f0);
    color: var(--mac-chatbot-accent-text-hover,#0073aa);
}

.mac-chatbot-related-loading-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 0;
    color: #666;
    font-size: 13px;
}

.mac-chatbot-loading-dot {
    display: inline-block;
    width: 10px;
    text-align: center;
    animation: macChatbotPulse 0.9s ease-in-out infinite;
}

@keyframes macChatbotPulse {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-1px); }
}


@media (max-width: 480px) {
    body.mac-chatbot-no-scroll {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
}
/* Quick Menu */
.mac-chatbot-quick-menu-wrap {
    padding: 6px 0;
}

.mac-chatbot-quick-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-direction: column;
    align-content: flex-end;
    align-items: end;
    text-align: right;
}

.mac-chatbot-quick-menu-item {
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--mac-chatbot-accent, #0073aa);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s;
    line-height: 1.4;
    width: fit-content;
}
.mac-chatbot-quick-menu-item::first-letter {
    text-transform: uppercase;
}
.mac-chatbot-quick-menu-item:hover {
    background-color: var(--mac-chatbot-accent, #0073aa);
    border-color: var(--mac-chatbot-accent, #0073aa);
    color: var(--mac-chatbot-accent-text, #ffffff);
}

.mac-chatbot-view-more-wrap {
    padding: 6px 0 2px;
    text-align: right;
}

.mac-chatbot-view-more-btn {
    border: none;
    color: var(--mac-chatbot-accent, #0073aa) !important;
    font-size: 13px !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 4px 8px;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
    transition: opacity 0.15s;
    text-align: right;
}

.mac-chatbot-view-more-btn:hover {
    opacity: 1;
}

.mac-chatbot-view-more-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.mac-chatbot-view-more-btn.is-loading::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: macChatbotSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes macChatbotSpin {
    to { transform: rotate(360deg); }
}

.mac-chatbot-back-to-menu-wrap {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    background-color: transparent !important;
    color: #333 !important;
}

.mac-chatbot-back-to-menu-btn {
    background: none !important;
    border: 1px solid var(--mac-chatbot-accent, #0073aa) !important;
    border-radius: 4px;
    color: var(--mac-chatbot-accent, #0073aa) !important;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 12px;
    transition: background-color 0.15s, color 0.15s;
}

/* .mac-chatbot-back-to-menu-btn:hover {
    background-color: var(--mac-chatbot-accent, #0073aa) !important;
    color: var(--mac-chatbot-accent-text, #ffffff) !important;
} */

/* iOS: tránh auto-zoom khi focus input */
@media (max-width: 768px) {
    #mac-chatbot-input,
    .mac-chatbot-input {
        font-size: 16px;
    }
}

/* Input Area */
.mac-chatbot-input-area {
    padding: 15px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mac-chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.mac-chatbot-input:focus {
    border-color: var(--mac-chatbot-accent,#0073aa);
}

.mac-chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--mac-chatbot-accent,#0073aa) !important;
    color: var(--mac-chatbot-accent-text,#ffffff) !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.mac-chatbot-send-btn:hover {
    background-color: var(--mac-chatbot-accent-hover,#005a87) !important;
    color: var(--mac-chatbot-accent-text-hover,#ffffff) !important;
}

.mac-chatbot-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Floating Button */
#mac-chatbot-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}
#mac-chatbot-toggle.mac-chatbot-toggle-btn:hover .mac-chatbot-icon-chat{
    color: var(--mac-chatbot-accent-text-hover) !important;
}
#mac-chatbot-toggle.mac-chatbot-toggle-btn:hover {
    background-color: var(--mac-chatbot-accent-hover) !important;
    color: var(--mac-chatbot-accent-text-hover) !important;
}
#mac-chatbot-widget.mac-chatbot-pos-left {
    align-items: flex-start;
    justify-content: flex-start;
}
.mac-chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--mac-chatbot-accent,#0073aa);
    color: var(--mac-chatbot-accent-text,#ffffff);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--mac-chatbot-accent,#0073aa);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mac-chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--mac-chatbot-accent-hover, var(--mac-chatbot-accent,#0073aa));
}


@media (max-width: 480px) {
    .mac-chatbot-toggle-btn.mac-chatbot-hidden {
        display: none !important;
    }
}
/* Đảm bảo chat window ẩn khi đóng */
.mac-chatbot-chat-window[style*="display: none"] {
    display: none !important;
}

/* Đảm bảo toggle button luôn hiển thị khi chat đóng */
.mac-chatbot-toggle-btn:not(.mac-chatbot-hidden) {
    display: flex !important;
}

/* Welcome Message */
.mac-chatbot-welcome {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mac-chatbot-welcome-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.mac-chatbot-welcome-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */

