/*
* Base CSS for Search Functionality
* Last Update: 2022-11-11
*/


/* Search icon - color and position as needed */
.search-icon {
    display: block;
    position: absolute;
    right: 3rem;
    top: 7.5rem;
    transform:translateY(-50%);
    z-index: 2;
    transition:.4s ease-in all;
}


.search-icon {
    cursor: pointer;
}

.search-icon i {
    font-size:22px;
}

.search-icon svg {
    width:30px!important;
    height:30px;
}

/* Search overlay - color as needed */
.search-overlay {
    position:fixed;
    top: 0;
    bottom:0;
    left:0;
    right:0;
    z-index: 9999999999990;
    background: rgba(255,255,255,.9);
    width:100%;
    height:0;
    display:flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    transition:.4s ease-in all;
    opacity: 0;
    
}

.search-overlay.active {
    height:100%;
    opacity:1;
}

.search-close {
    position: absolute;
    right:3.3rem;
    top:5.2rem;
    color:#222;
    font-size:36px;
    font-weight:bold;
    cursor: pointer;
}

/* Search overlay form - color as needed */
.search-overlay > form {
    display:flex;
    width:100%;
    max-width:480px;
    justify-content: space-between;
    align-items: stretch;
}

.search-overlay > form > input {
    width:100%;
    background:transparent;
    border:none;
    border-bottom:1px solid #222;
    font-size:20px;
    color:#222;
    padding:8px 12px;
}

.search-overlay > form > button {
    width:200px;
    margin-left:20px;
    font-size:18px;
    font-weight:700;
    letter-spacing:2px;
    text-transform: uppercase;
    background:#222;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor: pointer;
}

.search-overlay > form > button:hover {
    background:#fff;
    color:#222;
}


/* Mobile search form - style and color as needed */
.mobile-search-form {
    display:none;
    width:100%;
    max-width:100%;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 20px;
}

.mobile-search-form > input {
    width:100%;
    background:rgba(0,0,0,.15);
    border:1px solid #eee;
    font-size:18px;
    color:black;
    padding:8px;
    font-weight:400;
    border-radius: 7px;
}

.mobile-search-form > button {
    width:120px;
    margin-left:20px;
    font-size:18px;
    font-weight:400;
    letter-spacing:2px;
    text-transform: uppercase;
    color:#fff;
    border:none;
    border-radius:3px;
    cursor: pointer;
    background-color: #222;
    opacity: .6;
}

.search-result {
    padding:3rem 0 0;
    border-bottom:1px solid #adadad;
}

@media screen and (max-width: 1280px) {
    .mobile-search-form  {
        display: none;
    }
}

@media screen and (max-width: 1042px) {
    .mobile-search-form  {
        display: flex;
    }
}



.search-input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: black;
    opacity: .7; /* Firefox */
}
  
.search-input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: black;
    opacity: .7;
}

.search-input::-ms-input-placeholder { /* Microsoft Edge */
    color: black;
    opacity: .7;
}

@media screen and (max-width:1024px){
    .search-icon {
        display:none;
    }
}