﻿/* Category Sidebar Widget Styles */

.category-sidebar-shortcode,
.widget_category_sidebar_widget {
    margin: 0 !important;
}

.category-sidebar-widget {
    --cs-yellow: #ffcc08;
    --cs-yellow-dark: #f1b900;
    --cs-text: #222;
    --cs-muted: #777;
    --cs-line: #eeeeee;
    --cs-soft: #fff9df;
    width: 100% !important;
    max-width: 270px !important;
    background: #fff !important;
    border: 2px solid var(--cs-yellow) !important;
    border-radius: 4px 4px 0 0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06) !important;
    font-family: inherit !important;
    animation: categorySidebarEnter 0.55s cubic-bezier(.22, .61, .36, 1) both !important;
}

@keyframes categorySidebarEnter {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-sidebar-header {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffd21a 0%, var(--cs-yellow) 100%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    text-align: left !important;
    cursor: default !important;
    box-shadow: none !important;
}

.category-sidebar-header-icon {
    width: 14px !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1f1f1f !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
}

.category-sidebar-header-title {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1f1f1f !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
}

.category-sidebar-header-arrow {
    display: none !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #151515 !important;
    border-bottom: 2px solid #151515 !important;
    transform: rotate(45deg) !important;
    transform-origin: center !important;
    transition: transform 0.24s ease !important;
}

.category-sidebar-list,
.category-sidebar-sublist {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.category-sidebar-list {
    background: #fff !important;
}

.category-sidebar-item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--cs-line) !important;
    animation: categorySidebarItemEnter 0.42s ease both !important;
}

.category-sidebar-item:nth-child(1) { animation-delay: .04s !important; }
.category-sidebar-item:nth-child(2) { animation-delay: .08s !important; }
.category-sidebar-item:nth-child(3) { animation-delay: .12s !important; }
.category-sidebar-item:nth-child(4) { animation-delay: .16s !important; }
.category-sidebar-item:nth-child(5) { animation-delay: .20s !important; }
.category-sidebar-item:nth-child(6) { animation-delay: .24s !important; }
.category-sidebar-item:nth-child(7) { animation-delay: .28s !important; }
.category-sidebar-item:nth-child(8) { animation-delay: .32s !important; }
.category-sidebar-item:nth-child(9) { animation-delay: .36s !important; }
.category-sidebar-item:nth-child(10) { animation-delay: .40s !important; }

@keyframes categorySidebarItemEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-sidebar-item:last-child {
    border-bottom: 0 !important;
}

.category-sidebar-item-wrapper {
    min-height: 45px !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    background: #fff !important;
    transition: background-color 0.22s ease !important;
}

.category-sidebar-item-wrapper:hover {
    background: #fffdf3 !important;
}

.category-sidebar-link,
.category-sidebar-sublink {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.category-sidebar-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px 0 20px !important;
    color: var(--cs-text) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
}

.category-sidebar-link:hover {
    color: #000 !important;
    padding-left: 24px !important;
}

.category-sidebar-link-text {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.category-sidebar-count {
    margin-left: 4px !important;
    color: var(--cs-muted) !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.category-sidebar-toggle {
    width: 45px !important;
    min-width: 45px !important;
    height: 45px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #151515 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: background-color 0.22s ease, border-color 0.22s ease !important;
}

.category-sidebar-toggle:hover,
.category-sidebar-toggle:focus {
    background: var(--cs-yellow) !important;
    border-left-color: var(--cs-yellow-dark) !important;
    outline: none !important;
}

.category-sidebar-arrow {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #151515 !important;
    border-bottom: 2px solid #151515 !important;
    transform: rotate(-45deg) !important;
    transform-origin: center !important;
    transition: transform 0.24s ease !important;
}

.category-sidebar-item.is-open > .category-sidebar-item-wrapper .category-sidebar-arrow {
    transform: rotate(45deg) !important;
}

.category-sidebar-sublist {
    display: none !important;
    background: #fffdf3 !important;
    border-top: 1px solid #f3e7aa !important;
}

.category-sidebar-item.is-open > .category-sidebar-sublist {
    display: block !important;
}

.category-sidebar-subitem {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1ebcf !important;
}

.category-sidebar-subitem:last-child {
    border-bottom: 0 !important;
}

.category-sidebar-sublink {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px 0 36px !important;
    color: #444 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    letter-spacing: 0.6px !important;
    position: relative !important;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease !important;
}

.category-sidebar-sublink::before {
    content: '' !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: #d6b000 !important;
    position: absolute !important;
    left: 22px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.75 !important;
}

.category-sidebar-sublink:hover {
    padding-left: 40px !important;
    color: #000 !important;
    background: #fff4bd !important;
}

@media (max-width: 768px) {
    .category-sidebar-widget {
        max-width: 100% !important;
    }

    .category-sidebar-header {
        cursor: pointer !important;
    }

    .category-sidebar-header-arrow {
    display: none !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #151515 !important;
    border-bottom: 2px solid #151515 !important;
    transform: rotate(45deg) !important;
    transform-origin: center !important;
    transition: transform 0.24s ease !important;
}

    .category-sidebar-widget:not(.is-widget-open) > .category-sidebar-list {
        display: none !important;
    }

    .category-sidebar-widget:not(.is-widget-open) .category-sidebar-header-arrow {
        transform: rotate(-45deg) !important;
    }
}