.com_popup{

    position: fixed;
    inset: 0;

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

    transform: scale(0);
    visibility: hidden;
    transform-origin: center;
    background: rgba(0, 0, 0, 0.3 );
    transition: transform 0s, visibility 0s;

    z-index: 999;
}

.com_popup_content_wrapper{

    position: relative;

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

    min-width: 25rem;
    padding: 4rem 4rem 2rem 4rem;
    min-height: 12rem;
    
    background: var(--white);
    border-radius: var(--card-border-l);

    transform-origin: center;
    transform: scale(0);
    transition: transform 0.5s, visibility 0.5s;
}

.com_popup_btn{

    margin: auto;
}

.popup_div_content{
    
    text-align: center;
    flex-direction: column;
    display: flex;
    text-align: center;
    justify-content: center;

    gap: 1.5rem;

    width: 100%;


}

.com_popup_close_btn {

    position: absolute;
    top: 1rem;
    right: 1rem;

    background: transparent;
    border: none;

    cursor: pointer;
}

.com_popup_content {

    width: 100%;
    max-height: calc( 100vh - 10vw - 4rem );
    overflow: auto;
}

.com_popup_top {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: .25rem;

    margin-bottom: 1.5rem;
}

.com_popup_search {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.com_popup_top_icon img{

    width: auto;
    height: 1.5rem;
}

.com_popup_search_input{

    width: 100%;
    box-sizing: border-box;
}

.com_popup_search_result{

    display: flex;
    flex-direction: column;
    gap: .5rem;
    
    width: 100%;
}


.com_popup__open{

    transform: scale(1);
    visibility: visible;
    transform-origin: center;    
}

.com_popup__open .com_popup_content_wrapper{

    transform: scale(1);
    visibility: visible;
    transform-origin: center;    
}

.popup_open{
    overflow: hidden;
}

/* 
----------------------
-----   search   -----
----------------------
 */       
 
.mod_shop_cart_new_list{
 
     display: flex;
     flex-direction: column;
     overflow: auto;
     
     height: 17rem;
     overflow: auto;
     
     border-top: 1px solid var(--border-b-color);
     border-bottom: 1px solid var(--border-b-color);
}

.mod_shop_cart_new_list_button.btn {

    padding: 0.25rem .5rem;
    font-size: .8rem;
}

.mod_shop_cart_new_list_item {

    justify-content: space-between;
    display: flex;

    border-bottom: 1px solid #eee;
    padding: 1rem .5rem;
}

.com_popup_div_top_desc{

    text-align: center;
}

.mod_shop_cart_new_search{

    width: 100%;
    box-sizing: border-box;

    margin-bottom: 1rem;
}

@media only screen and (max-width: 768px) {
  
    .com_popup_content_wrapper{

        min-width: 90%;
        padding: 3rem 1rem;
        box-sizing: border-box;
    }
    .com_popup_content{

        width: 90%;
    }
    
}

