/* ==========================================================
   Sidebar shortcode: [mobin_category_sidebar]
   ========================================================== */
.mcs-sidebar {
    --mcs-sidebar-text: #404044;
    --mcs-sidebar-muted: rgba(64, 64, 68, .72);
    --mcs-sidebar-active-bg: #f5f6fd;
    --mcs-sidebar-hover-bg: #f8f8fb;
    --mcs-sidebar-border: #ececef;

    width: 100%;
    display: block;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.mcs-sidebar *,
.mcs-sidebar *::before,
.mcs-sidebar *::after {
    box-sizing: border-box;
}

.mcs-sidebar a {
    text-decoration: none !important;
}

.mcs-sidebar__main-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mcs-sidebar__main-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--mcs-sidebar-text);
    background: transparent;
    transition: background-color .18s ease, color .18s ease;
}

.mcs-sidebar__main-item:hover,
.mcs-sidebar__main-item:focus-visible,
.mcs-sidebar__main-item.is-touched {
    color: var(--mcs-sidebar-text);
    background: var(--mcs-sidebar-hover-bg);
    outline: none;
}

.mcs-sidebar__main-item--active,
.mcs-sidebar__main-item--active:hover,
.mcs-sidebar__main-item--active:focus-visible {
    background: var(--mcs-sidebar-active-bg);
    color: #26262a;
    font-weight: 700;
}

.mcs-sidebar__main-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.8;
}

.mcs-sidebar__main-item--active .mcs-sidebar__main-label {
    font-weight: 700;
}

.mcs-sidebar__icon {
    width: 19px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #56565d;
    flex: 0 0 auto;
}

.mcs-sidebar__icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    object-position: center;
}

.mcs-sidebar__children {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
    padding: 0 10px 0 4px;
}

.mcs-sidebar__child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 6px 8px 6px 4px;
    border-radius: 7px;
    color: var(--mcs-sidebar-muted);
    background: transparent;
    transition: background-color .18s ease, color .18s ease;
}

.mcs-sidebar__child:hover,
.mcs-sidebar__child:focus-visible,
.mcs-sidebar__child.is-touched {
    color: #2f2f34;
    background: #fafafd;
    outline: none;
}

.mcs-sidebar__child--active {
    color: #2f2f34;
    font-weight: 600;
}

.mcs-sidebar__child-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    font-style: normal;
    font-weight: inherit;
    line-height: 1.8;
}

.mcs-sidebar__chevron {
    width: 13px;
    min-width: 13px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #34343a;
    flex: 0 0 auto;
}

.mcs-sidebar__chevron svg {
    display: block;
    width: 6px;
    height: 11px;
}

.mcs-sidebar__chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mcs-sidebar__divider {
    width: calc(100% - 8px);
    height: 1px;
    margin: 12px 4px 10px;
    background: var(--mcs-sidebar-border);
}

@media (max-width: 767px) {
    .mcs-sidebar__main-item {
        min-height: 40px;
        padding: 7px 9px;
    }

    .mcs-sidebar__main-label {
        font-size: 12.5px;
    }

    .mcs-sidebar__child {
        min-height: 34px;
    }

    .mcs-sidebar__child-label {
        font-size: 11px;
    }
}
