//==Initialize Constant Color==//

$primary-color: black;
$secondary-color: #646464;
$footer-bg: #f8f8f8;

//==Main Section==//

#lii-ajax-cart {
    //Common Style
    hr {
        width: 1000px !important;
    }
    .lii-show-cart {
        transform: translate(0%) !important;
    }

    .lii-shake-trash {
        animation: shake 0.5s;
        animation-iteration-count: 0.5s;
    }

    @keyframes shake {
        0% {
            transform: translate(1px, 1px) rotate(0deg);
        }
        10% {
            transform: translate(-1px, -2px) rotate(-1deg);
        }
        20% {
            transform: translate(-3px, 0px) rotate(1deg);
        }
        30% {
            transform: translate(3px, 2px) rotate(0deg);
        }
        40% {
            transform: translate(1px, -1px) rotate(1deg);
        }
        50% {
            transform: translate(-1px, 2px) rotate(-1deg);
        }
        60% {
            transform: translate(-3px, 1px) rotate(0deg);
        }
        70% {
            transform: translate(3px, 1px) rotate(-1deg);
        }
        80% {
            transform: translate(-1px, -1px) rotate(1deg);
        }
        90% {
            transform: translate(1px, 2px) rotate(0deg);
        }
        100% {
            transform: translate(1px, -2px) rotate(-1deg);
        }
    }

    a {
        color: black;
        text-decoration: none;
    }
    .lii-content-start {
        .lii-cart-icon {
            cursor: pointer;
            position: absolute;
            text-align: center;
            bottom: 10px;
            right: 420px;
            background-color: $footer-bg;
            border-radius: 100%;
            height: 70px;
            width: 70px;
            z-index: 9999999999;
            i {
                position: relative;
                font-size: 40px;
            }
            span {
                position: absolute;
                background-color: black;
                color: white;
                height: 20px;
                width: 20px;
                border-radius: 100%;
                left: 0;
                font-size: 12px;
            }
        }
        //initial style
        transform: translate(100%);
        transition: all 0.3s linear;
        position: fixed;
        z-index: 9999999999;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 390px;
        height: 100%;
        box-shadow: -4px 2px 20px rgba(0, 0, 0, 0.25);

        //header
        .lii-header {
            padding: 10px 20px;
            background-color: #f6f6f6;
            i {
                cursor: pointer;
                font-size: 50px;
            }
        
            .lii-title-header {
                margin-top: 25px;
                font-size: 20px;
                font-weight: bold;
            }
            .lii-cross {
                right: 0;
                position: fixed;
                font-size: 24px;
                margin-top: 18px;
                padding: 5px;
            }
        }
        .lii-product-items{
            overflow-y: scroll;
            background: white;
            &::-webkit-scrollbar {
                    display: none;
                }
        }

        .lii-main-contents {
            .lii-cart-products {
                overflow-x: hidden;
                padding: 10px 60px 0 0;
                .lii-single-product {
                    .lii-main-content {
                        img {
                            height: 32% !important;
                            width: 32% !important;
                            padding-left: 10px;
                        }
                        .lii-details {
                            padding: 0px 14px;
                            .lii-title {
                                p {
                                    font-weight: 500;
                                }
                                .lii-trash {
                                    cursor: pointer;
                                    font-size: 18px;
                                    padding: 0px 14px;
                                }
                            }
                            .lii-quantity {
                                //quantity box
                                .lii-qty {
                                    display: inline-block;
                                    .lii-input-text.lii-qty {
                                        color: black;
                                        width: 40px;
                                        min-height: 41px !important;
                                        padding: 0 5px;
                                        text-align: center;
                                        background-color: transparent;
                                        border: 1px solid $primary-color;
                                        max-height: 40px;
                                        border-radius: 0px !important;
                                    }
                                    input {
                                        &::-webkit-outer-spin-button {
                                            -webkit-appearance: none;
                                            -moz-appearance: none;
                                            margin: 0;
                                        }
                                        &::-webkit-inner-spin-button {
                                            -webkit-appearance: none;
                                            -moz-appearance: none;
                                            margin: 0;
                                        }
                                    }
                                }
                                .lii-qty.lii-buttons-added {
                                    text-align: left;
                                    position: relative;
                                    white-space: nowrap;
                                    vertical-align: top;
                                    input {
                                        display: inline-block;
                                        margin: 0;
                                        vertical-align: top;
                                        box-shadow: none;
                                    }
                                    .lii-minus {
                                        padding: 7px 10px 8px;
                                        height: 41px;
                                        color: black;
                                        background-color: #ffffff;
                                        border: 1px solid $primary-color;
                                        cursor: pointer;
                                        border-right: 0;
                                        border-radius: 0px !important;
                                        &:focus {
                                            outline: none;
                                        }
                                    }
                                    .lii-plus {
                                        padding: 7px 10px 8px;
                                        height: 41px;
                                        width: 28px;
                                        color: black;
                                        background-color: #ffffff;
                                        border: 1px solid $primary-color;
                                        cursor: pointer;
                                        border-left: 0;
                                        border-radius: 0px !important;
                                        &:focus {
                                            outline: none;
                                        }
                                    }
                                }
                            }
                            .lii-total-price {
                                margin-left: 70px;
                                margin-top: 10px;
                                font-size: 15px;
                                padding: 0px 14px;
                            }
                        }
                    }
                }
            }
        }

        //Suggested Item
        .lii-suggested-items {
            background-color: $footer-bg;
            padding: 10px 0px;
            .lii-products {
                .lii-single-product {
                    .lii-main-content {
                        img {
                            height: auto;
                            width: 25%;
                        }
                        .lii-details {
                            .lii-lower-data {
                                button {
                                    margin-left: 170px;
                                    background-color: $primary-color;
                                    color: white;
                                    border: none;
                                }
                            }
                        }
                    }
                }
            }
        }

        //Footer
        .lii-footer {
            //initial style
            z-index: 1;
            background-color: $footer-bg;
            color: $primary-color;
            padding: 20px 20px;

            .lii-promo-code {
                p {
                    font-size: 14px;
                }
            }

            .lii-price-summery {
                .lii-title {
                    font-size: 15px;
                    font-weight: 600;
                }

                hr {
                    border: none;
                    border-top: 1px dashed black;
                    color: #fff;
                    background-color: #fff;
                    width: 100%;
                }
            }

            .lii-checkout {
                button {
                    margin-left: 5px;
                    background-color: black;
                    color: white;
                    padding: 10px 42px;
                    border: none;
                    font-weight: 600;
                }
            }
        }
    }
}
