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


/* Search icon - color and position as needed */
.search-icon {
    display: flex;
    align-items: center;
    position: absolute;
    right: -10px;
    top: 20px;
    transform:translateY(-50%);
    z-index: 2;
    transition:.4s ease-in all;
}

.stuck .search-icon {
     
}

.search-icon {
    color:#222;
    cursor: pointer;
}

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

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


/* 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:18px;
    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:30px 0 20px;
}

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

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

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

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

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

    .mobile-search-form {
        display:flex;
    }
}