.tgmenu__action {
    margin-left: auto;
}

.header-search-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #161439;
    font-size: 22px;
    background: #f4f4fb;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-search-icon a:hover {
    background: #5751e1;
    color: #fff;
}

.header-search-icon--mobile {
    display: none;
    margin-left: auto;
    margin-right: 10px;
}

@media (max-width: 1199.98px) {
    .header-search-icon--mobile {
        display: inline-flex;
    }

    .tgmenu__action .header-search-icon {
        display: none;
    }
}

.site-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.site-search-overlay.is-open {
    display: flex;
}

.site-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 40, 0.78);
    backdrop-filter: blur(8px);
}

.site-search-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100% - 40px));
}

.site-search-overlay__close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.site-search-overlay__form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.site-search-overlay__form input {
    flex: 1;
    border: 0;
    outline: none;
    height: 54px;
    font-size: 18px;
    background: transparent;
}

.site-search-overlay__form button {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: #5751e1;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

body.site-search-open {
    overflow: hidden;
}
