/*Search Box CSS*/

.aogm-search-button-wrapper {
    display: block;
    cursor: pointer;
    vertical-align: middle;
    text-align: right;
}

.aogm-search-form__container {
    display: flex;
    overflow: hidden;
}

.aogm-search-form__input {
    flex-basis: 100%;
}

.aogm-search-icon-toggle i.fa-search {
    display: inline-block;
    position: absolute;
    width: 20px;
    box-sizing: content-box;
    padding: 10px;
}

.aogm-search-icon-toggle i:before {
    vertical-align: middle;
}
/*search icon toggle css*/

.aogm-search-button-wrapper input[type=search] {
    border: 0;
    padding: 10px;
    cursor: pointer;
    border-radius: 0;
    transition: all .5s;
    box-sizing: border-box;
    outline: none;
}

.aogm-search-button-wrapper button {
    border: none;
    border-radius: 0;
    padding: 0;
}

.aogm-search-button-wrapper input[type=search]:focus {
    cursor: auto;
    border: none;
    box-shadow: none;
}

.aogm-search-icon-toggle input:-moz-placeholder,
.aogm-search-icon-toggle input::-webkit-input-placeholder {
    color: transparent;
}

.aogm-search-layout-icon .aogm-search-icon-toggle .aogm-search-form__input {
    background-color: unset;
    height: 100%;
}

.aogm-search-button-wrapper.aogm-input-focus {
    display: flex;
}

.aogm-search-form__container .aogm-search-submit {
    min-width: 3%;
    position:relative;
}

.aogm-search-form__container button#clear,
.aogm-search-icon-toggle button#clear {
    visibility: hidden;
    position: absolute;
    right:0; 
    top:0;
    padding: 0 8px;
    font-style: normal;
    user-select: none;
    cursor: pointer;
    bottom:0;
    margin-right:10px;
    background-color: transparent;
}

.aogm-search-button-wrapper input[type="search"]::-webkit-search-decoration,
.aogm-search-button-wrapper input[type="search"]::-webkit-search-cancel-button,
.aogm-search-button-wrapper input[type="search"]::-webkit-search-results-button,
.aogm-search-button-wrapper input[type="search"]::-webkit-search-results-decoration { 
    display: none; 
}

.aogm-search-form__container button#clear-with-button{
    visibility: hidden;
    position: absolute;
    top: 0;
    padding: 0 8px;
    font-style: normal;
    font-size: 1.2em;
    user-select: none;
    cursor: pointer;
    bottom:0;
    background-color: transparent;
}

.aogm-search-button-wrapper, 
.aogm-search-form__container,
.aogm-search-icon-toggle,
.aogm-search-button-wrapper .aogm-search-icon-toggle i,
.aogm-search-button-wrapper .aogm-search-icon-toggle i:before {
    position: relative;
}

.aogm-search-button-wrapper .aogm-search-icon-toggle .aogm-search-form__input {
    position: absolute;
    width: 0;
    right: 0;
    background-color: transparent;
}

.aogm-search-icon-toggle {
    width: 100%!important;
}

.aogm-search-button-wrapper.aogm-input-focus .aogm-search-icon-toggle .aogm-search-form__input{
    position: absolute;
    width: 250px;
    right: 0;
}

.aogm-search-layout-text .aogm-search-form__container,
.aogm-search-layout-icon_text .aogm-search-form__container,
.aogm-search-layout-text .aogm-search-form__container .aogm-search-form__input,
.aogm-search-layout-icon_text .aogm-search-form__container .aogm-search-form__input {
    width: 100%;
}

.aogm-search-icon-toggle {
    line-height: 1.5;
}
