.cart {
    position: fixed;
    top: 0;
    right: 0;
    border-left: 1px solid #ddd;
    padding: 5% 3%;
    height: 100dvh;
    width: 60%;
    background-color: #fff;
    z-index: 10;
    display: none;
    overflow: auto;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-titles {
    border-top: 1px #ddd solid;
    border-bottom: 1px #ddd solid;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 5%;
    font-size: 1em;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: bold;

    .ptitle {
        min-width: 150px;
    }
}

.cart-item {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 5%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px #ddd solid;
    font-size: .9em;

    img {
        height: 50px;
        width: auto;
        position: relative;
    }

    .ptitle {
        min-width: 150px;
    }

    .pimg {
        position: relative;
        width: 50px;
        height: 50px;
        background-color: #eee;
        background-position: center;
        background-size: cover;
        overflow: hidden;
        border-radius: 3px;
    }
}

.closeCart {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 2em;
    color: #000;
    cursor: pointer;
}

.remove-from-cart {
    cursor: pointer;
    color: #e1694e;
    margin-left: 10px;
}

.cart-total {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.checkout-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    border: 1px solid #ddd;
    background-color: transparent;
    z-index: 120;

    .inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100dvh;

        .flexbox {
            display: flex;
            align-items: center;
            column-gap: 20px;
            justify-content: flex-end;
        }

        form {
            padding: 40px;
            background-color: #fff;
            min-width: 900px;
            border-radius: 10px;
            position: relative;
            max-height: 95dvh;
            overflow-y: scroll;

            .row {
                margin-bottom: 15px;

                .third img,
                .half img,
                .fullwidth img {
                    height: 20px;
                }

            }

            #otherCountryWrapper {
                display: none;
            }

            h2 {
                margin-bottom: 40px;
                padding-bottom: 10px;
                border-bottom: 1px #eee solid;
            }

            h4 {
                font-size: 1.2em;
                font-weight: 500 !important;
                padding-bottom: 5px;
                border-bottom: 1px #eee solid;
            }

            p {
                margin-bottom: 60px;
                margin-bottom: 50px;
                position: relative;
            }

            .cart-total-amount {
                margin-bottom: 20px;
                margin-top: 40px;
                width: 50%;
                margin-left: 50%;
                display: flex;
                flex-direction: column;
                row-gap: 20px;

                div {
                    font-size: 1.1em;
                    width: 100%;
                    display: flex;
                    align-items: center;
                    flex-wrap: nowrap;
                    border-bottom: 1px #eee solid;
                    padding-bottom: 5px;

                    span {
                        position: relative;
                        width: 50%;
                        text-align: left;
                    }

                    span.totals,
                    span.shipping {
                        text-align: right;
                    }
                }
            }

            .order-total {
                display: flex;
                align-items: center;
                margin-bottom: 40px;
                font-size: 1.1em;
                font-weight: 700;
                width: 50%;
                margin-left: 50%;
                border-bottom: 1px #eee solid;
                padding-bottom: 5px;

                span {
                    width: 50%;
                    text-align: left;
                }

                #total-amount {
                    text-align: right;
                }
            }

            #close-checkout {
                position: absolute;
                width: 40px;
                height: 40px;
                cursor: pointer;
                right: 30px;
                top: 30px;
                z-index: 20;
            }

            .title2 {
                margin-top: 40px;
            }
        }
    }
}


.checkout-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 110;
}

.payment-form {

    .logo-wrap {
        margin-bottom: 30px;
        margin-top: 40px;
    }
}

.coolBeans::after {
    background-color: #1d3251;
}

/* Mobile Viewport */
@media screen and (max-width: 765px) {
    .closeCart {
        right: 20px;
        top: 20px;
        z-index: 300;
    }

    .cart {
        width: 100%;
        overflow: scroll;

        .cart-titles {
            grid-template-columns: repeat(4, 1fr);

            :nth-child(6),
            :nth-child(7) {
                display: none;
            }

            .pimg {
                display: none;
            }
        }

        .cart-items {

            .cart-item {
                grid-template-columns: repeat(4, 1fr);

                :nth-child(6) {
                    display: none;
                }

                :nth-child(7) {
                    padding: 10px;
                    background-color: #000;
                    color: #fff;
                    margin-top: 5px;
                    border-radius: 5px;
                    text-align: center;
                }

                .pimg {
                    display: none;
                }
            }
        }
    }

    .checkout-wrapper {

        .inner {
            display: block;
            width: 100%;
            height: 100dvh;
            overflow: scroll;

            form {
                padding: 40px 5%;
                min-width: 100%;
                max-height: none;
                height: auto;

                .cart-total-amount {
                    width: 100%;
                    margin-left: 0;
                }

                .order-total {
                    width: 100%;
                    margin-left: 0;
                }
            }
        }

        .flexbox {
            flex-direction: column;
            row-gap: 20px;

            button {
                width: 100%;
                text-align: center;
            }
        }
    }
}