﻿.menu-rs {
    position: fixed;
    z-index: 999999999999999999999999999999999999;
    width: 100vw;
    height: 100vh;
    background-color: #00000059;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all ease .3s;
    -o-transition: all ease .3s;
    transition: all ease .3s;
    pointer-events: none;
}

.menu-rs-search {
    margin: 15px 0;
    width: 98%;
}

    .menu-rs-search a:hover img {
        opacity: 1;
    }

.menu-rs-bot {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px 0;
    font-family: 'InterSB';
    font-size: 18px;
    background: #f3f3f3;
}

    .menu-rs-bot a {
        display: inline;
        margin-left: 5px;
        width: 100%;
        height: 100%;
        color: var(--default-color-2);
    }

    .menu-rs-bot svg {
        display: inline;
    }

.menu-rs-search a {
    position: relative;
    height: 100%;
    padding: 0 10px;
    background: #eb0009;
    border-radius: 50px 0 0 50px;
}

    .menu-rs-search a::before {
        content: '';
        position: absolute;
        right: 0;
        width: 2px;
        height: 60%;
        /* background-color: #3333331c; */
    }

    .menu-rs-search a img {
        /* opacity: .8; */
        filter: brightness(0) invert(1);
        -webkit-filter: brightness(0) invert(1);
    }

.w-search-menurs {
    display: flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    width: 85%;
    border-radius: 50px;
    height: 40px;
    background: #fff;
    margin: auto;
}

.menu-rs-search input {
    background-color: transparent;
    border: none;
    outline: none;
    height: 100%;
    padding: 0 10px;
    font-size: 14px;
}

.social.menu-icon-social {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    padding: 14px 0;
    border-bottom: 1px dashed #d5d5d5;
    margin-top: 0;
}

    .social.menu-icon-social a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid var(--default-color-1);
        color: var(--default-color-1);
        margin: 0 3px;
        opacity: .8;
        transition: all ease-in-out .3s;
    }

        .social.menu-icon-social a:hover {
            background-color: #fff;
            color: var(--default-color-2);
        }

.menu-rs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
    padding-top: 6px;
    border-bottom: 1px solid #cbc2c2;
    background: #fff;
    padding-bottom: 6px;
}

    .menu-rs-top .logo {
        border-radius: 50%;
    }

.left-logo-compa-mm {
    display: flex;
    align-items: center;
}

.menu-rs-top .logo img {
    width: 55px;
    height: auto;
    object-fit: cover;
    display: block;
}

.menu-rs.show {
    opacity: 1;
    pointer-events: all;
}

.menu-rs .container-rs .list ul {
    padding: 0;
    margin: 0;
}

.menu-rs.show .container-rs {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    background-position: 0 107px;
    background: linear-gradient(180deg, #C20116 0%, #80010E 100%);
}

.menu-rs .container-rs {
    width: 75%;
    height: 100vh;
    position: relative;
    overflow-y: overlay;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: all ease-in .3s;
    -o-transition: all ease-in .3s;
    transition: all ease-in .3s;
    -webkit-transition-delay: .2s;
    -o-transition-delay: .2s;
    transition-delay: .2s;
}

    .menu-rs .container-rs .btn-close {
        position: relative;
        font-size: 11px;
        -webkit-transition: all linear .3s;
        -o-transition: all linear .3s;
        transition: all linear .3s;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        background-color: var(--default-color-2);
    }

        .menu-rs .container-rs .btn-close.active {
            /* border-radius: 0; */
            /* right: calc(85%); */
        }

        .menu-rs .container-rs .btn-close i {
            position: absolute;
            -webkit-transition: all linear .2s;
            -o-transition: all linear .2s;
            transition: all linear .2s;
            opacity: 1;
            color: #fff;
        }

            .menu-rs .container-rs .btn-close i.back {
                opacity: 0;
            }

        .menu-rs .container-rs .btn-close.active i {
            opacity: 0;
        }

        .menu-rs .container-rs .btn-close.active .back {
            opacity: 1;
        }

        .menu-rs .container-rs .btn-close:hover {
            -webkit-transform: scale(1.05);
            -ms-transform: scale(1.05);
            transform: scale(1.05);
        }

.menu-rs.show .container-rs .btn-close {
    opacity: 1;
    -webkit-transition-delay: opacity .6s;
    -o-transition-delay: opacity .6s;
    transition-delay: opacity .6s;
}

.menu-rs .container-rs {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow-x: hidden;
    background-color: #f3f3f4;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 0;
    padding-bottom: 0;
    padding-top: 0;
    position: relative;
}

    .menu-rs .container-rs .list {
        width: 100%;
    }

.hotline-menu-rs {
    width: 100%;
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 0;
}

.login-res-main-menu {
    display: none;
    width: 100%;
    --color-primary: #F47920;
    --color-primary-1: #FDB913;
    --color-secondary: #124E91;
    --color-secondary-1: #27AAE1;
    background: linear-gradient(270deg, var(--color-primary) 35.83%, var(--color-primary-1) 95.07%);
    padding-top: .75rem;
    padding-bottom: .75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.c-res-login-menu span {
    font-family: 'InterR';
    color: #fff;
    font-size: 13px;
}

.btn-res-login-menu a {
    font-size: 13px;
    line-height: normal;
    letter-spacing: .01em;
    padding: 6px 10px 7px;
    background: #ffff;
    border-radius: 50px;
    color: #333;
    font-family: 'InterSB';
}

.btn-res-login-menu {
    display: block;
    margin-top: 14px;
}

a.btn-login-menu {
    margin-right: 9px;
}

.menu-rs .container-rs .list .list-item {
    width: 100%;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    color: #fff;
    -webkit-box-align: center;
    -ms-flex-align: center;
    border-bottom: 0.5px solid #cbc2c2;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: left;
    padding: 14px 18px;
    display: block;
    font-family: 'InterM';
    font-size: 15px;
    -webkit-transition: all linear .2s;
    -o-transition: all linear .2s;
    transition: all linear .2s;
}

.menu-rs .container-rs .list li {
    list-style: none;
    height: 48px;
    overflow: hidden;
    position: relative;
}

    .menu-rs .container-rs .list li .btn {
        position: absolute;
        right: 13px;
        font-size: 10px;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        background-color: var(--default-color-2);
        color: #fff;
        top: 14px;
        z-index: 2;
    }

        .menu-rs .container-rs .list li .btn i {
            transition: all ease-in-out .3s;
        }

    .menu-rs .container-rs .list li.show {
        height: auto;
        /* background-color: #fff; */
    }

        .menu-rs .container-rs .list li.show .btn i {
            transform: rotate(-180deg);
        }

    .menu-rs .container-rs .list li .drop {
        position: relative;
        width: 100%;
        background-color: #fff;
        z-index: 2;
        -webkit-transition: all ease .3s;
        -o-transition: all ease .3s;
        transition: all ease .3s;
        /* background-color: #2c2c2c0f; */
    }

        .menu-rs .container-rs .list li .drop .drop-item {
            height: auto;
        }

        .menu-rs .container-rs .list li .drop.show {
            width: 100%;
        }

        .menu-rs .container-rs .list li .drop .drop-item a {
            width: 100%;
            position: relative;
            padding: 13px 12px;
            padding-left: 28px;
            font-family: 'InterM';
            font-size: 14px;
            text-align: left;
            color: #333;
            text-transform: capitalize;
            line-height: normal;
            display: block;
        }

        .menu-rs .container-rs .list li .drop.show .drop-item a {
            -webkit-transform: translateY(0);
            -ms-transform: translateY(0);
            transform: translateY(0);
            opacity: .9;
            pointer-events: all;
            -webkit-transition: all linear .3s;
            -o-transition: all linear .3s;
            transition: all linear .3s;
            -webkit-transition-delay: .3s;
            -o-transition-delay: .3s;
            transition-delay: .3s;
        }

        .menu-rs .container-rs .list li .drop .drop-item a:hover {
            color: #fff;
            background-color: var(--default-color-1);
        }

        .menu-rs .container-rs .list li .drop .drop-item a::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 1px;
            background-color: #05338017;
            opacity: .8;
            bottom: 0;
            border-radius: 2px;
            left: 0;
            margin-bottom: 0 !important;
            !i;
            !;
        }

.menu-rs .container-rs .list ul li {
    list-style: none;
}

    .menu-rs .container-rs .list ul li:last-child .list-item {
        border-bottom: unset;
    }
/* Trạng thái mặc định của menu cha */
.menu-rs .container-rs .list li.have-show {
    list-style: none;
    overflow: hidden;
    position: relative;
}

    /* Trạng thái mặc định của phần tử con ".drop" */
    .menu-rs .container-rs .list li.have-show .drop {
        opacity: 0;
        transform: translateY(-20px); /* Dịch chuyển lên để tạo hiệu ứng trượt */
        transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease; /* Chuyển đổi các thuộc tính */
        height: 0;
        overflow: hidden;
    }

    /* Khi có lớp "show" cho menu cha */
    .menu-rs .container-rs .list li.have-show.show .drop {
        opacity: 1;
        transform: translateY(0); /* Trả về vị trí ban đầu */
        height: auto; /* Thiết lập chiều cao tự động khi menu mở */
        transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease;
    }

.menu-rs .container-rs .list li .drop .drop-item:last-child a::before {
    display: none;
}

.menu-rs .container-rs .list .list-item::before {
    position: absolute;
    opacity: .8;
}

@media only screen and (max-width:1023px) {
    .menu-rs .container-rs {
        width: 50%;
    }

    .menu-rs-top .logo img {
        width: 100%;
    }
}

@media only screen and (max-width:739px) {
    .menu-rs .container-rs {
        width: 74%;
    }

    .menu-rs-top .logo img {
        width: 70px;
    }
}