/* Ported from original design: faq-list */


/* =========================================================
   FAQ SECTION
   UNIQUE PREFIX: km-faq-
   ========================================================= */

.km-faq-section {
    width:100%;
    padding:25px 0 40px;
    background:var(--mc-cream);
}

.km-faq-section *,
.km-faq-section *::before,
.km-faq-section *::after {
    box-sizing:border-box;
}


/* =========================================================
   CATEGORY TABS
   ========================================================= */

.km-faq-tabs {
    width:100%;
    max-width:1100px;
    margin:0 auto 35px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    overflow-x:auto;
    scrollbar-width:none;

    padding:0 10px;
}

.km-faq-tabs::-webkit-scrollbar {
    display:none;
}


.km-faq-tab {
    flex:0 0 auto;

    padding:9px 16px;

    border:0;
    border-radius:20px;

    background:var(--mc-beige);
    color:var(--mc-deep);

    font-family:inherit;
    font-size:13px;
    font-weight:500;

    line-height:1;

    white-space:nowrap;

    cursor:pointer;

    transition:background 0.25s ease,
        color 0.25s ease;
}


.km-faq-tab:hover {
    background:var(--mc-sage-light);
}


.km-faq-tab.km-faq-active {
    background:var(--mc-sage);
    color:#ffffff;
}


/* =========================================================
   FAQ LIST
   ========================================================= */

.km-faq-list {
    width:100%;
    max-width:850px;

    margin:0 auto;

    display:flex;
    flex-direction:column;
    gap:16px;
}


/* =========================================================
   FAQ ITEM
   ========================================================= */

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

    background:var(--mc-card);

    border:1px solid var(--mc-line);
    border-radius:15px;

    overflow:hidden;

    transition:border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.km-faq-item.km-faq-open {
    border-color:var(--mc-sage);

    box-shadow:0 3px 10px rgba(103,131,88,0.05);
}


/* =========================================================
   QUESTION BUTTON
   ========================================================= */

.km-faq-question {
    width:100%;

    min-height:63px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;

    padding:0 22px;

    border:0;

    background:transparent;

    color:var(--mc-deep-dark);

    font-family:inherit;

    font-size:18px;
    font-weight:600;

    line-height:1.35;

    text-align:left;

    cursor:pointer;
}


.km-faq-question:hover {
    color:var(--mc-deep);
}


/* =========================================================
   ARROW
   ========================================================= */

.km-faq-arrow {
    flex:0 0 auto;

    width:27px;
    height:27px;

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

    border-radius:50%;

    background:var(--mc-beige);

    color:var(--mc-deep);

    font-size:11px;

    transition:transform 0.3s ease,
        background 0.3s ease;
}


.km-faq-open .km-faq-arrow {
    transform:rotate(180deg);

    background:var(--mc-deep);
    color:#ffffff;
}


/* =========================================================
   ANSWER
   ========================================================= */

.km-faq-answer {
    display:none;

    width:100%;

    padding:0 22px 20px;

    border-top:1px solid var(--mc-beige);
}


.km-faq-open .km-faq-answer {
    display:block;
}


.km-faq-answer p {
    margin:0;
    padding:14px 0 0;

    color:#68757b;

    font-family:inherit;

    font-size:15px;

    line-height:1.65;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 900px) {

    .km-faq-tabs {
        margin-bottom:45px;
        justify-content:flex-start;
    }

    .km-faq-list {
        padding:0 25px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 767px) {

    .km-faq-section {
        padding:15px 0 40px;
    }


    /* TABS */

    .km-faq-tabs {
        justify-content:flex-start;

        margin:0 0 35px;

        padding:0 15px;

        gap:7px;
    }


    .km-faq-tab {
        padding:9px 14px;

        font-size:10px;
    }


    /* FAQ LIST */

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

        padding:0 15px;

        gap:12px;
    }


    /* FAQ ITEM */

    .km-faq-item {
        border-radius:13px;
    }


    /* QUESTION */

    .km-faq-question {
        min-height:57px;

        padding:14px 15px;

        gap:12px;

        font-size:14px;

        line-height:1.4;
    }


    /* ARROW */

    .km-faq-arrow {
        width:25px;
        height:25px;

        font-size:10px;
    }


    /* ANSWER */

    .km-faq-answer {
        padding:0 15px 17px;
    }


    .km-faq-answer p {
        padding-top:12px;

        font-size:12.5px;

        line-height:1.6;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 480px) {

    .km-faq-tabs {
        margin-bottom:28px;
    }

    .km-faq-list {
        padding:0 12px;
    }

    .km-faq-question {
        font-size:13px;
    }

    .km-faq-answer p {
        font-size:12px;
    }

}
/* =========================================================
   NO FAQ RESULTS
   ========================================================= */

.km-faq-no-results {
    display:none;
    width:100%;
    padding:35px 20px;

    background:var(--mc-card);

    border:1px solid var(--mc-line);
    border-radius:15px;

    color:#68757b;

    font-family:inherit;
    font-size:15px;
    line-height:1.5;

    text-align:center;
}

@media screen and (max-width: 767px) {

    .km-faq-no-results {
        padding:28px 15px;
        font-size:13px;
        border-radius:13px;
    }

}
