/* HaiSan autocomplete. Tat ca class deu co prefix hsac, khong de len CSS cu. */
.hsac-root{position:relative;box-sizing:border-box;font-family:inherit;z-index:1005}
.hsac-root *{box-sizing:border-box}
.hsac-root .hsac-form{display:block;margin:0;padding:0;border:0}
.hsac-root .hsac-bar{display:flex;align-items:stretch;min-height:46px;background:#fff;border:1px solid #e8e8e8;border-radius:10px;box-shadow:0 3px 14px rgba(0,0,0,.07);overflow:hidden}
.hsac-root .hsac-input,.hsac-root .hsac-category{background:#fff;color:#252525;box-shadow:none!important;outline:0;border:0!important;font-family:inherit;font-size:14px;margin:0;min-width:0}
.hsac-root .hsac-input{flex:1;max-width:100%;width:100%;height:46px!important;padding:0 12px 0 40px!important;background:#fff url(../img/i-se.png) no-repeat 13px center!important;background-size:18px auto!important;border-radius:0!important}
.hsac-root .hsac-input:focus{background-color:#fff!important}
.hsac-root .hsac-input::placeholder{color:#888;opacity:1}
.hsac-root .hsac-category{width:110px;flex:none;border-left:1px solid #eee!important;padding:0 8px!important;font-size:13px;cursor:pointer;appearance:auto}
.hsac-root .hsac-submit{width:112px;flex:none;border:0;margin:0;background:#ed1c24;color:#fff;cursor:pointer;font-size:13px;font-weight:700;font-family:inherit;transition:background .2s;line-height:1.3;padding:0 10px;white-space:nowrap;text-align:center}
.hsac-root .hsac-submit:hover,.hsac-root .hsac-submit:focus{background:#c91820;color:#fff}
.hsac-root .hsac-dropdown{position:absolute;top:calc(100% + 7px);left:0;right:0;min-width:290px;background:#fff;border:1px solid #e9e9e9;border-radius:12px;box-shadow:0 16px 42px rgba(20,20,20,.19);overflow:hidden;z-index:99999;color:#292929;text-align:left;max-height:min(550px,70vh);overflow-y:auto;overscroll-behavior:contain}
.hsac-root .hsac-dropdown[hidden]{display:none!important}
.hsac-root .hsac-dropdown-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;background:#fbfbfb;padding:11px 14px;font-weight:700;color:#747474;border-bottom:1px solid #eee}
.hsac-root .hsac-dropdown-head .hsac-count{color:#a2a2a2;font-weight:400}
.hsac-root .hsac-status{color:#747474;font-size:13px;padding:20px;text-align:center}
.hsac-root .hsac-results{list-style:none!important;margin:0!important;padding:0!important;display:block!important;position:static!important;width:100%!important;border:0!important;background:#fff!important;box-shadow:none!important}
.hsac-root .hsac-result{display:block!important;position:static!important;margin:0!important;padding:0!important;border-bottom:1px solid #f0f0f0!important;background:#fff!important;float:none!important;line-height:normal!important}
.hsac-root .hsac-item{display:flex!important;align-items:center;gap:11px;padding:10px 13px!important;text-decoration:none!important;color:#252525!important;min-height:75px;line-height:1.45!important;background:#fff!important}
.hsac-root .hsac-result.is-active .hsac-item,.hsac-root .hsac-item:hover,.hsac-root .hsac-item:focus{background:#fff4f4!important;text-decoration:none!important}
.hsac-root .hsac-thumb{width:57px;height:57px;flex:none;border:1px solid #eee;border-radius:8px;object-fit:contain;background:#fff}
.hsac-root .hsac-thumb-placeholder{width:57px;height:57px;flex:none;border:1px solid #eee;border-radius:8px;background:#f4f5f7;display:flex;align-items:center;justify-content:center;font-size:11px;color:#a0a0a0}
.hsac-root .hsac-item-info{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.hsac-root .hsac-item-name{font-size:13px;font-weight:700;color:#202020;line-height:1.45;max-height:2.9em;overflow:hidden}
.hsac-root .hsac-item-price{font-size:12px;font-weight:700;color:#dc232a;line-height:1.35}
.hsac-root .hsac-item-arrow{color:#bbb;font-size:18px;font-weight:400;flex:none}
.hsac-root .hsac-see-all{display:block!important;text-align:center!important;background:#fff7f7!important;color:#cf1c25!important;font-size:13px!important;font-weight:700!important;padding:12px 10px!important;text-decoration:none!important;border-top:1px solid #f4dddd}
.hsac-root .hsac-see-all:hover{background:#ffe9e9!important}
.hsac-root .hsac-assist{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Desktop: vi tri cua o tim kiem tren banner hien tai. */
#banner .banner-se{z-index:1010}
#haisan-autocomplete.hsac-desktop{width:535px;max-width:535px}
#haisan-autocomplete #keyword{flex:1;width:100%;padding:0 12px 0 40px!important;margin:0!important;background:#fff url(../img/i-se.png) no-repeat 13px center!important;background-size:18px auto!important;border-radius:0!important}
#haisan-autocomplete #idl{width:110px;margin:0!important;border-radius:0!important;padding:0 7px!important}
/* Mobile: giu vi tri tim kiem goc va khong de mobile jquery tu boc input. */
#search .hsac-mobile{width:100%;z-index:1010}
#search .hsac-mobile .hsac-bar{min-height:44px}
#search .hsac-mobile .hsac-input{height:44px!important;min-height:44px!important}
#search .hsac-mobile .hsac-submit{width:88px;font-size:13px;padding:0 7px}
#search .hsac-mobile .hsac-dropdown{min-width:0;max-height:64vh}
#search .hsac-mobile .hsac-thumb{width:49px;height:49px}
#search .hsac-mobile .hsac-thumb-placeholder{width:49px;height:49px}
@media(max-width:540px){
 .hsac-root .hsac-item{gap:9px;padding:9px!important}
 .hsac-root .hsac-item-name{font-size:12px}
 .hsac-root .hsac-item-price{font-size:12px}
}
