#ai-faq-chat-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 20px;
    cursor: pointer;
    z-index: 9999;
    background: linear-gradient(180deg, #073948 0%, #022631 100%);
    box-shadow: 0 18px 34px rgba(0, 20, 28, 0.45), inset 0 0 0 1px rgba(26, 177, 216, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#ai-faq-chat-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(0, 20, 28, 0.55), inset 0 0 0 1px rgba(26, 177, 216, 0.65);
}

.ai-faq-bubble-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.ai-faq-bubble-text {
    display: none;
}

/* Container - Airport Briefing app style */

#welcome-msg {
    padding: 15px 15px 0px 15px;
}



#ai-faq-chat-container {
    position: fixed;
    right: 24px;
    bottom: 112px;
    width: 420px;
    height: 620px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 12, 18, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transform-origin: bottom right;
    animation: ai-faq-pop-in 0.22s ease-out;
    border: 1px solid rgba(0, 165, 210, 0.38);
}

#ai-faq-chat-container.ai-faq-minimized {
    display: none;
}

@keyframes ai-faq-pop-in {
    from {
        transform: scale(0.94) translateY(10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Header */

#ai-faq-chat-header {
    min-height: 78px;
    background: linear-gradient(90deg, #052f3c 0%, #00242f 60%, #031820 100%);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(12, 161, 202, 0.35);
    position: relative;
}

#ai-faq-chat-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f05a28, #00a6d6, transparent);
    opacity: 0.9;
}

.ai-faq-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-faq-header-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0, 46, 61, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 166, 214, 0.45);
    overflow: hidden;
    flex: 0 0 52px;
}

.ai-faq-header-avatar-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.ai-faq-header-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ai-faq-header-title {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-faq-header-subtitle {
    font-size: 12px;
    line-height: 1.25;
    color: #27c1ea;
    font-weight: 600;
}

#ai-faq-chat-header button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.92);
    font-size: 28px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}

#ai-faq-chat-header button:hover {
    color: #f05a28;
    transform: scale(1.06);
}

/* Chat box */

#ai-faq-chat-box {
    padding: 18px 16px 12px;
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    position: relative;
}

#ai-faq-chat-box::-webkit-scrollbar {
    width: 7px;
}

#ai-faq-chat-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

#ai-faq-chat-box::-webkit-scrollbar-thumb {
    background: #00a6d6;
    border-radius: 999px;
}

/* Input */

#ai-faq-chat-input {
    border-top: 1px solid rgba(0, 166, 214, 0.3);
    padding: 13px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: #ffffff;
}

#ai-faq-user-message {
    min-height: 46px;
    max-height: 120px;
    flex: 1;
    resize: none;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 166, 214, 0.42);
    font-size: 14px;
    line-height: 1.42;
    color: #e9fbff;
    background: rgba(0, 38, 50, 0.95);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#ai-faq-user-message::placeholder {
    color: rgba(207, 237, 244, 0.58);
}

#ai-faq-user-message:focus {
    border-color: #00a6d6;
    box-shadow: 0 0 0 2px rgba(0, 166, 214, 0.18);
}

#ai-faq-send-btn {
    height: 46px;
    width: 52px;
    border-radius: 4px;
    border: 1px solid rgba(240, 90, 40, 0.65);
    background: linear-gradient(180deg, #FF4001, #FF4001);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 12px 24px rgba(240, 90, 40, 0.22);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

#ai-faq-send-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

#ai-faq-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(240, 90, 40, 0.32);
}

#ai-faq-send-btn:active {
    transform: translateY(0);
}

/* Messages */

.ai-faq-msg {
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.48;
    max-width: 82%;
    clear: both;
    word-wrap: break-word;
    backdrop-filter: blur(5px);
}

.ai-faq-msg-user {
        background: linear-gradient(180deg, #e0e2e3, #ededed);
    color: #000000;
    margin-left: auto;
    border: 1px solid rgb(255 255 255 / 55%);
    box-shadow: 0 10px 22px rgb(0 30 40 / 38%);
}

.ai-faq-msg-bot {
    background: rgba(2, 23, 31, 0.9);
    color: #e9fbff;
    margin-right: auto;
    border: 1px solid rgba(0, 166, 214, 0.26);
    box-shadow: 0 10px 22px rgba(0, 8, 12, 0.32);
}

.ai-faq-bot-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-faq-bot-row .ai-faq-msg-bot {
    margin-bottom: 0;
}

.ai-faq-msg-avatar {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 36px;
    border-radius: 8px;
    background: rgba(0, 38, 50, 0.95);
    box-shadow: inset 0 0 0 1px rgba(0, 166, 214, 0.35);
    padding: 5px;
}

/* Typing indicator */

.ai-faq-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 58px;
}

.ai-faq-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #00a6d6;
    animation: ai-faq-typing 1s infinite ease-in-out;
}

.ai-faq-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-faq-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ai-faq-typing {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Small screens */

@media (max-width: 640px) {
    #ai-faq-chat-container {
        right: 12px;
        left: 12px;
        bottom: 104px;
        width: auto;
        height: 72vh;
        max-height: 72vh;
    }

    #ai-faq-chat-bubble {
        right: 16px;
        bottom: 16px;
        width: 68px;
        height: 68px;
    }

    .ai-faq-bubble-icon-img {
        width: 48px;
        height: 48px;
    }

    .ai-faq-header-title {
        font-size: 16px;
    }
}


/* Clean chatbot body without background image/pattern */
#ai-faq-chat-container,
#ai-faq-chat-box,
#ai-faq-chat-input {
    background-image: none !important;
}

#ai-faq-chat-container {
    background: #ffffff !important;
}

#ai-faq-chat-box {
    background: #ffffff !important;
}

#ai-faq-chat-input {
    background: #ffffff !important;
}


#ai-faq-suggestions {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-suggestion {
    background: #eef2ff;
    border: none;
    padding: 6px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
}

.ai-suggestion:hover {
    background: #e0e7ff;
}

#ai-faq-suggestions-wrap {
    border-bottom: 1px solid rgba(0, 166, 214, 0.18);
}

#ai-faq-suggestions-toggle {
    display: block;
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    padding: 4px 14px 8px;
    font-size: 11px;
    color: #00a6d6;
    cursor: pointer;
    transition: color 0.15s ease;
}

#ai-faq-suggestions-toggle:hover {
    color: #f05a28;
    text-decoration: underline;
}





/* Responsive improvements */

@media (max-width: 1024px) {
    #ai-faq-chat-container {
        width: 390px;
        height: 580px;
        right: 18px;
        bottom: 104px;
    }
}

@media (max-width: 768px) {
    #ai-faq-chat-container {
        width: 360px;
        height: 560px;
        right: 16px;
        bottom: 96px;
        max-height: calc(100vh - 120px);
    }

    #ai-faq-chat-header {
        min-height: 70px;
        padding: 12px 14px;
    }

    .ai-faq-header-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .ai-faq-header-avatar-img {
        width: 36px;
        height: 36px;
    }

    .ai-faq-header-title {
        font-size: 15px;
    }

    .ai-faq-header-subtitle {
        font-size: 11px;
    }

    #ai-faq-chat-box {
        padding: 14px 12px 10px;
    }

    .ai-faq-msg {
        max-width: 88%;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    #ai-faq-chat-container {
        left: 10px;
        right: 10px;
        bottom: 92px;
        width: auto;
        height: 72vh;
        max-height: 72vh;
        border-radius: 10px;
    }

    #ai-faq-chat-bubble {
        right: 14px;
        bottom: 14px;
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .ai-faq-bubble-icon-img {
        width: 46px;
        height: 46px;
    }

    #ai-faq-user-message {
        min-height: 42px;
        max-height: 90px;
        font-size: 13px;
        padding: 10px 12px;
    }

    #ai-faq-send-btn {
        width: 46px;
        height: 42px;
    }

    #ai-faq-suggestions {
        padding: 8px 10px;
        max-height: 96px;
        overflow-y: auto;
    }

    .ai-suggestion {
        font-size: 11px;
        padding: 6px 9px;
    }
}

@media (max-width: 420px) {
    #ai-faq-chat-container {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #ai-faq-chat-bubble {
        width: 60px;
        height: 60px;
    }

    #ai-faq-chat-header {
        min-height: 68px;
    }

    .ai-faq-header-title {
        font-size: 14px;
    }

    .ai-faq-header-subtitle {
        font-size: 10px;
    }

    .ai-faq-msg-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .ai-faq-msg {
        max-width: 90%;
    }
}