@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
/*
    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }
    body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #efa94a;
        overflow: hidden;
    }*/
.cool-input-box {
    position: relative;
    width: 60%;
    max-width: 50px;
    height: 55px;
    margin: 0 50px;
    background-color: #fff;
    border-radius: 6px;
    transition: all 0.5s ease-in-out;
}
.cool-input-box.open {
    max-width: 350px;
}
.cool-input-box input {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    padding: 0 15px;
    border: none;
    border-radius: 6px;
    outline: none;
    transition: all 0.5s ease-in-out;
}
.cool-input-box.open input {
    padding: 0 15px 0 65px;
}

.cool-input-box .cool-search {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
}
.cool-input-box.open .search {
    border-radius: 6px 0 0 6px;
}
.cool-search .cool-search-icon {
    font-size: 30px;
    color: #1c1c1c;

}
.cool-input-box .close-icon {
    position: absolute;
    top: 50%;
    right: -45px;
    font-size: 30px;
    color: #16527a;
    padding: 5px;
    transform: translateY(-50%);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
}
.cool-input-box.open .close-icon {
    transform: translateY(-50%) rotate(180deg);
    pointer-events: auto;
    opacity: 1;
}