/* =========================================================
   FAQ EDITOR
========================================================= */

.editor-block-icon.faq {
    background: #f3e8ff;
}

.faq-editor-list {
    display: grid;
    gap: 10px;

    margin-top: 14px;
}

.faq-editor-item {
    overflow: hidden;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.faq-editor-question {
    margin-bottom: 8px;
}

.faq-editor-answer {
    min-height: 85px;
}

.faq-item-actions {
    margin-top: 9px;

    display: flex;
    align-items: center;

    gap: 6px;
}

.faq-mini-button {
    min-width: 29px;
    min-height: 29px;

    padding: 0 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #5b5ce2;
    background: #f0efff;

    border: 1px solid #ddd9ff;
    border-radius: 8px;

    cursor: pointer;

    font-size: 8px;
    font-weight: 800;
}

.faq-mini-button.delete {
    color: #dc2626;
    background: #ffffff;

    border-color: #fecaca;
}

.faq-mini-button:disabled {
    color: #cbd5e1;
    background: #f8fafc;

    border-color: #edf1f5;

    cursor: not-allowed;
}

.faq-add-item {
    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid #edf1f5;
}


/* =========================================================
   FAQ EDITOR — UX V2 COMPACT MODE
========================================================= */

.editor-shell.is-enhanced
.faq-editor-item {
    padding: 0;
}

.faq-item-compact {
    width: 100%;
    padding: 12px 13px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 12px;
    align-items: center;

    color: inherit;
    background: transparent;

    border: 0;

    cursor: pointer;

    text-align: left;
}

.faq-item-compact:hover {
    background: #f1f5f9;
}

.faq-item-compact-copy {
    min-width: 0;
}

.faq-item-compact-question {
    display: block;

    overflow: hidden;

    color: #0f172a;

    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.faq-item-compact-answer {
    display: -webkit-box;

    margin-top: 4px;
    overflow: hidden;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.45;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.faq-item-compact-action {
    min-height: 30px;
    padding: 0 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #4338ca;
    background: #eef2ff;

    border: 1px solid #c7d2fe;
    border-radius: 8px;

    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.editor-shell.is-enhanced
.faq-editor-item
>
form {
    display: none;

    padding: 13px;

    border-top: 1px solid #e2e8f0;
}

.editor-shell.is-enhanced
.faq-editor-item.is-editing
>
form {
    display: block;
}

.editor-shell.is-enhanced
.faq-editor-item.is-editing
.faq-item-compact {
    background: #ffffff;
}

.editor-shell.is-enhanced
.faq-editor-item
>
.faq-item-actions {
    margin: 0;
    padding: 0 13px 11px;

    justify-content: flex-end;
}

.editor-shell.is-enhanced
.faq-editor-item.is-editing
>
.faq-item-actions {
    padding-top: 0;
}

.editor-shell.is-enhanced
.faq-editor-item
>
.faq-item-actions::before {
    content: "Order";

    margin-right: auto;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 750;
}


/* =========================================================
   PHONE PREVIEW
========================================================= */

.preview-faq-list {
    margin-top: 7px;

    display: grid;
    gap: 5px;
}

.preview-faq-item {
    padding: 7px;

    color: #334155;
    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    font-size: 6px;
    font-weight: 750;
}


/* =========================================================
   PUBLIC FAQ
========================================================= */

.public-faq-section {
    margin-top: 23px;

    text-align: left;
}

.public-faq-heading {
    margin-bottom: 11px;
}

.public-faq-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 15px;
    letter-spacing: -.02em;
}

.public-faq-heading p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 10px;
    line-height: 1.55;
}

.public-faq-list {
    display: grid;
    gap: 8px;
}

.public-faq-item {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    box-shadow:
        0 5px 16px
        rgba(15, 23, 42, .03);
}

.public-faq-item summary {
    position: relative;

    padding: 14px 42px 14px 14px;

    color: #0f172a;

    cursor: pointer;

    list-style: none;

    font-size: 10px;
    font-weight: 800;

    line-height: 1.45;
}

.public-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-faq-item summary::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 14px;

    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    color: #5b5ce2;
    background: #f0efff;

    border-radius: 7px;

    transform: translateY(-50%);

    font-size: 15px;
    font-weight: 700;

    transition:
        transform .15s ease;
}

.public-faq-item[open] summary::after {
    content: "−";
}

.public-faq-answer {
    padding:
        0 14px 14px;

    color: #64748b;

    font-size: 10px;
    line-height: 1.65;
}

.public-faq-item[open] summary {
    color: #4338ca;
}


@media (max-width: 650px) {

    .faq-item-compact {
        padding: 11px;
        gap: 9px;
    }

    .faq-item-compact-question {
        font-size: 11px;
    }

    .faq-item-compact-answer {
        font-size: 9px;
        -webkit-line-clamp: 1;
    }

    .faq-item-compact-action {
        min-height: 28px;
        padding: 0 8px;
    }

}
