/* Main navigation desktop */

#iqitmegamenu-desktop {
    display: none;
    width: 100%;
    padding: 0;
    font-size: 14px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cbp-menu-column > .cbp-column-title {
    font-weight: 700;
}

.cbp-menu-column {
    margin-top: 30px;
}

.cbp-hrmenu-tab + .cbp-hrmenu-tab {
    border-top: 1px solid #e2e2e2;
}

.cbp-hrsub > .menu_row {
    max-height: 80vh;
    max-height: calc(100vh - 100px);
    margin-top: -30px;
    margin-right: -40px;
    padding-right: 20px;
    padding-bottom: 20px;
    overflow: auto;
}

.to-container.st-sticky .cbp-hrsub > .menu_row {
    max-height: calc(100vh - 65px);
}

.cbp-hrmenu-tab > a {
    position: relative;
    display: block;
    padding: 10px;
    padding-left: 50px;
}

.cbp-hrmenu-tab:first-child > a {
    border-radius: 5px 5px 0 0;
}

.cbp-hrmenu-tab:last-child > a {
    border-radius: 0 0 5px 5px;
}

.cbp-hrmenu-tab:hover > a {
    background: #f7f7f7;
}

.cbp-hrmenu-tab > a::before {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 30px;
    height: 30px;
    background: center no-repeat;
    transform: translateY(-50%);
    content: '';
}

.cbp-hrsub {
    position: absolute;
    top: 0;
    right: 0;
    left: 300px;
    display: none;
    width: auto;
    min-height: 100%;
    max-height: 80vh;
    max-height: calc(100vh - 100px);
    padding: 15px 20px 30px;
    overflow: hidden;
    line-height: 1.75;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.to-container.st-sticky .cbp-hrsub {
    max-height: calc(100vh - 65px);
}

.cbp-hrsub::after {
    position: absolute;
    right: 30px;
    bottom: 0;
    left: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5) 20%, #fff);
    content: '';
}

.cbp-hrmenu-tab:focus-within > .cbp-hrsub {
    display: block;
}

.cbp-hrmenu-tab:hover > .cbp-hrsub {
    display: block;
}

.cbp-column-title,
.cbp-hrsub a {
    display: block;
    color: #3d3d3d;
}

.cbp-hrsub a:hover {
    color: #9c0;
}

.cbp-submenu-aindicator {
    display: none !important;
}

.iqitmegamenu-wrapper {
    position: static;
    padding: 0;
    pointer-events: all;
}

@media (min-width: 992px) {
    #iqitmegamenu-desktop {
        display: block;
    }

    .iqitmegamenu-wrapper {
        width: 300px;
    }
}

/* Main navigation mobile */

#iqitmegamenu-mobile .container {
    padding-right: 20px;
    padding-left: 20px;
}

.single-category-wrapper,
.single-subcategory-wrapper,
.single-target-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 5px;
}

.single-subcategory-wrapper {
    padding: 5px 5px 5px 30px;
}

.single-target-wrapper {
    padding: 5px 15px 5px 50px;
}

.single-category-wrapper > a,
.single-subcategory-wrapper > a {
    width: max-content;
    min-width: 75%;
}

.single-target-wrapper > a {
    width: 100%;
}

.mobile-menu-arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 50px;
    height: 100%;
    min-height: 40px;
}

.mobile-menu-arrow-wrapper > .fa {
    margin-right: 10px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.iqitmegamenu-accordion li {
    position: relative;
    border-top: 1px solid #e1e1e1;
}

.iqitmegamenu-accordion > li:first-child {
    border-top: none;
}

.iqitmegamenu-accordion ul {
    display: none;
}

.to-mainnav-mobile-topmenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 25px 0;
}

.to-mainnav-mobile-topmenu a,
.to-mainnav-mobile-topmenu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.to-mainnav-mobile-topmenu img {
    height: 23px;
}

.to-mainnav-mobile-help-container {
    position: relative;
    z-index: 150;
    display: none;
    height: 100vh;
    background: #fff;
}

.to-mainnav-mobile-help-wrapper {
    position: absolute;
    width: 100%;
    top: -98px;
    background: #fff;
}

.to-mainnav-mobile-help-back {
    padding: 20px 0 40px;
    font-size: 20px;
}

.to-mainnav-mobile-help-back .fa {
    margin-right: 10px;
    font-size: 27px;
}

@media (min-width: 992px) {
    #iqitmegamenu-mobile {
        display: none;
    }
}

/* Main navigation: highlighted categories */

.cbp-id-CAT1106 > a {
    color: #9c0 !important;
    font-weight: 700;
}

.cbp-id-CAT871 > a {
    color: #f90 !important;
    font-weight: 700;
}

.cbp-id-CAT1211 > a {
    color: #02C1EA !important;
    font-weight: 700;
}

.cbp-id-CAT1268 > a {
    color: #B079F9 !important;
    font-weight: 700;
}

.cbp-id-CAT1259 > a {
    color: #234d20 !important;
    font-weight: 700;
}

.cbp-id-CAT1377 > a {
    color: #006edb !important;
    font-weight: 700;
}

.cbp-hrmenu-tab-42 > a {
    color: #f00 !important;
    font-weight: 700;
}

/* Main navigation: category icons */

@media (min-width: 992px) {
    .cbp-id-CAT959 > a::before {
        background-image: url('/themes/media-center/img/top/icon-batteries.svg');
    }

    .cbp-id-CAT960 > a::before {
        background-image: url('/themes/media-center/img/top/icon-chargers.svg');
    }

    .cbp-id-CAT82 > a::before {
        background-image: url('/themes/media-center/img/top/icon-keyboards.svg');
    }

    .cbp-id-CAT6 > a::before {
        background-image: url('/themes/media-center/img/top/icon-powerbanks.svg');
    }

    .cbp-id-CAT9 > a::before {
        background-image: url('/themes/media-center/img/top/icon-accessories.svg');
    }

    .cbp-id-CAT873 > a::before {
        background-image: url('/themes/media-center/img/top/icon-ups.svg');
    }

    .cbp-id-CAT963 > a::before,
    .cbp-id-CAT1319 > a::before {
        background-image: url('/themes/media-center/img/top/icon-inverters.svg');
    }

    .cbp-id-CAT1312 > a::before {
        background-image: url('/themes/media-center/img/top/icon-emergency-power-supply.svg');
    }

    .cbp-id-CAT1041 > a::before {
        background-image: url('/themes/media-center/img/top/icon-lcd.svg');
    }

    .cbp-id-CAT1136 > a::before {
        background-image: url('/themes/media-center/img/top/menu_icon_elektromobilnosc.svg');
    }

    .cbp-id-CAT1149 > a::before {
        background-image: url('/themes/media-center/img/top/icon-solar.svg');
    }

    .cbp-id-CAT1253 > a::before {
        background-image: url('/themes/media-center/img/top/energy-storage.svg');
    }
}
