/* ===== WRAPPER THANH XANH ===== */
.UISingleSearch_custom {
    background: #05a652;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: flex-end; /* đẩy search sang phải */

    padding: 0 10px;
    position: relative;
    z-index: 999;
}

/* ===== SEARCH BUTTON ===== */
.UISingleSearch_custom .SingleSearch {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    overflow: hidden;
    background: transparent; /* bỏ nền riêng */
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BOX ===== */
.UISingleSearch_custom .SearchBox {
    display: flex;
    align-items: center;
    height: 100%;
}

/* ===== INPUT ẨN BAN ĐẦU ===== */
.UISingleSearch_custom .Text {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* ===== PLACEHOLDER ===== */
.UISingleSearch_custom .Text::placeholder {
    color: rgba(255,255,255,0.7);
}

/* ===== ICON ===== */
.UISingleSearch_custom .Button {
    width: 40px;
    height: 40px;
    background: url("images/s.png") no-repeat center;
    background-size: 18px;
    border: none;
    filter: brightness(0) invert(1); /* icon trắng */
}

/* ===== EXPAND ===== */
.UISingleSearch_custom .SingleSearch:focus-within {
    width: 260px;
    border-radius: 25px;
    background: rgba(255,255,255,0.15); /* nhẹ cho đẹp */
    backdrop-filter: blur(6px);
    padding: 0 5px;
}

/* ===== HIỆN INPUT ===== */
.UISingleSearch_custom .SingleSearch:focus-within .Text {
    width: 100%;
    opacity: 1;
    padding: 0 10px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .UISingleSearch_custom {
        height: 45px;
        padding: 0 8px;
    }

    .UISingleSearch_custom .SingleSearch:focus-within {
        width: 90vw;
    }
}