/* Ask AI Button Container */
.sd-faq-ask-ai-container {
    position: fixed;
    z-index: 10000;
    top: 10px;
    right: 10px;
    pointer-events: auto;
}

.sd-faq-ask-ai-btn {
    background-color: #2b4459;
    border: 1px solid #718096;
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    outline: none;
    margin-top: -30px;
    padding: 0px 4px 0px 20px;
    min-width: 165px;
    max-width: 240px;
    line-height: 1;
    z-index: 2000;
}

.sd-faq-ask-ai-btn:hover {
    background-color:  #2b4459df;
}

.sd-faq-ask-ai-btn:active {
    transform: scale(0.95);
    cursor: pointer;
}


.sd-faq-ask-ai-arrow {
    font-size: 30px;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.sd-faq-ask-ai-btn.active .sd-faq-ask-ai-arrow {
    transform: rotate(180deg);
    top: 1px;
}

/* Dropdown Menu */
.sd-faq-ai-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #2b4459;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    max-width: 400px;
    z-index: 1000;
    overflow: hidden;
    padding: 24px;
}

.sd-faq-ai-dropdown.show {
    display: block;
}

.sd-faq-ai-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    border: 1px solid #718096;
    border-radius: 6px;
    width: 100%;
}

.sd-faq-ai-dropdown {
    min-width: 280px;
    max-width: calc(100vw - 40px);
    right: 0;
}

.sd-faq-ai-dropdown-item:last-of-type {
    margin-bottom: 0;
}

.sd-faq-ai-dropdown-item:hover {
    background-color: #223647;
    transform: translateY(-1px);
}

.sd-faq-ai-dropdown-item:active {
    transform: translateY(0);
}

.sd-faq-ai-dropdown-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.sd-faq-ai-dropdown-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sd-faq-ai-dropdown-content {
    flex: 1;
    min-width: 0;
}

.sd-faq-ai-dropdown-title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.sd-faq-ai-dropdown-desc {
    font-size: 12px;
    color: #666666;
    line-height: 1.3;
}

.sd-faq-ai-dropdown-external {
    font-size: 14px;
    color: #999999;
    flex-shrink: 0;
    opacity: 0.6;
}

.sd-faq-ai-dropdown-title-header {
    color: #ffffff;
    font-size: 17px;
    font-weight: normal;
    text-align: center;
    margin: 0 0 16px 0;
    padding: 0;
}

/* Notification */
.sd-faq-ai-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4a5568;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 300px;
    font-size: 14px;
}

.sd-faq-ai-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Design */
@media (min-width: 600px) {
    .sd-faq-ask-ai-container {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 10000;
        pointer-events: auto;
    }

    .sd-faq-ask-ai-btn {
        font-size: 15px;
    }
}