/* ================= YOUR EXISTING DESIGN ================= */
input.custom-search-input{
    background:#FFF8E1;
}

.custom-search-form {
    position: relative;
    display: flex;
    margin: 0 auto;
}

.custom-search-input {
    flex: 1;
    padding: 10px 15px 10px 45px;
    border: 1px solid;
    border-radius: 8px !important;
    font-size: 16px;
    transition: all 0.3s;
    text-align: left !important;
    border-color: rgb(224 224 224/var(--tw-border-opacity,1)) !important;
}

.custom-search-input:focus {
    border-color: #ff7f27;
    outline: none;
}

.custom-search-button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    color: #E91E63;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

input.custom-search-input{
    padding:12px 40px;
    height:50px;
}

.custom-search-button:hover {
    color: #000;
}

/* Blinking cursor */
.custom-search-input::placeholder {
    padding: 0 !important;
    border-right: 0px solid #999;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

/* ================= MOBILE INPUT STYLE ================= */
@media (max-width: 768px) {
    .custom-search-form { max-width: 80%; }

    .custom-search-input{
        border-radius:0px !important;
        border: none !important;
        caret-color: transparent;
    }

    .custom-search-button {
    position: absolute;
    left: 0px;

}
}

/* ================= MOBILE POPUP ================= */
.search-popup-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.search-popup-overlay.active{
    opacity: 1;
    pointer-events: auto;
}

.search-popup{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: #FFF8E1;
    z-index: 99999;
    padding: 20px;
    transform: translateY(-100%);
    transition: .35s ease;
}

.search-popup.active{
    transform: translateY(0);
}

.search-popup input{
    width: 100%;
    padding: 12px 40px;
    height: 50px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgb(224 224 224);
    outline: none;
    background: #fff;
}

.search-popup input:focus{
    border-color: #ff7f27;
}

.search-popup-close{
    position: absolute;
    right: 35px;
    top: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #E91E63;
}
input.search-popup-input::placeholder {
    color: #6A0DAD;
}

[type=search] {
    color: #6A0DAD;

}