.search-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.hide__overlay{
    pointer-events: none;
    opacity: 0;
}

.search-overlay__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.search-overlay *{
    letter-spacing: 0 !important;
}

.search-overlay-container{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 50px auto 0;
    max-width: 1300px;
    padding-inline: 45px;
    height: auto;
    z-index: 2;
    transform: translateY(15px);
    transition: transform 0.3s ease-in-out;
}

.hide__overlay .search-overlay-container{
    transform: translateY(0);
}

.search-overlay-box{
    width: 100%;
    height: auto;
    transition: height 0.2s ease-in-out;
    border-radius: 5px;
    overflow: hidden;
}

.search-results-title{
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
}

.search-results-box{
    border: 1px solid #0B3A571A;
    padding: 20px;
    box-sizing: border-box;
    background: #FFFFFF;
}

.search-results-box.hidden{
    display: none;
}

.search-results-row {
    position: relative;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    align-items: start;
    overflow: auto;
    max-height: calc(100vh - 290px);
}

.search-results-row .divLoading .loading_icon{
    color: #489e52;
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    text-align: center;
}

.search-results-row .divLoading .loading-circle{
    width: 30px;
    height: 30px;
    border: 4px solid #1D8929;
    border-top: 4px solid #f3f3f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-results-row .loading-container {
    position: relative;
    display: inline-block;
}

.search-results-row .loading-text {
    position: absolute;
    top: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
}

.search-results-row .divLoading {
    display: block;
    margin : 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    z-index: 30001;
    opacity: 0.8;
}

.search-result-elt{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    text-decoration: none;
    color: #353536;
}

.search-result-elt img{
    width: 68px;
    height: 41px;
    object-fit: contain;
}

.search-result-elt txt{
    color: #1D8929;
}

.search-overlay-box input{
    width: 100%;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #353536;
    box-sizing: border-box;
    border: 1px solid #0B3A571A;
    border-bottom: 0px;
}

.search-overlay-box input::placeholder {
    color: #35353680;
    opacity: 1;
}

.search-overlay-quickSelect {
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
    min-height: 100px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 5px;
    outline: 1px solid #0B3A571A;
    box-shadow: 0px 4px 10px 0px #0000001A;
}

.search-select-block{
    display: flex;
    flex-direction: column;
}

.s_title{
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
}

.s_block_row{
    display: flex;
    flex-direction: row;
    padding-block: 10px;
    overflow: auto;
}

.s_block_row:has(.p_search) {
    gap: 10px;
    padding-inline: 2px;
}

.p_search{
    padding: 16px;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #1D8929;
    outline: 2px solid #1D8929;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.no_res{
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.no_res.err {
    color: #FF0000;
}

.p_search:hover, .show_more_res button:hover{
    color: #00650B;
    outline: 2px solid #00650B;
}

.p_search:active , .show_more_res button:focus{
    color: #1D8929;
    outline: 2px solid #1D8929;
    background: #EAFFEC;
}

.s_block_row:has(.tops_elt) {
    overflow: auto;
}

.s_block_row .tops_elt {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 126px;
    height: 51px;
}

.tops_elt img{
    width: 100%;
    height: auto;
    object-fit: contain;
}

.show_more_res {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.show_more_res.show{
    display: flex;
}

.show_more_res button {
    border-radius: 8px;
    padding: 16px;
    outline: 2px solid #1D8929;
    border: none;
    color: #1D8929;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    background: #fff;
    cursor: pointer;
}

.search_icon_mobile {
    display: none;
    border: none;
    background: none;
    padding: 3px;
    margin: 0;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.search_icon_mobile img {
    width: 100%;
    height: auto;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.search-input-field {
    padding: 6px 43px 6px 13px;
    border-radius: 5px;
    border: none;
    width: 199px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    box-sizing: border-box;
}

.search-input-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    background: url(/img/commons/clf/icon_search_dark.svg) no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.search-input-field::placeholder {
    color: #353536;
    opacity: 1;
}

@media (max-width: 1125px) {
    .search-overlay-container{
        padding-inline: 15px;
    }

    .search_icon_mobile{
        display: block;
    }

    .header .header-addons > div {
        display: flex !important;
        margin-top: 19px;
        gap: 20px;
    }

    .alert-trigger {
        margin-top: 0;
    }
}

@media only screen and (max-width: 479px) {
    .header .header-logo img {
        width: 210px;
        height: auto;
    }

    #phheader {
        height: 77px;
    }
}

@media only screen and (max-width: 431px) {
    .header .header-logo img {
        width: 160px;
        height: 44px;
    }

    .header .header-addons > div {
        margin-top: 10px;
    }

    .menu-btn {
        top: 17px;
    }

    #phheader {
        height: 64px;
    }

    .search-results-row {
        max-height: calc(100vh - 320px);
    }
}

@media only screen and (max-width: 348px) {
    .header .header-logo img {
        width: 135px;
        height: auto;
        margin-top: 3px;
    }

    .header .header-addons > div {
        margin-top: 5px;
    }
}