.searchwrapper {
    position: initial;
    float: right;
    display: block;
    display: flex;
    margin: 21px 0px 6px 15px;
}

.searchwrapper a {
    font-size: 1.6rem;
    color: #0069b4;
    text-decoration: underline;
    transition: all 0.5s ease;
    margin-left: 5px;
    line-height: 1.1;
    display: inline-block;
}

.searchwrapper li {
    /* margin: 6px; */
    position: initial;
}

.vsb-navinner {
    display: inline-block;
    width: 100%;
}

.vsb-user-list input[type="checkbox"] {
    width: auto;
}

#searchform .searchbar {
    justify-content: flex-start;
    border-radius: 7px;
    transition: all 0.3s ease;
    display: flex;
    position: absolute;
    width: 100%;
    background-color: white;
    right: 30px;
    top: 109%;
    height: 0;
    overflow: hidden;
    max-width: 500px;
}
#searchform .searchbar .arrowhead{
    height: 21px;
    position: absolute; 
    width: 42px;
    z-index: 2;
    bottom: 100%;
    right: 55px;
    overflow: hidden;
}
#searchform .searchbar .arrowhead:after{
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    right: 5px;
    transform: rotateZ(45deg);
    top: 6px;
    border: 1px solid #0069b4;
    background-color: white;
}
#searchform .searchbar:before{
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    right: 60px;
    transform: rotateZ(45deg);
    top: -15px;
}

#searchform .searchbar:before {
    box-shadow: 0px 0px 7px #333;
    box-shadow: 0px 0px 7px #000000aa;
    z-index: -1;
}

#searchtoggle:checked ~ .searchbar {
    height: 45px;
    box-shadow: 0px 0px 7px #333;
    box-shadow: 0px 0px 7px #000000aa;
    border: 1px solid #0069b4;
    overflow: visible;
}

#searchtoggle:checked + i {
    background-color: white;
    color: #0069b4;
}

#searchform .searchbar button {
    margin: 0;
    border-radius: 0 5px 5px 0;
    padding: 0;
    overflow: hidden;
}

#searchform .searchbar button i {
    padding: 10px;
    border-radius: 0;
    height: 100%;
    line-height: 22px;
}

#searchform .searchbar button i:hover {
    border: 1px solid transparent;
    border-left: 1px solid #0069b4;
    background-color: white;
    color: #0069b4;
}

#searchform .searchbar input {
    width: calc(100% - 30px);
    border: none;
    background-color: #fff;
    border-radius: 5px 0 0 5px;
    padding: 10px;
    font-size: 1.2em;
}

#searchform .searchbar input:focus {
    outline: none;
}

#searchtoggle {
    display: none;
}

#searchtoggle:checked {
    /* display: none; */
    opacity: 0.5;
}

.searchwrapper i {
    margin-left: 0;
    border: 1px solid #0069b4;
    margin-left: 5px;
    padding: 8px;
    border-radius: 3px;
    background-color: #0069b4;
    color: white;
    transition: all 0.3s ease;
    font-size: 18px;
    cursor: pointer;
}

.searchbar i {
    margin-left: 0;
}

@media (max-width: 767px) {
    .searchwrapper {
        margin-top: 6px;
    }
    #searchform .searchbar {
        width: calc(100% - 30px);
        right: 15px;
    }
    #searchform .searchbar:before{
        right: 77px;
        width: 25px;
        height: 25px;
        top: -12px;
    }

    #searchform .searchbar .arrowhead{
        right: 72px;
    }
    #searchform .searchbar .arrowhead:after{
        width: 25px;
        height: 25px;
        top: 9px;
    }
}
