/*MAIN STYLE CSS*/
body .ui-autocomplete {
    display: none !important;
}

#_desktop_search_widget {
    float: right;
    min-width: 16.5rem
}
.bonsearch_button.active {
    color: #089c9c;
}

.bonsearch { 
    transition: all .15s ease;
    color: #3a3a3a;
}
    #footer .bonsearch {
        margin-right: 12px;
    }
    #index #footer .bonsearch {
        margin-right: -209.5px;
    }

.bonsearch:hover,
 .bonsearch:focus {
    cursor: pointer;
    color: #089c9c;
}

.bonsearch #searchbox {
	display: flex;
	position: relative;
    z-index: 1042;
	padding-right: 30px
}

.bonsearch #searchbox:after {
	content: '';
	display: block;
	height: 100%;
	width: 100%;
	background: #f6f6f6;
	position: absolute;
	top: 0;
	left: -7px;
	transform-origin: center;
	z-index: -1;
	border-top-left-radius: 30px 90px;
	transform: skewX(-15deg);
}
    #index .bonsearch #searchbox:after {
        border-bottom-right-radius: 30px 90px;
    }

.bonsearch #input_search {
    min-width: 300px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 13px;
    color: #8a8888;
}

.bonsearch #input_search:focus {
    outline: none;
}

.bonsearch .search-form-button {
	width: 52px;
	height: 42px;
	position: absolute;
	right: -20px;
	overflow: hidden;
    transition: all .15s ease;
}
    #index .bonsearch .search-form-button {        ;
        right: 0}

.bonsearch .bonsearch_btn {
    background-color: rgb(20, 26, 33);
	cursor: pointer;
	height: 60px;
	width: 45px;	
	border: 1px solid transparent;
	position: absolute;
	top: -13px;
	right: 0;
	transform: rotate(15deg);
	transform-origin: center;
	padding: 0 0 0px 7px;
	border-top-left-radius: 36px 70px;
}
    #index .bonsearch .bonsearch_btn {
        transform: unset;
        background: transparent;
        right: 0}

.bonsearch .search-form-button:hover,
 .bonsearch .search-form-button:focus {   
    right: -22px
}

.bonsearch .bonsearch_btn:before {
	content: "\e032";
	font-family: "fl-outicons";
	font-size: .975rem;
    font-weight: 700;
	color: #ccc;
	position: absolute;
	top: 58%;
	left: 35%;
	transform: translate3d(-50%,-50%,0) rotate(50deg);	
}
    #index .bonsearch .bonsearch_btn:before {
        font-size: 1rem;	
        color: #ccc;
        transform: translate3d(-50%,-65%,0) rotate(70deg)}

.bonsearch .search-form-inner {   
    display: flex;
}

/* .bonsearch-microphone */
#bonsearch-popup-wrapper.modal {
	z-index: 1350;	
	left: calc(50vW - 124px);
}
#bonsearch-popup-wrapper .modal-dialog {
    min-width: 100%;
    margin: 0 auto;
}

#bonsearch-popup-wrapper .modal-content {
    max-width: 260px;
    align-items: center;
}

#bonsearch-popup-wrapper .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#bonsearch-popup-wrapper .modal-body p {
	text-align: center;
	color: #8d8d8d;
	font-size: .875rem;
	width: 80%;
	margin: 0 auto
}

.bonsearch .bonsearch-microphone {
    border: none;
    padding: 0 11px;
    position: absolute;
    right: 25px;
    display: flex;
    align-items: center;
    height: 40px;
    cursor: pointer;
    background-color: #f6f6f6;
}
    #index .bonsearch .bonsearch-microphone {
        right: 35px}

.bonsearch .bonsearch-microphone:focus {
    outline: none;
}

.bonsearch .bonsearch-microphone i {
    color: #ccc;
    font-size: 22px;
}

.bonsearch .bonsearch-microphone:before {
    position: absolute;
    content: '';
    background-color: #dedede;
    width: 1px;
    height: 70%;
    left: 0;
    top: 15%;
}

@keyframes animate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes animate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.bonsearch-icon-speech.show::after {
    animation: animate 2s ease;
    animation-iteration-count: infinite;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 16px solid rgba(8, 156, 156, 0.5);
    position: absolute;
    content: '';
    z-index: -1;
}

.bonsearch-icon-speech.show {
    background-color: #089c9c;
}

.bonsearch-icon-speech {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #E84B3D;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    position: relative;
    z-index: 3;
}

.bonsearch-icon-speech i {
    color: #fff;
    font-size: 24px;
}

.bonsearch-speek-text,
.bonsearch-error-text,
.bonsearch-unsupport-text {
    display: none;
}

.bonsearch-speek-text.show,
.bonsearch-error-text.show {
    display: block;
}

#search_popup {
	width: 418px;
	background: rgba(255,255,255,.997);
	z-index: 1042;
	position: absolute;
	top: 46px;
    left: -12px;
	padding-left: 15px;
	box-shadow: 0 2px 2px rgba(0,0,0,.011);
}

#search_popup a,
 #header #search_popup a:hover {
     color: #8d8d8d
}

.bonsearch .reference,
 #search_popup .search_info .price {
    margin-bottom: .215rem;
    display: block;
    font-weight: 500;
    font-size: .975rem;
}

.bonsearch .reference span {
    color: #232323
}

#search_popup .wrap_item {
    padding: 15px 0;
}

#search_popup .wrap_item h6 {	
	font-size: .875rem;
    font-weight: 500;
	line-height: 1.5em;
    color: #232323;
	margin: 0;	
}

#search_popup .wrap_item .product_image {
    overflow: hidden;
    display: block;
    min-height: 90px;
    margin-bottom: 15px;
}

#search_popup .wrap_item .product_image img:hover {
    opacity: .7;
}

#search_popup .wrap_item .product_image h5:hover {    
    color: #5ca4ff;
}
    html.light #search_popup .wrap_item .product_image h5:hover {    
        color: #6e9cd7;
    }

#search_popup .wrap_item .product_image:last-child {
    margin: 0;
}

#search_popup .search_img {
    float: left;
    width: 70px;
    margin-right: 12px;
}

#search_popup .search_info {
	float: left;
	width: 217px;
	padding-left: .7rem;
	border-left: 1px solid;
	border-image: linear-gradient(180deg, #d8d8e3 70%, transparent 30%) 1;
}

#search_popup .search_img img {
    max-width: 100%;
    height: auto;
    transition: all .15s ease;
    background: #fafafa;
}

#search_popup .search_info h5 {
    font-size: .975rem;
    font-weight: 500;
    color: #232323;  
    margin-bottom: 8px;
    transition: all .15s ease;
}


/*Responsive part*/
@media (max-width: 991px) {
    #index #_desktop_search_widget {
        position: absolute;
        transform: translate(0, 200px);
        transition: all .15s ease;        
        z-index: 1005;        
        left: auto;
        top: 0;
        right: 15px;
        margin-top: -120px;
    } 

    #search_popup {
        width: 407px;
        padding-left: 10px;
    }

    .search-form-inner {
        display: flex;
    }

    .wrap_item {
        padding: 10px 0;
    }

    #search_popup .wrap_item .product_image {
        margin-bottom: 10px;
    }

}

@media (max-width: 767px) {
    #bonsearch-popup-wrapper .modal-content {
        margin: 0 auto;
    }

    .bon-search-icon i {
        font-size: 25px;
    }

    .bon-search-icon:hover i {
        color: #089c9c;
    }

    .bon-search-icon {
        cursor: pointer;
    }
    
    #_desktop_search_widget:not(
        #index #_desktop_search_widget) {
        display: none
    }

    #_desktop_search_widget.active {
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .bonsearch #input_search {
        width: 270px;
        min-width: unset;
    }

    #search_popup {
        width: 308px;
    }
}
