:root {
    --color-green: #4CAF50;
}
.box-cart {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.tbl-cart #list_item_cart {
    font-size: 13px;
}

.tbl-cart .choosed-item-cart {
    scale: 2;
    border: 0.5px solid #cecece !important;
}

.tbl-cart .img-cart-item {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.tbl-cart .name-product-cart {
    width: 200px;
}

.box-cart .plus,
.box-cart .minus {
    font-size: 13px !important;
}

.box-cart .plus {
    border-top-right-radius: 45px !important;
    border-bottom-right-radius: 45px !important;
}

.box-cart .minus {
    border-top-left-radius: 45px !important;
    border-bottom-left-radius: 45px !important;
}

.box-cart input[type="number"]::-webkit-outer-spin-button,
.box-cart input[type="number"]::-webkit-inner-spin-button,
.box-order input[type="number"]::-webkit-outer-spin-button,
.box-order input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.box-cart .btn-delete-cart {
    background-color: #b4b4b4 !important;
}

.box-cart .delete-cart-icon {
    font-weight: 100;
    color: white;
}

.tbl-cart thead tr {
    background-color: var(--color-green);
    color: white;
}

.fancybox-content .custom-margin-carts {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.fancybox-content .custom-margin-carts .btn-order {
    background: linear-gradient(96.13deg, #048afd -48.42%, #ff00ff 157.13%);
    position: absolute;
    right: 0;
    bottom: 0;
    color: white;
}

.fancybox-content .custom-margin-carts .btn-order-mobile {
    background: linear-gradient(96.13deg, #048afd -48.42%, #ff00ff 157.13%);
    color: white;
}

.fancybox-content .header-cart {
    position: absolute;
    top: 0;
}

.fancybox-content #cart_mobile {
    font-size: 13px;
}

.box-cart .img-cart-mobile {
    height: 100%;
    width: 50px;
    object-fit: cover;
}

.box-order {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.box-order #btn_confirm,
.box-order #btn_confirm_mobile {
    background: linear-gradient(96.13deg, #048afd -48.42%, #ff00ff 157.13%);
    color: white;
}

.box-order .img-order {
    width: 50px;
    height: 100%;
    object-fit: contain;
}

.box-order .img-order-mobile {
    width: 45px;
    height: 100%;
    object-fit: contain;
}
.box-order #list_item_order,
.box-order #order_mobile {
    font-size: 13px;
}

.box-order #list_items_order_mobile,
.box-order #list_items_order {
    font-size: 13px;
}

.box-order .plus {
    border-top-right-radius: 45px !important;
    border-bottom-right-radius: 45px !important;
}

.box-order .minus {
    border-top-left-radius: 45px !important;
    border-bottom-left-radius: 45px !important;
}
.custom-swal {
    z-index: 999999 !important;
}
.custom-swal .custom-swal-margin {
    margin: 0;
}
.custom-icon .swal2-success-line-tip,
.custom-icon .swal2-success-line-long {
    background-color: white !important ;
    z-index: 10 !important;
}
.custom-icon .swal2-success-ring {
    background-color: #a5dc86;
}
.custom-icon-info {
    background-color: #b4b4b4 !important;
    border-color: #b4b4b4 !important;
}

.custom-icon-info .swal2-icon-content {
    color: white !important;
}

.background-button {
    background: linear-gradient(96.13deg, #048afd -48.42%, #ff00ff 157.13%) !important;
}

.custom-overflow-table {
    max-height: 300px;
    overflow-y: auto;
}
.custom-overflow-table::-webkit-scrollbar {
    width: 2px;
    background-color: #f5f5f5;
}
.custom-overflow-table::-webkit-scrollbar-thumb {
    background-color: gray;
    border: 1px solid gray;
    border-radius: 10px;
}
.custom-overflow-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

#list_item_order .items-order {
    width: 200px;
}

#list_item_cart .empty-cart {
    text-align: center;
    vertical-align: middle;
    font-size: 40px;
    color: rgba(0, 0, 0, 0.4);
}

.empty-cart-mobile {
    text-align: center;
    vertical-align: middle;
    font-size: 30px;
    color: rgba(0, 0, 0, 0.4);
}
/* Media */
@media only screen and (max-width: 1024px) {
    .tbl-cart {
        display: none;
    }

    .btn-order {
        display: none !important;
    }

    #cart_mobile {
        display: block;
        max-height: 550px;
        overflow-y: auto;
    }

    .btn-mobile {
        display: block !important;
    }
    .box-order #list_items_order {
        display: none;
    }
    .box-order #list_items_order_mobile {
        display: block;
    }

    .custom-swal-title {
        max-width: 92% !important;
    }
}

@media only screen and (min-width: 1024px) {
    .tbl-cart {
        display: table;
    }

    #cart_mobile {
        display: none !important;
    }

    .btn-order {
        display: block;
    }

    .btn-mobile {
        display: none !important;
    }

    .box-order #list_items_order {
        display: table;
    }
    .box-order #list_items_order_mobile {
        display: none !important;
    }
}

.box_cart_content, .box_order_content{
    width: 90%;
    height: 90%;
    border-radius: 5px;
    padding: 0 !important;
    overflow: hidden !important;
}

.box_cart_content .fancybox-close-small, .box_order_content .fancybox-close-small{
    height: 40px;
    width: 40px;
    padding: 0 !important;
    color: #ffffff !important;
}

.h_popup_cart, .h_popup_order{
    height: 40px;
    background: var(--color-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    border-radius: 5px 5px 0 0;
    font-size: 20px;
}

.b_popup_cart, .b_popup_order{
    margin: 15px 30px;
}

.bootstrap-iso .table td{
    border: 0 !important;
}

.item_product_cart{
    max-height: 470px;
    overflow-x: hidden;
    overflow-y: auto;
}

.item_product_order{
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
}

.g_btn_buy_now_cart{
    float: right;
    line-height: 3;
    margin-top: 15px;
}

.g_btn_buy_now_cart .total_price_order b:last-child{
    color: var(--color-green);
}

.g_btn_buy_now_cart .btn_buy_now{
    float: right;
    background-color: var(--color-green) !important;
    color: #ffffff !important;
}

.w_50{
    width: 50px !important;
}

.w_100{
    width: 100px !important;
}

.w_150{
    width: 150px !important;
}

.w_200{
    width: 200px !important;
}

.choosed-item-cart, .check_all{
    accent-color: #41a945;
    scale: 2;
    border: 0.5px solid #cecece !important;
}

.p_order_l div {
    margin-bottom: 20px;
}

#total_order{
    color: var(--color-green) !important;
    margin-right: 0 !important;
    font-weight: bold;
}

#order_mb, .btn_order_mb, #cart_mb{
    display: none;
}

.btn_order_mb{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 15px;
    margin-top: 0;
}

.item_product_order_mb{
    display: flex;
    margin-bottom: 10px;
}

.item_product_order_mb .img_product{
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.item_product_order_mb .img_product img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g_info_product_mb{
    display: flex;
    flex-direction: column;
    width: calc(100% - 80px);
    justify-content: space-between;
}

.g_price_quantity_mb{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.name_product_mb{
    max-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buy_now_cart_mb{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
    padding: 0 15px;
}

.g_info_product{
    display: flex;
    justify-content: space-between;
}

.delete-all-cart{
    cursor: pointer;
}

.g_action_cart{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1px 0 10px;
    border-bottom: 1px solid #4caf50;
    padding-bottom: 10px;
}