/**
 * WPFAQBlock editor AI FAQ generator.
 *
 * @package WPFAQBlock
 * @since   2.0.0
 */

.wpfaqblock-editor-ai-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    width: 100%;
}

.wpfaqblock-editor-ai-box *,
.wpfaqblock-editor-ai-box *::before,
.wpfaqblock-editor-ai-box *::after {
    box-sizing: border-box;
}

#wpfaqblock-editor-ai .inside {
    overflow-x: hidden;
}

.wpfaqblock-editor-ai-box__intro {
    margin: 0;
    color: #50575e;
    font-size: 12px;
    line-height: 1.5;
}

.wpfaqblock-editor-ai-box__label {
    font-weight: 600;
}

.wpfaqblock-editor-ai-box__generate,
.wpfaqblock-editor-ai-box__save {
    display: flex;
    max-width: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.wpfaqblock-editor-ai-box .widefat,
.wpfaqblock-editor-ai-box select,
.wpfaqblock-editor-ai-box input[type="text"],
.wpfaqblock-editor-ai-box textarea {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.wpfaqblock-editor-ai-notice {
    border-left: 4px solid #72aee6;
    background: #f0f6fc;
    color: #1d2327;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
}

.wpfaqblock-editor-ai-notice[hidden],
.wpfaqblock-editor-ai-results[hidden] {
    display: none !important;
}

.wpfaqblock-editor-ai-notice.is-success {
    border-left-color: #00a32a;
    background: #f0f8f1;
}

.wpfaqblock-editor-ai-notice.is-error {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.wpfaqblock-editor-ai-notice.is-info {
    border-left-color: #72aee6;
}

.wpfaqblock-editor-ai-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpfaqblock-editor-ai-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.wpfaqblock-editor-ai-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    padding: 10px;
}

.wpfaqblock-editor-ai-item__check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.wpfaqblock-editor-ai-item__question,
.wpfaqblock-editor-ai-item__answer {
    font-size: 12px;
}
