.wp-block-kbg-search-box,
.block-bg-search-color {
    background: var( --color-main );
    color: #fff;
    position: relative;
    .wp-block-cover__inner-container{
        justify-content: center;
        width: var(--width-full);
    }

    .box-media {
        margin: 32px 45px 32px 0;
        position: relative;
        z-index: 2;
    }
}




.negative-margin {
    margin-top: -20px;
    @include mq('md') {
        margin-top: -30px;
    }
    @include mq('lg') {
        margin-top: -50px;
    }
}
.negative-margin-bottom{
    margin-bottom: 0 !important;
}

.alignfull.wp-block-kbg-search-box {
    padding: 0 20px;

    @include mq('lg') {
        padding: 0;
    }
}

.search-content {


    
    @include mq('md') {
        width: 100%;

    }

    position: relative;
    z-index: 2;

    input {
        padding-left: 30px;
        color: var(--color-txt);
    }

    .h1 {
        color: #fff;
        margin-bottom: 15px;
        @include mq('md'){
            margin-bottom: 30px;
        }
        padding-top: 0;
    }


    div.wp-block-search {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;

       .wp-block-search__inside-wrapper input.wp-block-search__input {
            border: none;
            height: 50px;
            line-height: 50px;
            padding: 0 20px;
            background-color: #FFF;
            @include mq('md') {
                height: 60px;
                line-height: 60px;
                padding: 0 25px;
            }
            @include mq('lg') {
                height: 65px;
                line-height: 65px;
                padding: 0 30px;
            }
            &:focus{
                border: none;
                box-shadow: none;
            }
        }
        .wp-block-search__button {
            border: none;
            max-width: 60px;
            @extend %button-style-primary;
            height: 40px;
            line-height: 40px;
            font-size: 1.2rem;
            @include mq('md') {
                height: 46px;
                line-height: 46px;
                min-width: 160px;
                max-width: auto;
                font-size: 1.4rem;
            }
            @include mq('lg') {
                height: 50px;
                line-height: 50px;
            }
            svg path {
                fill: var(--color-txt);
            }
        }
    }

    .wp-block-search__button-inside {
            
        .wp-block-search__inside-wrapper {
            background-color: #fff;
            border: none;
            align-items: center;
            padding: 0 6px 0 0;
            @include mq('md') { 
                padding: 0 8px 0 0;
            }
        }

        input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, input[type=password]:focus, input[type=search]:focus, input[type=number]:focus, input[type=tel]:focus, input[type=range]:focus, input[type=date]:focus, input[type=month]:focus, input[type=week]:focus, input[type=time]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=color]:focus, select:focus, textarea:focus {
            box-shadow: none !important;
        }
    }

    .wp-block-search__button-outside {
            
        .wp-block-search__inside-wrapper {
            align-items: center;

            input {
                background-color: #fff;
                height: 40px;
                line-height: 40px;
                @include mq('md') {
                    height: 50px;
                    line-height: 50px;
                }
                @include mq('lg') {
                    height: 60px;
                    line-height: 60px;
                }
            }
        }
    }

    .wp-block-search__no-button {
        input {
            background-color: #fff;
            height: 40px;
            line-height: 40px;
            @include mq('md') {
                height: 50px;
                line-height: 50px;
            }
            @include mq('lg') {
                height: 60px;
                line-height: 60px;
            }
        }
    }

    .wp-block-search__button-inside.wp-block-search__icon-button {
        .wp-block-search__button {
            background-color: transparent;
            min-width: 60px;
        }
    }

    .wp-block-search__button-outside.wp-block-search__icon-button {
        .wp-block-search__button {
            min-width: 60px;
        }
    }

}


// Type small && Type big + icon 
.search-content .kbg-small,
.search-content .kbg-big.kbg-icon {

    @include mq('lg') {
        flex: 0 0 32%;
    }

    &.wp-block-search {
        max-width: 440px;
    }
}
.search-content.kbg-icon{
    max-width: 480px;
}
.kbg-big,
.kbg-default .kbg-small{
    &.wp-block-search .wp-block-search__inside-wrapper{
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }
}

// Type boxed 
.search-content .kbg-boxed {

    flex: 0 0 100%;

    @include mq('lg') {
        flex: 0 0 480px;
    }
   

    .h1 {
        margin-bottom: 10px;
        @include mq('lg') {
            margin-bottom: 20px;
        }
    }
    &.wp-block-search{
        max-width: 480px;
    }
    &.wp-block-search.kbg-boxed form {
        background: rgba(0,0,0,.1);
        padding: 15px;
        @include mq('md'){ 
            padding: 16px;
        }
        @include mq('lg'){ 
            padding: 20px;
        }  



        .wp-block-search__inside-wrapper {
            display: block;
            background: transparent;
            padding: 0;

            input {
                background: #fff;
                margin-bottom: 10px;
                text-align: center;
                height: 50px;
                line-height: 50px;
                @include mq('md') {
                    height: 60px;
                    line-height: 60px;
                }
                @include mq('lg') {
                    height: 65px;
                    line-height: 65px;
                }
            }
            .wp-block-search__button {
                width: 100%;
                max-width: 100%;
                min-width: auto;
                margin: 0;
                height: 50px;
                line-height: 50px;
                @include mq('md') {
                    height: 60px;
                    line-height: 60px;
                }
                @include mq('lg') {
                    height: 65px;
                    line-height: 65px;
                }
                svg path {
                    fill: var(--color-button-primary-text);
                }
            }
        }
        
    }

    .wp-block-search__button-inside.wp-block-search__icon-button {
        .wp-block-search__button {
            @extend %button-style-primary;
        }
    }

}
.entry-content .wp-block-wp-block-kbg-search-box.wp-block-cover{
    padding-top: 0;
    padding-bottom: 0;
}


// Search input autocomplete styling
.ui-helper-hidden-accessible {
    display: none;
}
.wp-block-search__inside-wrapper {
    position: relative;
    z-index: 4;
    input {
        position: relative;
        z-index: 4;
    }
}

.kbg-sidebar-right,
.kbg-sidebar-left{

    .search-content.kbg-small, 
    .search-content.kbg-big.kbg-icon,
    .search-content div.wp-block-search {
        flex: 0 0 500px;
        max-width: 500px;
    }
}
.menu-quick-links-container .kbg-pre-search-menu{
    display: inline-flex;
    list-style: none;
    font-size: 1.2rem;
    li{
        margin-bottom: 0;
        margin-left: 5px;
    }
    a{
        box-shadow: none;
        opacity: 1;
        color: #FFF;
        background: var(--color-txt);
        padding: 4px 10px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        font-size: 1rem;
        &:hover{
            box-shadow: none;
            opacity: 1;
            background: var(--color-main);
        }
    }
}
.kbg-pre-search{
    display: flex;
    align-items: center;
    margin-top: 30px;
    justify-content: center;
    span{
        font-size: 1.2rem;   
        color: #FFF;
        opacity: .8;    
        height: 19px;
    }
}