/* Default Social */

.wp-block-social-links {
    &:not(.is-style-logos-only, .is-style-pill-shape, .is-style-circle-shape) {

        .wp-block-social-link {
            .wp-block-social-link-anchor {
                background-color: var(--wp--preset--color--secondary) !important;
                border-radius: 3px !important;
                color: inherit !important;

                svg {
                    fill: var(--wp--preset--color--body-text) !important;
                }

                &:is(:hover, :focus) {
                    background-color: var(--wp--preset--color--link-color) !important;

                    svg {
                        fill: var(--wp--preset--color--light) !important;
                    }
                }
            }
        }
    }
}

.site-header {
    .wp-block-fse-pro-header-social .social-container {
        left: 0;
        z-index: 5;
        padding: 14px var(--wp--preset--spacing--42);
        background: var(--wp--preset--color--dark);

        .wp-block-social-links {
            justify-content: center;
        }
    }

}

.wp-block-social-links.has-normal-icon-size {
    &:not(.is-style-logos-only, .is-style-pill-shape, .is-style-circle-shape) {
        font-size: 22px;
    }
}

@media screen and (max-width: 1199px) {
    .main-navigation-wrap {
        padding-right: var(--wp--preset--spacing--42) !important;
        padding-left: var(--wp--preset--spacing--42) !important;

        .navigation-wrap-inner {
            margin-right: -10px;
            margin-left: -10px;
        }
    }
}

/* Header Search */
.site-header {
    .wp-block-fse-pro-header-search {
        position: static;

        .search-container {
            left: 0;
            padding: 14px var(--wp--preset--spacing--42);
            background-color: var(--wp--preset--color--dark);
            z-index: 9;
        }
    }
}

/* To make header search container of full width */
.main-navigation-wrap {
    position: relative;
}

.site-header .social-controller,
.site-header .search-controller {
    fill: var(--wp--preset--color--light);

    &:hover,
    &:focus {
        svg {
            fill: var(--wp--preset--color--link-color);
        }
    }
}

.wp-block-fse-pro-header-social {
    z-index: 9;

}

.site-header .wp-block-search__inside-wrapper input[type="search"] {
    border: 1px solid var(--wp--preset--color--gray);
    color: var(--wp--preset--color--light) !important;


}

.site-header .wp-block-search__inside-wrapper::before {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--wp--preset--color--dark);
    content: '';
    opacity: 0.3;
    left: 0;
    top: 0;
    z-index: -1;
}

.wp-block-search__inside-wrapper .wp-element-button:focus {
    background-color: transparent !important;
}

.site-header .wp-block-search__inside-wrapper .wp-element-button svg {
    fill: var(--wp--preset--color--light);
}

.wp-block-search__inside-wrapper {
    position: relative;

    input[type="search"] {
        padding-right: 48px;
        margin-top: 0;
        background-color: transparent;


        &:hover,
        &:focus {
            border: 1px solid var(--wp--preset--color--link-color);
        }
    }



    .wp-element-button {
        position: absolute;
        right: 0;
        padding: 10px;
        margin-left: 0;
        top: 50%;
        @include transform(translateY(-50%));
        border: 0;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;

        &:hover {
            background: transparent;

            svg {
                fill: var(--wp--preset--color--link-color)
            }
        }

        svg {
            @include transform(rotate(-90deg));
        }
    }
}

.wp-block-navigation__responsive-container .current-menu-item {

    >.wp-block-navigation-item__content,
    .wp-block-navigation__submenu-icon {
        color: var(--wp--preset--color--link-color);
    }
}

.wp-block-navigation__responsive-container.has-modal-open {

    .wp-block-navigation.items-justified-center,
    .wp-block-navigation .wp-block-navigation-item {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }
}

@media screen and (max-width:1199px) {
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
        padding: 7px 0
    }

    .items-justified-left.wp-block-navigation,
    .items-justified-center.wp-block-navigation,
    .items-justified-right.wp-block-navigation {
        --navigation-layout-justify: flex-start;
        --navigation-layout-justification-setting: flex-start;
    }
}

@media screen and (min-width:600px) {
    .site-header {
        .has-modal-open.is-menu-open {
            .wp-block-navigation__container.wp-block-navigation {
                margin-left: auto;
                --navigation-layout-justify: flex-end;
                --navigation-layout-justification-setting: flex-end;
                justify-content: flex-end;
            }
        }

    }
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
    min-width: auto;
}

// TO SHOW HAMBURGER ICONS
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none
}

.wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block;
}

// TO SHOW HAMBURGER ICONS

.wp-block-navigation {
    .wp-block-navigation__submenu-icon {
        background-color: transparent;

        &::before {
            content: '+';
        }

        svg {
            display: none;
        }
    }
}



.wp-block-navigation a:where(:not(.wp-element-button)):focus+.wp-block-navigation__submenu-icon,
.wp-block-navigation a:where(:not(.wp-element-button)):hover+.wp-block-navigation__submenu-icon {

    &::before {
        content: '-';
    }
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon {
    right: 10px;
}


/* Header Has Cart */
@media screen and (min-width: 75em) {
    .header-has-cart {
        .wp-block-fse-pro-header-search {
            padding-left: 0;
        }
    }
}

.site-header.has-dark-background-color .wp-block-group .wp-block-woocommerce-customer-account a,
.site-header.has-dark-background-color .wp-block-group .wc-block-mini-cart__button {
    color: var(--wp--preset--color--light) !important;

    &:hover .wc-block-mini-cart__icon,
    &:focus .wc-block-mini-cart__icon {
        opacity: 0.6;
    }
}

.wp-block-header-accounts {
    margin-left: -9px;
}

.wp-block-group {
    .wc-block-mini-cart__button {
        cursor: pointer;
        color: var(--wp--preset--color--body-text);

        &:hover {
            color: var(--wp--preset--color--link-color);
            opacity: 1;
        }
    }

    .wp-block-woocommerce-customer-account {
        padding: 0;
        display: inline-block;

        a {
            color: var(--wp--preset--color--body-text) !important;

            &:hover {
                color: var(--wp--preset--color--link-color) !important;
            }
        }
    }

    .wp-block-woocommerce-customer-account {
        a {
            .wc-block-customer-account__account-icon {
                width: 28px;
                height: 28px;
            }
        }
    }

    .wc-block-mini-cart__button .wc-block-mini-cart__icon {
        width: 28px;
        height: 28px;
    }
}

.wp-block-navigation+.wp-block-woocommerce-customer-account {
    margin-left: -0.5em;
}

/* Primary Search Custom */
.wp-primary-search {
    .wp-search-toggle-container {
        padding: 10px;
        display: inline-block;
        cursor: pointer;

        .wp-search-toggle {
            width: 20px;
            height: 20px;
            display: inline-block;
            -webkit-mask: url(assets/images/search.svg) no-repeat 50% 50%;
            mask-size: auto;
            mask: url(assets/images/search.svg) no-repeat 50% 50%;
            mask-size: auto;
            -webkit-mask-size: cover;
            mask-size: cover;
            background-color: var(--wp--preset--color--foreground);
            text-indent: -9999px;
            @include transition(0.2s ease-in-out);
            line-height: 1;
        }

        &:is(:hover, :focus) {
            .wp-search-toggle {
                background-color: var(--wp--preset--color--link-color);
            }
        }
    }

    .wp-search-container {
        border-radius: 0;
        position: absolute;
        top: calc(100% + 1px);
        background-color: var(--wp--preset--color--background);
        padding: 14px var(--wp--preset--spacing--42);
        margin: 0;
        z-index: 2;
        right: 0;
        left: 0;
        box-sizing: border-box;
        border-bottom: 1px solid var(--wp--preset--color--border-color);
        display: none;
    }

    &.toggled-on {
        .wp-search-toggle {
            -webkit-mask: url(assets/images/close.svg) no-repeat 50% 50%;
            mask-size: auto;
            mask: url(assets/images/close.svg) no-repeat 50% 50%;
            mask-size: auto;
            -webkit-mask-size: cover;
            mask-size: cover;
        }

        .wp-search-container {
            display: block;
        }
    }
}

.wp-block-fse-pro-header-search .search-controller,
.wp-block-fse-pro-header-social .social-controller {
    width: 42px;
    height: 42px;
}

.site-header .wp-block-separator {
    width: 3.2rem !important;
    border-bottom: 1px dotted var(--wp--preset--color--link-color) !important;
    background-color: transparent !important;
    height: 0 !important;
}

/** Vertial Navigation **/
.site-header {
    position: relative;

    .wp-block-group.alignwide.wp-block-header-wrapper {
        z-index: 3;
        position: relative;
    }

    &::before {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        content: '';
        background-color: var(--wp--preset--color--dark);
        opacity: 0.3;
    }

    &.has-background {
        padding-right: 25px;
        padding-left: 25px;
    }

    .wp-block-navigation__container {

        &.is-vertical,
        &.is-vertical .wp-block-navigation-item,
        &.is-vertical .wp-block-navigation-item .wp-block-navigation-item__content {
            width: 100%;

        }
    }
}

.wp-header-social-search-wrap .wp-block-fse-pro-header-social,
.wp-header-social-search-wrap,
.wp-header-social-wrap {
    position: inherit !important;
}

.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):focus>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):focus-within>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    height: auto;
    min-width: 200px;
    opacity: 1;
    overflow: visible;
    visibility: visible;
    width: auto;
}

/** header custom social container toggle **/
.wp-header-social-search-wrap {
    position: inherit;

    .wp-primary-social {
        margin: 0;

        .wp-social-toggle-container {
            padding: 9px 11px;

            .wp-social-toggle {
                width: 20px;
                height: 20px;
                display: inline-block;
                -webkit-mask: url(assets/images/share-icon.svg) no-repeat 50% 50%;
                mask-size: auto;
                mask: url(assets/images/share-icon.svg) no-repeat 50% 50%;
                mask-size: auto;
                -webkit-mask-size: cover;
                mask-size: cover;
                background-color: var(--wp--preset--color--light);
                text-indent: -9999px;
                line-height: 1;
            }
        }

        &:is(:hover, :focus) .wp-social-toggle {
            background-color: var(--wp--preset--color--link-color) !important
        }
    }
}

.wp-header-social-search-wrap .wp-primary-social.toggled-on .wp-social-toggle {
    -webkit-mask: url(assets/images/close.svg) no-repeat 50% 50%;
    mask-size: auto;
    mask: url(assets/images/close.svg) no-repeat 50% 50%;
    mask-size: auto;
    -webkit-mask-size: cover;
    mask-size: cover;
}

.wp-header-social-search-wrap .wp-social-container {
    position: absolute;
    top: 100%;
    width: 100%;
    transition: all 0.2s ease-in-out 0s;
    left: 0;
    z-index: 5;
    padding: 14px var(--wp--preset--spacing--42);
    background: var(--wp--preset--color--dark);
    display: none;
    margin: 0;

    .wp-block-social-links {
        justify-content: center;
    }

}




// &:is(:hover, :focus) {
//     .wp-social-toggle {
//         background-color: var(--wp--preset--color--link-color) !important;
//     }
// }

.wp-header-social-search-wrap .toggled-on .wp-social-container {
    display: block;
}