/* =========================================================
   ZIZIGOLO FAQ
========================================================= */

.zzg-faq {
    width: 100%;
    max-width: 100%;

    margin: 32px 0 0;
    padding: 0;

    direction: rtl;
    text-align: right;

    font-family: inherit;

    box-sizing: border-box;
}

.zzg-faq *,
.zzg-faq *::before,
.zzg-faq *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.zzg-faq-header {
    margin: 0 0 15px;
}

.zzg-faq-title-wrap {
    display: flex;

    align-items: flex-start;

    gap: 11px;
}

.zzg-faq-title-line {
    width: 5px;
    height: 32px;

    flex: 0 0 5px;

    margin-top: 3px;

    border-radius: 5px;

    background: linear-gradient(
        to bottom,
        #0d6efd 0%,
        #0d6efd 52%,
        #e31b23 52%,
        #e31b23 100%
    );
}


.zzg-faq-header h2 {
    margin: 0;

    color: #173b7a;

    font-size: 21px;
    font-weight: 800;

    line-height: 1.5;
}


.zzg-faq-header p {
    margin: 2px 0 0;

    color: #7a8494;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   FAQ GRID
========================================================= */

.zzg-faq-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px 11px;

    width: 100%;
}


/* =========================================================
   FAQ ITEM
========================================================= */

.zzg-faq-item {
    position: relative;

    min-width: 0;

    margin: 0;

    border: 1px solid #e2e7ef;

    border-radius: 10px;

    background: #fff;

    overflow: visible;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.zzg-faq-item:hover {
    border-color: #cfd8e6;

    box-shadow:
        0 5px 16px rgba(0,0,0,.05);
}


/* =========================================================
   QUESTION
========================================================= */

.zzg-faq-question {
    margin: 0;
    padding: 0;
}


/* =========================================================
   QUESTION BUTTON
========================================================= */

.zzg-faq-button {
    width: 100%;

    min-height: 58px;

    margin: 0;
    padding: 10px 12px;

    display: flex;

    align-items: center;

    gap: 9px;

    border: 0;
    border-radius: 10px;

    background: #fff;

    color: #333;

    font-family: inherit;

    text-align: right;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   NUMBER
========================================================= */

.zzg-faq-number {
    width: 29px;
    height: 29px;

    min-width: 29px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #eef5ff;

    color: #0d6efd;

    font-family: Arial, sans-serif;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    transition:
        background .2s ease,
        color .2s ease;
}


/* =========================================================
   QUESTION TEXT
========================================================= */

.zzg-faq-question-text {
    flex: 1;

    min-width: 0;

    color: #313b4a;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.8;
}


/* =========================================================
   ARROW
========================================================= */

.zzg-faq-arrow {
    width: 25px;
    height: 25px;

    min-width: 25px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2f6fc;

    color: #0d6efd;

    font-family: Arial, sans-serif;

    font-size: 18px;
    font-weight: 400;

    line-height: 1;

    transition:
        transform .25s ease,
        background .2s ease,
        color .2s ease;
}


/* =========================================================
   ANSWER
========================================================= */

.zzg-faq-answer {
    margin: 0;

    padding: 0 12px 12px 12px;

    border-top: 1px solid #edf0f5;
}


.zzg-faq-answer-inner {
    margin: 0;

    padding: 10px 47px 2px 32px;

    color: #626c7c;

    font-size: 13px;

    line-height: 2;

    text-align: justify;
}


/* =========================================================
   OPEN STATE
========================================================= */

.zzg-faq-item.is-open {
    border-color: #d5e1f2;

    background: #fcfdff;

    box-shadow:
        0 5px 18px rgba(13,110,253,.07);
}


.zzg-faq-item.is-open .zzg-faq-button {
    background: #f7faff;
}


.zzg-faq-item.is-open .zzg-faq-number {
    background: #0d6efd;

    color: #fff;
}


.zzg-faq-item.is-open .zzg-faq-arrow {
    background: #0d6efd;

    color: #fff;

    transform: rotate(45deg);
}


/* =========================================================
   FOCUS
========================================================= */

.zzg-faq-button:focus-visible {
    outline: 2px solid rgba(13,110,253,.25);

    outline-offset: -2px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .zzg-faq {
        margin-top: 24px;
    }


    .zzg-faq-header {
        margin-bottom: 12px;
    }


    .zzg-faq-title-line {
        width: 4px;
        height: 28px;

        flex-basis: 4px;
    }


    .zzg-faq-header h2 {
        font-size: 19px;
    }


    .zzg-faq-header p {
        font-size: 11px;
    }


    .zzg-faq-grid {
        grid-template-columns: 1fr;

        gap: 8px;
    }


    .zzg-faq-button {
        min-height: 54px;

        padding: 9px 10px;

        gap: 8px;
    }


    .zzg-faq-number {
        width: 27px;
        height: 27px;

        min-width: 27px;

        font-size: 9px;
    }


    .zzg-faq-question-text {
        font-size: 13px;

        line-height: 1.8;
    }


    .zzg-faq-arrow {
        width: 24px;
        height: 24px;

        min-width: 24px;

        font-size: 17px;
    }


    .zzg-faq-answer {
        padding:
            0
            10px
            10px
            10px;
    }


    .zzg-faq-answer-inner {
        padding:
            9px
            12px
            2px
            8px;

        font-size: 12px;

        line-height: 1.95;

        text-align: right;
    }

}