#mm-cart {
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
}

#mm-cart .mm-cart-container {
    display: flex;
}

#mm-cart .mm-cart-fadeout-btn {
    flex: 0 0 25%;
}

#mm-cart .mm-cart-content {
    flex: 0 0 75%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF;
    padding: 10px 25px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#mm-cart .mm-cart-content,
#mm-cart .mm-cart-fadeout-btn,
#mm-cart .mm-cart-container {
    height: 100%;
}

.mm-cart-body {
    height: 80%;
    padding-bottom: 10px;
}

.mm-cart-header {
    height: 10%;
}

.mm-cart-number-cart {
    font-size: 1rem;
}

.mm-cart-list {
    height: 90%;
    overflow-y: auto;
    overflow-x: hidden;
}

.mm-cart-footer {
    height: 20%;
    padding-top: 10px;
    border-top: 1px solid #444444;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mm-cart-btn-block {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.mm-cart-btn-block a {
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.5s all;
}

.mm-cart-btn-block a.btn-cart {
    border: 2px solid #444444;
    color: #444444;
}

.mm-cart-btn-block a.btn-cart:hover {
    background: #724c4c;
    border-color: #724c4c;
    color: #FFFFFF;
}

.mm-cart-btn-block a.btn-thanhtoan {
    border: 2px solid #444444;
    color: #FFFFFF;
    background: #444444;
}

.mm-cart-btn-block a.btn-thanhtoan:hover {
    background: #191b41;
    border-color: #191b41;
    color: #FFFFFF;
}

.mm-cart-btn-block a:active {
    box-shadow: inset 1px 1px 1px 1px #ccc;
}


.mm-cart-item {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 3px -3px #c1c1c1;
    position: relative;
}

.mm-cart-item .mm-cart-item-img {
    flex: 0 0 20%;
    width: 100%;
    aspect-ratio: 1/0.7;
}

.mm-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mm-cart-item-content {
    flex: 0 0 75%
}

.mm-cart-item-content .title {
    word-wrap: break-word;
    overflow: hidden;
    font-weight: 700;
}

.mm-cart-item-content .price {
    font: 12px;
    color: #ff2000;
}

.mm-cart-item-content .title,
.mm-cart-item-content .price {
    width: 85%;
    margin-bottom: 5px;
}

.mm-cart-count {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 5px 10px 0px 10px;
}

.mm-cart-change-count {
    width: 32px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #f2f2f2;
}

.mm-cart-change-count:hover {
    border-color: #a8a8a8;
}

.mm-cart-change-count:active {
    box-shadow: inset 0px 1px 6px 0px #CCC;
}

.mm-cart-input-count {
    border: none;
    width: 80px;
    height: 32px;
    text-align: center;
    border: 1px solid #f2f2f2;
    border-radius: 5px;
}

.mm-cart-btn-remove {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 2;
    background: #ff2000;
    color: #FFF;
    width: 28px;
    border-radius: 5px;
    aspect-ratio: 1/1;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-cart-btn-remove:active {
    box-shadow: inset 0px 0px 5px 0px #ffd9d3;
}

@media (min-width: 900px) {
    #mm-cart .mm-cart-fadeout-btn {
        flex: 0 0 75%;
    }

    #mm-cart .mm-cart-content {
        flex: 0 0 25%;
    }
}