/**
 * FAQ page (Figma)
 */

.ye-faq-page {
    --ye-faq-bg: #edf2f7;
    --ye-faq-border: #e2e8f0;
    --ye-faq-muted: #64748b;
    --ye-faq-navy: #11233a;
    --ye-discover-hero-height: var(--inner-banner-img);
    background: var(--ye-faq-bg);
    color: #0f172a;
    padding-bottom: 0;
}

.ye-faq-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 24px 50px;
}

.ye-faq-card {
    background: #fff;
    border: 1px solid var(--ye-faq-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 25px;
}

.ye-faq-card__top {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin-bottom: 18px;
}

.ye-faq-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.ye-faq-tabs-wrap {
    display: flex;
    justify-content: center;
}

/* #ye-faq-tab-user:checked ~ .ye-faq-tabs-wrap label[for="ye-faq-panel-user"], #ye-faq-tab-vendor:checked ~ .ye-faq-tabs-wrap label[for="ye-faq-panel-vendor"] {
    background: var(--ye-tools-navy);
    color: #fff;
} */
 
/* Active tab */

#ye-faq-tab-user:checked ~ .ye-faq-tabs-wrap .ye-faq-tab[for="ye-faq-tab-user"],

#ye-faq-tab-vendor:checked ~ .ye-faq-tabs-wrap .ye-faq-tab[for="ye-faq-tab-vendor"] {

  background: #081B33;

  color: #fff;

}
 

.ye-faq-tabs {
    display: inline-flex;
    gap: 10px;
    padding: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--ye-faq-border);
    margin: 0;
}

.ye-faq-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ye-faq-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
    line-height: 17px;
}

#ye-faq-tab-user:checked ~ .ye-faq-tabs label[for="ye-faq-tab-user"],
#ye-faq-tab-vendor:checked ~ .ye-faq-tabs label[for="ye-faq-tab-vendor"] {
    background: var(--ye-faq-navy);
    color: #fff;
}

.ye-faq-card__top {
    margin-top: 25px;
}
.ye-faq-title--vendor {
    display: none;
}

.ye-faq-panel--user,
.ye-faq-panel--vendor {
    display: none;
}

#ye-faq-tab-user:checked ~ .ye-faq-card__top .ye-faq-title--user {
    display: block;
}

#ye-faq-tab-user:checked ~ .ye-faq-panel--user {
    display: block;
}

#ye-faq-tab-vendor:checked ~ .ye-faq-card__top .ye-faq-title--user {
    display: none;
}

#ye-faq-tab-vendor:checked ~ .ye-faq-card__top .ye-faq-title--vendor {
    display: block;
}

#ye-faq-tab-vendor:checked ~ .ye-faq-panel--vendor {
    display: block;
}
.ye-faq-groups {
    display: grid;
    gap: 16px;
}

.ye-faq-group__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
}

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

.ye-faq-item {
    border: 1px solid var(--ye-faq-border);
    border-radius: 6px;
    background: #fff;
    overflow: clip;
}

.ye-faq-question {
    list-style: none;
    cursor: pointer;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.ye-faq-question::-webkit-details-marker {
    display: none;
}

.ye-faq-question::after {
    content: "+";
    width: 24px;
    font-size: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    flex: 0 0 auto;
}

.ye-faq-item[open] > .ye-faq-question::after {
    content: "–";
    font-size: 24px;
}

.ye-faq-answer {
    padding: 0 16px 14px;
    color: var(--ye-faq-muted);
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.ye-faq-empty {
    color: var(--ye-faq-muted);
    font-size: 13px;
    text-align: center;
    padding: 40px 0;
}

@media (max-width: 640px) {
    .ye-faq-tab{
        font-size: 13px;
    }
    .ye-faq-tabs-wrap{
        justify-content: start;
    }
    .ye-faq-shell {
        padding: 18px 16px 44px;
    }
    .ye-faq-card__top{
        margin-top: 16px;
        margin-bottom: 16px;
        justify-content: start;
    }

    .ye-faq-card {
        padding: 16px;
    }
}
