.html_nav_position_text {
    width: 90%;
}
.ann-ajax-search {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ann-ajax-search__control {
    position: relative;
    z-index: 5;
    width: 100%;
}

.ann-ajax-search__input-wrap,
.ann-ajax-search__mobile-input-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    line-height: 1;
}

.ann-ajax-search__input,
.ann-ajax-search__mobile-input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 42px;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    border-radius: 999px!important;
    background: #f2f2f2;
    padding: 0 44px 0 14px;
    margin: 0;
    font-size: 16px;
    color: #222;
    -webkit-appearance: none;
    appearance: none;
}

.ann-ajax-search__input::placeholder,
.ann-ajax-search__mobile-input::placeholder {
    color: #888;
}

.ann-ajax-search__icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ann-ajax-search__submit {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-shadow: none;
}

.ann-ajax-search__submit .ann-ajax-search__icon {
    right: 14px;
    pointer-events: none;
}

.ann-ajax-search__mobile-form {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.ann-ajax-search__icon--loading {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: #f58220;
    border-radius: 50%;
    animation: annSpin .7s linear infinite;
    display: none;
}

.ann-ajax-search.is-loading .ann-ajax-search__icon--search {
    display: none;
}

.ann-ajax-search.is-loading .ann-ajax-search__icon--loading {
    display: inline-flex;
}

@keyframes annSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.ann-ajax-search__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    z-index: 999997;
    display: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.ann-ajax-search__overlay.is-active {
    opacity: 1;
}

.ann-ajax-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    height: min(70vh, 760px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.16);
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 999998;
}

.ann-ajax-search__panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ann-ajax-search__mobile-header {
    display: none;
}

.ann-ajax-search__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
}

.ann-ajax-search__section + .ann-ajax-search__section {
    margin-top: 18px;
}

.ann-ajax-search__section-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.ann-ajax-search__hot-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ann-ajax-search__tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #ebebeb;
    background: #f7f7f7;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
    text-transform: none;
    font-weight: normal;
}

button.ann-ajax-search__tag {
    appearance: none;
    -webkit-appearance: none;
}

.ann-ajax-search__tag:hover {
    background: #fff4ea;
    border-color: #f58220;
    color: #f58220;
}

.ann-ajax-search__hot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ann-ajax-search__hot-links:empty {
    display: none;
}

.ann-ajax-search__tag-hot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 12px;
    line-height: 1;
}

.ann-ajax-search__tag-text {
    display: inline-block;
}

.ann-ajax-search__suggestions-loading {
    display: none;
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.ann-ajax-search__suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ann-ajax-search__suggest-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.ann-ajax-search__suggest-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
}

.ann-ajax-search__suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ann-ajax-search__suggest-info {
    padding: 8px;
}

.ann-ajax-search__suggest-title {
    font-size: 13px;
    line-height: 1.4;
    color: #222;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.ann-ajax-search__suggest-price,
.ann-ajax-search__result-price {
    font-size: 13px;
    line-height: 1.2;
    color: #d60000;
    font-weight: 700;
}

.ann-ajax-search__suggest-price del,
.ann-ajax-search__result-price del {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    margin-right: 4px;
}

.ann-ajax-search__results-list {
    display: flex;
    flex-direction: column;
}

.ann-ajax-search__result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f1f1;
}

.ann-ajax-search__result-item:last-child {
    border-bottom: 0;
}

.ann-ajax-search__result-thumb {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

.ann-ajax-search__result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ann-ajax-search__result-info {
    min-width: 0;
    flex: 1;
}

.ann-ajax-search__result-title {
    font-size: 14px;
    line-height: 1.45;
    color: #222;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ann-ajax-search__empty {
    font-size: 14px;
    color: #777;
    padding: 6px 0;
}

.ann-ajax-search__suggestions-loading[style*="display: block"] {
    display: block !important;
}

html.ann-ajax-search-body-lock,
body.ann-ajax-search-body-lock {
    overflow: hidden !important;
    height: 100% !important;
}

body.ann-ajax-search-body-lock.is-ios-lock {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100%;
}

.ann-ajax-search__panel,
.ann-ajax-search__body {
    overscroll-behavior: contain;
}

@media (max-width: 849px) {
    .ann-ajax-search__panel,
    .ann-ajax-search__body {
        -webkit-overflow-scrolling: touch;
    }

    .ann-ajax-search__panel {
        overflow: hidden;
        touch-action: pan-y;
    }

    .ann-ajax-search__body {
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: pan-y;
    }
}

.ann-ajax-search__mobile-back {
    display: none;
}


.ann-ajax-search__input-wrap,
.ann-ajax-search__mobile-input-wrap {
    position: relative;
    display: block;
    width: 100%;
    line-height: normal;
}

.ann-ajax-search__input-wrap,
.ann-ajax-search__mobile-input-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    line-height: 1;
}

.ann-ajax-search__input,
.ann-ajax-search__mobile-input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 42px;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    border-radius: 999px !important;
    background: #f2f2f2;
    padding: 0 44px 0 14px;
    margin: 0;
    font-size: 16px;
    color: #222;
    -webkit-appearance: none;
    appearance: none;
}

/* Mặc định ẩn hoàn toàn clear button */
.ann-ajax-search__clear {
    display: none !important;
}

@media (max-width: 849px) {
    .ann-ajax-search__panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 80vh;
        max-height: 100vh;
        border-radius: 0;
        border: 0;
        top: 0;
        left: 0;
        z-index: 999998;
    }

    .ann-ajax-search__panel-inner {
        height: 80vh;
        background: #fff;
        display: flex;
        flex-direction: column;
    }

    .ann-ajax-search__mobile-header {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 56px;
        min-height: 56px;
        padding: 0 10px;
        background: #ff8400;
        border-bottom: 0;
        box-sizing: border-box;
    }

    .ann-ajax-search__mobile-back {
        width: 30px;
        min-width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #fff;
        padding: 0;
        margin: 0;
        box-shadow: none;
        cursor: pointer;
    }

    .ann-ajax-search__mobile-back svg {
        display: block;
        width: 22px;
        height: 22px;
    }

    .ann-ajax-search__mobile-input-wrap {
        position: relative;
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }

    .ann-ajax-search__mobile-input {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 76px 0 14px;
        border: 0 !important;
        border-radius: 999px;
        background: #f1f1f1;
        box-shadow: none !important;
        outline: none !important;
        font-size: 16px;
        color: #222;
    }

    .ann-ajax-search__mobile-input::placeholder {
        color: #8a8a8a;
    }

    .ann-ajax-search__mobile-header .ann-ajax-search__icon {
        right: 14px;
        color: #777;
    }

    .ann-ajax-search__mobile-input-wrap .ann-ajax-search__clear {
        position: absolute !important;
        top: 50% !important;
        right: 42px !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 65px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        border: 1px solid #666 !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #666 !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        box-shadow: none !important;
        z-index: 4 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .ann-ajax-search__mobile-input-wrap .ann-ajax-search__clear[hidden] {
        display: none !important;
    }

    .ann-ajax-search__mobile-input-wrap .ann-ajax-search__clear-icon {
        display: block !important;
        font-size: 16px !important;
        line-height: 1 !important;
        transform: translateY(-1px);
    }

    .ann-ajax-search__body {
        flex: 1;
        min-height: 0;
        height: auto;
        padding: 14px;
        overflow-y: auto;
        background: #fff;
    }

    .ann-ajax-search__control {
        z-index: 1;
        width: 100%;
    }

    .ann-ajax-search.is-open .ann-ajax-search__control {
        visibility: hidden;
    }

    .ann-ajax-search__suggestions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 850px) {
    .ann-ajax-search__input {
        display: block;
    }

    .ann-ajax-search__clear {
        display: none !important;
    }
}