.bp-element-search {
    &.layout-1 {
        .title {
            margin: 2px;
        }
        .search-button {
            &::before{
                content: "\f4a4";
                font-family: Ionicons;
            }
        }
        .search-form {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s;
            z-index: 99;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            &.open {
                opacity: 1;
                visibility: visible;
                .form-search .search-field {
                    opacity: 1;
                    visibility: visible;
                    transform: scale3d(1, 1, 1);
                    transition-duration: 1s;
                }
            }
            &.loading .form-search:after {
                content: "\f29a";
                font-family: Ionicons;
                font-size: 40px;
                position: absolute;
                right: 0;
                top: 20px;
                color: #fff;
                display: inline-block;
                width: 60px;
                height: 60px;
                line-height: 60px;
                animation: spin 2s linear infinite;
                transition: all 0.5s;
            }
        }
        .close-form {
            //font-size: 30px;
            position: absolute;
            right: 50px;
            top: 100px;
            color: #f0f0f0;
            cursor: pointer;
            transition: all 0.5s;
            &::before{
                content: "\f12a";
                font-size: 20px;
                font-family: Ionicons;
            }
            &:hover {
                color: red;
            }
        }
        .form-search {
            width: 80%;
            position: relative;
            &:after {
                display: none;
            }
            .search-field {
                width: 100%;
                height: 100px;
                padding: 20px 0;
                background: transparent;
                font-size: 60px;
                border: 0;
                visibility: hidden;
                opacity: 0;
                color: #fff;
                border-bottom: 4px solid #2575FC;
                transform: scale3d(0, 1, 1);
                transition: all 0.3s;
                transform-origin: 0 50% center;
            }
            .search-notice {
                display: inline-block;
                float: right;
                margin-top: 5px;
                color: #f0f0f0;
            }
        }
        .list-search {
            padding-left: 0;
            list-style: none;
            display: inline-block;
            width: 80%;
            margin: 0 auto;
            transition: all 0.5s;
            li {
                padding: 10px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                font-size: 20px;
                display: block;
                letter-spacing: 0.05em;
                a {
                    color: rgba(255, 255, 255, 0.8);
                    transition: all 0.3s;
                    &:hover {
                        color: #ffffff;
                    }
                }
            }
        }
    }
    &.layout-2 {
        .thim-search-box {
            display: inline-block;

            .toggle-form {
                display: block;
                width: 41px;
                height: 41px;
                cursor: pointer;
                text-align: center;
                line-height: 40px;
                font-size: 20px;
                border-radius: 50%;
                transition: all 0.5s;
            }

            .icon-close {
                position: absolute;
                right: 0;
                top: 0;
                font-size: 36px;
                width: 50px;
                height: 50px;
                line-height: 50px;
                text-align: center;
                color: #fff;
                display: inline-block;
                cursor: pointer;
                &:focus {
                    outline: 0;
                }
                i {
                    display: inline-block;
                    -webkit-transform: rotate(0deg);
                    -moz-transform: rotate(0deg);
                    -ms-transform: rotate(0deg);
                    -o-transform: rotate(0deg);
                    transform: rotate(0deg);
                    -webkit-transition: transform 0.5s ease-out;
                    -khtml-transition: transform 0.5s ease-out;
                    -moz-transition: transform 0.5s ease-out;
                    -ms-transition: transform 0.5s ease-out;
                    -o-transition: transform 0.5s ease-out;
                    transition: transform 0.5s ease-out;
                }
                &:hover i {
                    opacity: 0.5;
                    -webkit-transform: rotate(180deg);
                    -moz-transform: rotate(180deg);
                    -ms-transform: rotate(180deg);
                    -o-transform: rotate(180deg);
                    transform: rotate(180deg);
                }
            }
            .form-search-wrapper {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 99998;
                opacity: 0;
                -webkit-transform: translate(0, -200%);
                -moz-transform: translate(0, -200%);
                -ms-transform: translate(0, -200%);
                -o-transform: translate(0, -200%);
                -webkit-transition: all 0.3s ease-out;
                -khtml-transition: all 0.3s ease-out;
                -moz-transition: all 0.3s ease-out;
                -ms-transition: all 0.3s ease-out;
                -o-transition: all 0.3s ease-out;
                transition: all 0.3s ease-out;
                -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
                -khtml-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
                -moz-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
                -ms-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
                -o-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
                box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);

                .form-contain {
                    position: relative;
                    margin-top: 60px;
                    margin-bottom: 50px;
                    max-width: 1140px;
                    .form-search {
                        position: relative;
                        width: 100%;
                        padding: 0 35px;
                        height: 100% !important;
                        button {
                            font-size: 20px;
                            position: absolute;
                            top: 0;
                            right: 35px;
                            width: 50px;
                            height:50px;
                            line-height: 50px;
                            border: 0;
                            outline: 0;
                            cursor: pointer;
                            background-color: transparent;
                        }
                        .search-field {
                            height: 50px;
                            line-height: 50px;
                            width: 100%;
                            padding: 0 30px;
                            margin-bottom: 0;
                            background: #fff;
                            border: none;
                            border-radius: 0;
                            &:-moz-placeholder {
                                font-style: italic;
                            }
                            // Firefox 4-18
                            &::-moz-placeholder {
                                font-style: italic;
                            }
                            // Firefox 19+
                            &:-ms-input-placeholder {
                                font-style: italic;
                            }
                            // Internet Explorer 10+
                            &::-webkit-input-placeholder {
                                font-style: italic;
                            }
                        }
                    }
                }

                .results {
                    padding: 0 35px;
                    ul {
                        font-weight: 400;
                        margin: 0;
                        list-style: none;
                        padding: 35px 30px 0;
                        text-align: left;
                        a {
                            color: #fff;
                            line-height: 35px;
                            padding: 0;
                            opacity: .7;
                            &:hover {
                                opacity: 1;
                            }
                        }
                    }
                }

                .search-found {
                    display: none;
                    .row {
                        margin: 0;
                        ul li {
                            display: block !important;
                        }
                    }
                }

                .no-results {
                    width: 100%;
                    &:before {
                        content: "\f11a";
                        font-family: FontAwesome;
                        padding: 0 5px;
                        font-style: normal;

                    }
                    text-align: center;
                    margin-top: 42px;
                    color: #fff;
                    font-style: italic;
                }

            }

            &.loadmore .thim-icon-loading {
                display: block !important;
                position: relative;
                z-index: 9;
                top: auto;
                left: 0;
                right: 0;
                transform: translateY(0);
            }
        }

        .thim-icon-loading {
            display: none;
            .sk-three-bounce .sk-child {
                background: #fff;
                width: 16px;
                height: 16px;
            }
        }
    }
    &.vblog-layout-popup {
        .search-form {
            position: fixed;
            z-index: 9999;
            top: 0;
            right: 0;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            width: 100%;
            height: 100%;

            .form-search {
                width: 80%;
                position: relative;

                .search-field {
                    width: 100%;
                    height: 100px;
                    padding: 20px 0;
                    background: transparent;
                    font-size: 60px;
                    border: 0;
                    color: #fff;
                    border-bottom: 4px solid #fd6500;
                    transform: scale3d(0, 1, 1);
                    transition: all 0.3s;
                    visibility: hidden;
                    opacity: 0;
                }

                .search-notice {
                    isplay: inline-block;
                    float: right;
                    margin-top: 5px;
                    color: #f0f0f0;
                }
            }

            &.open {
                opacity: 1;
                visibility: visible;

                .form-search {
                    .search-field {
                        opacity: 1;
                        visibility: visible;
                        transform: scale3d(1, 1, 1);
                        transition-duration: 1s;
                    }
                }
            }

            .close-form {
                font-size: 30px;
                position: absolute;
                right: 50px;
                top: 100px;
                color: #fff;
                cursor: pointer;
                -webkit-transition: color .3s;
                -khtml-transition: color .3s;
                -moz-transition: color .3s;
                -ms-transition: color .3s;
                -o-transition: color .3s;
                transition: color .3s;

                &:before {
                    content: "\f12a";
                    font-size: 20px;
                    font-family: Ionicons;
                }

                &:hover{
                    color:red;
                }
            }
        }

        .list-search {
            position: absolute;
            left: 10%;
            top: calc(50% + 80px);
            width: 80%;
            max-height: calc(50% - 110px);
            overflow-y: auto;

            li {
                border-bottom: 1px solid rgba(255, 255, 255, .1);
                padding: 8px 0;

                a {
                    font-weight: 400;
                    font-size: 16px;
                    line-height: 1.5;
                    color: #ccc;
                    transition: all .2s;

                    &:hover {
                        color: #fff;
                    }
                }
            }
        }
    }
}
body.thim-active-search {
    header .bp-element-search.layout-2 .thim-search-box .form-search-wrapper {
        opacity: 1;
        transform: translateY(0);
        transition: all .3s ease-out;
        box-shadow: 0 2px 5px rgba(0,0,0,.2);
    }
}

body.admin-bar .bp-element-search.layout-2 .thim-search-box .form-search-wrapper {
    margin-top: 32px;
}