﻿:root {
    --primary: #4761FF;
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
    --backgroundGray: #f1f1f1ff;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    top: 0px;
    left: 0px;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

/*** Cart ***/
.cart-list {
    padding: 20px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
}

#checkout{
    display:none !important;
}

.cart-list-header {
    align-items: center;
}

.cart-list-header .cart-list-title {
    font-size: 25px;
    font-weight: 700;
}

.cart-list .cart-header {
    font-size: 16px;
    padding:0px 10px;
    font-weight:600;
}

.cart-content-mobile{
    display:none;
}

.cart-list .cart-item .item-img img {
    width: 100%;
}

.item-quantity {
    padding: 0;
}

.item-name,
.item-calUnit {
    font-weight: 600;
}

.item-price{
    color:blue;
    font-weight:600;
}

.item-quantity input {
    height: 35px;
    width: 45px;
    text-align: center;
    padding: 0;
    border: 1px solid gray;
}

.item-quantity .qty-minus {
    border-bottom-right-radius:0;
    border-top-right-radius:0;
}

.item-quantity .qty-plus {
    border-bottom-left-radius:0;
    border-top-left-radius:0;
}

.item-quantity button {
    width:35px;
    height:35px;
}

.delete{
    justify-content:end;
}

.delete svg {
    font-size: 20px;
    cursor: pointer;
    color: red;
}

.trash-btn button a {
    margin-left: 5px;
    font-size: 13px;
}

.cart-total {
    display:flex;
    flex-wrap: wrap;
    position:sticky;
    background-color:white;
    top:65px;
    padding: 15px 24px;
    box-sizing: border-box;
    border-radius: 14px;
    background-color:white;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
}

.cart-total-header {
    font-size: 20px;
    font-weight: bolder;
    margin-bottom: 10px;
}

.cart-total-body .subtotal {
    display: flex;
    height:auto;
    margin-bottom:5px;
    justify-content: space-between;
}

.cart-checkout-container {
    background-color: white;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    border-radius: 14px;
    width: 100%;
    padding: 24px;
    margin-top:10px;
}

.cart-checkout-header h3{
    font-size:20px;
}

.cart-checkout-header .form-check {
    margin-left: 40px;
    font-size: 16px;
}

.cart-checkout-header .form-check svg{
    color:blue;
    font-size: 27px;
}


.checkout-body-mobile{
    display:none;
}


.form-check label .shipping-icon {
    margin-bottom: 2px;
}

.form-check label .shop-icon {
    margin-bottom: 2px;
    margin-right: 4px;
}

.payments .form-check {
    margin-top: 15px;
    margin-left: 20px;
}

.payments h3 {
    font-size:18px;
}

.payments .form-check input {
    margin-top: 7px;
}

.payments .form-check label a {
    margin-left: 3px;
}

.cart-checkout-footer {
    text-align: right;
}

.hidden {
    display: none;
}

.cart .checkout-load-hide{
    display:flex;
    justify-content:center;
    align-content:center;
}

.cart .checkout-load-hide .rotate-180 {
    transform: rotate(180deg) translateY(-4px) !important;
}

.cart-content-moblie{
    display:none;
}

hr{
    margin: 0.5rem 0;
}

.up-down{
    display:none;
}

@media (max-width: 768px) {
    .cart-list{
        padding:15px 20px;
    }

    .cart-list-header .cart-list-title {
        font-size: 20px;
    }
    .cart-list .cart-header{
        padding:0;
    }

    .item-title {
        display: none;
    }

    .cart-checkout-header h3{
        width:100%
    }

    .cart-checkout-header .form-check{
        width: 100%;
        margin:0;
        margin-top: 15px;
    }

    .cart-content-mobile {
        display: block;
    }

    .cart-list-body .cart-content {
        display: none;
    }

    .cart-list-body .cart-content-moblie {
        display: block;
    }

    .cart-item{
        height:130px;
    }

    .item-quantity input {
        height: 30px;
        width: 40px;
        text-align: center;
        padding: 0;
        border: 1px solid gray;
    }

    .item-quantity .qty-minus {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }

    .item-quantity .qty-plus {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
    }

    .item-quantity button {
        width: 30px;
        height: 30px;
        padding:0 !important;
    }

    .up-down{
        display:flex;
        justify-content:end;
    }

    .item-calUnit {
        font-weight: normal;
    }

    .cart-total-container{
        position:fixed;
        left:0;
        bottom:0;
        z-index:100;
        transition:all 1s;
    }

    .cart-total {
        border-end-start-radius: 0;
        border-end-end-radius: 0;
    }

    .checkout-body {
        display: none
    }

    .checkout-body-mobile{
        display:block
    }

    .back-to-top {
        display: none;
    }
}