/*
|--------------------------------------------------------------------------
| FAQ WRAPPER
|--------------------------------------------------------------------------
*/

.mrb-faq-wrapper{
    width:100%;

    max-width:100%;

    margin:30px 0;

    padding:18px;

    border-radius:18px;

    background:#ffffff;

    border:1px solid #e5e7eb;

    box-shadow:0 6px 20px rgba(0,0,0,.04);

    box-sizing:border-box;

    overflow:hidden;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.mrb-faq-header{
    margin-bottom:18px;
}

.mrb-faq-heading{
    margin:0;

    font-size:30px;

    line-height:1.3;

    font-weight:800;

    color:#111827;
}

/*
|--------------------------------------------------------------------------
| FAQ LIST
|--------------------------------------------------------------------------
*/

.mrb-faq-list{
    width:100%;

    display:flex;

    flex-direction:column;

    gap:10px;
}

/*
|--------------------------------------------------------------------------
| FAQ ITEM
|--------------------------------------------------------------------------
*/

.mrb-faq-item{
    width:100%;

    display:block;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:14px;

    overflow:hidden;

    box-sizing:border-box;
}

.mrb-faq-item.active{
    border-color:#2271b1;

    box-shadow:0 4px 14px rgba(34,113,177,.10);
}

/*
|--------------------------------------------------------------------------
| QUESTION
|--------------------------------------------------------------------------
*/

.mrb-faq-question{
    position:relative;

    z-index:5;

    width:100%;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding:12px 16px;

    border:none;

    outline:none;

    background:#fff;

    cursor:pointer;

    text-align:left;

    box-sizing:border-box;
}

.mrb-faq-question:hover{
    background:#f9fafb;
}

/*
|--------------------------------------------------------------------------
| QUESTION TEXT
|--------------------------------------------------------------------------
*/

.mrb-faq-question-text{
    flex:1;

    width:100%;

    margin:0;

    padding:0;

    color:#111827;

    font-size:16px;

    line-height:1.5;

    font-weight:700;

    word-break:break-word;
}

.mrb-faq-question-text p{
    margin:0;

    padding:0;

    line-height:1.5;
}

/*
|--------------------------------------------------------------------------
| INLINE LINE
|--------------------------------------------------------------------------
*/

.mrb-inline-line{
    display:block;

    margin:0 0 6px;

    line-height:1.6;
}

/*
|--------------------------------------------------------------------------
| INLINE PRE
|--------------------------------------------------------------------------
*/

.mrb-inline-pre{
    display:inline-flex !important;

    align-items:center !important;

    justify-content:center !important;

    vertical-align:middle !important;

    position:relative;

    top:-1px;

    margin:0 2px !important;

    padding:2px 8px !important;

    min-height:24px;

    border-radius:6px !important;

    background:#f3f4f6 !important;

    border:1px solid #d1d5db !important;

    color:#111827 !important;

    font-size:12px !important;

    font-weight:500 !important;

    font-family:Consolas, monospace !important;

    line-height:1.2 !important;

    white-space:nowrap !important;

    box-sizing:border-box;
}

/*
|--------------------------------------------------------------------------
| INLINE CODE
|--------------------------------------------------------------------------
*/

.mrb-inline-code{
    display:inline-block;

    padding:2px 6px;

    margin:0 2px;

    border-radius:5px;

    background:#f3f4f6;

    color:#d63384;

    font-size:12px;

    font-family:Consolas, monospace;

    line-height:1.3;

    vertical-align:middle;
}

/*
|--------------------------------------------------------------------------
| BLOCK PRE
|--------------------------------------------------------------------------
*/

.mrb-block-pre{
    display:block;

    overflow:auto;

    margin:14px 0;

    padding:14px;

    border-radius:12px;

    background:#f3f4f6;

    border:1px solid #e5e7eb;

    color:#111827;

    font-size:13px;

    line-height:1.7;

    font-family:Consolas, monospace;

    white-space:pre-wrap;
}

/*
|--------------------------------------------------------------------------
| PRISM BLOCK
|--------------------------------------------------------------------------
*/

.mrb-faq-answer pre[class*="language-"],
.mrb-faq-question-text pre[class*="language-"]{
    position:relative;

    display:block;

    width:100%;

    overflow:auto;

    margin:14px 0;

    padding:16px;

    border-radius:14px;

    background:#0f172a;

    color:#fff;

    font-size:13px;

    line-height:1.7;

    box-shadow:0 6px 18px rgba(0,0,0,.14);

    white-space:pre;

    box-sizing:border-box;
}

/*
|--------------------------------------------------------------------------
| PRISM CODE
|--------------------------------------------------------------------------
*/

.mrb-faq-answer pre code,
.mrb-faq-question-text pre code{
    background:transparent !important;

    color:inherit !important;

    padding:0 !important;

    margin:0 !important;

    border:none !important;

    font-size:13px !important;

    font-family:Consolas, monospace;
}

/*
|--------------------------------------------------------------------------
| NORMAL CODE
|--------------------------------------------------------------------------
*/

.mrb-faq-answer code:not([class]),
.mrb-faq-question-text code:not([class]){
    padding:2px 6px;

    border-radius:5px;

    background:#f3f4f6;

    color:#d63384;

    font-size:12px;

    font-family:Consolas, monospace;
}

/*
|--------------------------------------------------------------------------
| COPY BUTTON
|--------------------------------------------------------------------------
*/

.mrb-copy-code{
    position:absolute;

    top:10px;

    right:10px;

    z-index:999;

    border:none;

    cursor:pointer;

    padding:5px 10px;

    border-radius:7px;

    background:#2271b1;

    color:#fff;

    font-size:11px;

    font-weight:600;

    pointer-events:auto !important;
}

.mrb-copy-code:hover{
    opacity:.92;
}

/*
|--------------------------------------------------------------------------
| FAQ ICON
|--------------------------------------------------------------------------
*/

.mrb-faq-icon{
    width:34px;

    height:34px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#eff6ff;

    color:#2271b1;

    font-size:20px;

    line-height:1;

    font-weight:700;

    text-align:center;

    transition:transform .25s ease;
}

.mrb-faq-item.active .mrb-faq-icon{
    transform:rotate(45deg);

    background:#2271b1;

    color:#fff;
}

/*
|--------------------------------------------------------------------------
| ANSWER
|--------------------------------------------------------------------------
*/

.mrb-faq-answer{
    width:100%;

    display:none;

    padding:0 16px 14px;

    box-sizing:border-box;

    color:#374151;

    font-size:14px;

    line-height:1.6;
}

.mrb-faq-answer-inner{
    padding-top:2px;
}

.mrb-faq-answer p{
    margin-top:0;

    margin-bottom:12px;
}

/*
|--------------------------------------------------------------------------
| LINKS
|--------------------------------------------------------------------------
*/

.mrb-faq-answer a{
    color:#2271b1;

    font-weight:600;

    text-decoration:none;
}

.mrb-faq-answer a:hover{
    text-decoration:underline;
}

/*
|--------------------------------------------------------------------------
| LISTS
|--------------------------------------------------------------------------
*/

.mrb-faq-answer ul,
.mrb-faq-answer ol{
    margin:12px 0 14px 22px;

    padding-left:6px;
}

.mrb-faq-answer ul{
    list-style-type:disc;
}

.mrb-faq-answer ol{
    list-style-type:decimal;
}

.mrb-faq-answer li{
    margin-bottom:8px;

    line-height:1.7;

    color:#374151;
}

/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.mrb-faq-answer table{
    width:100%;

    border-collapse:collapse;

    margin:18px 0;
}

.mrb-faq-answer table th,
.mrb-faq-answer table td{
    border:1px solid #ddd;

    padding:10px;
}

.mrb-faq-answer table th{
    background:#f8fafc;
}

/*
|--------------------------------------------------------------------------
| FORCE SAME WIDTH
|--------------------------------------------------------------------------
*/

.mrb-faq-wrapper,
.mrb-faq-list,
.mrb-faq-item,
.mrb-faq-question,
.mrb-faq-answer{
    min-width:100%;

    max-width:100%;
}

/*
|--------------------------------------------------------------------------
| REMOVE VOTING
|--------------------------------------------------------------------------
*/

.mrb-faq-voting,
.mrb-helpful-btn,
button[data-type="helpful"],
button[data-type="not_helpful"]{
    display:none !important;
}

/*
|--------------------------------------------------------------------------
| DARK MODE
|--------------------------------------------------------------------------
*/

body.dark-mode .mrb-faq-wrapper,
.dark .mrb-faq-wrapper{
    background:#111827;

    border-color:#1f2937;
}

body.dark-mode .mrb-faq-heading,
.dark .mrb-faq-heading{
    color:#fff;
}

body.dark-mode .mrb-faq-item,
.dark .mrb-faq-item{
    background:#1f2937;

    border-color:#374151;
}

body.dark-mode .mrb-faq-question,
.dark .mrb-faq-question{
    background:#1f2937;

    color:#fff;
}

body.dark-mode .mrb-faq-question:hover,
.dark .mrb-faq-question:hover{
    background:#273244;
}

body.dark-mode .mrb-faq-answer,
.dark .mrb-faq-answer{
    color:#d1d5db;
}

body.dark-mode .mrb-inline-pre,
.dark .mrb-inline-pre{
    background:#374151 !important;

    border-color:#4b5563 !important;

    color:#f9fafb !important;
}

body.dark-mode .mrb-inline-code,
.dark .mrb-inline-code{
    background:#374151;

    color:#f472b6;
}

body.dark-mode .mrb-block-pre,
.dark .mrb-block-pre{
    background:#1f2937;

    border-color:#374151;

    color:#f9fafb;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .mrb-faq-wrapper{
        padding:14px;
    }

    .mrb-faq-heading{
        font-size:24px;
    }

    .mrb-faq-question{
        padding:10px 14px;
    }

    .mrb-faq-question-text{
        font-size:15px;
    }

    .mrb-faq-answer{
        padding:0 14px 12px;

        font-size:13px;
    }

    .mrb-faq-icon{
        width:30px;

        height:30px;

        font-size:18px;
    }

    .mrb-inline-pre{
        font-size:11px !important;

        padding:2px 6px !important;

        min-height:22px;
    }

}