﻿/******************************
    ViewCart Stylesheet
 ******************************/

.cart-container {
    display: flex;
    flex-direction: column;
}

.cart-header {
    font-size: 24px;
    margin-bottom: 2vh;
    padding: 1vh;
    font-weight: bold;
    border-bottom: 1px solid lightgrey;
}

.view-cart {
    display: flex;
    flex-direction: column;
}

.viewCart_item {
    display: flex;
    width: 100%;
    height: 150px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem 0.6rem 0;
    padding: 0.5rem;
    border: 1px solid lightgrey;
    border-radius: 20px;
}

.viewCart_item button {
    margin-right: 1.5vw;
    height: 2.5vh;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
}

.viewCart_item_image {
    display: flex;
    flex-direction: row;
    width: 20%;
    height: fit-content;
    justify-content: center;
    align-content: center;
    padding-right: 5px;
}

.viewCart_item_image img {
    max-width: 80%;
    height: auto;
    justify-content: center;
    align-content: center;
    /*padding: 1vh;*/
    border: 1px solid black;
    background-color: white;
}

.viewCart_item_info {
    display: flex;
    flex-direction: column;
    width: 75%;
    justify-content: center;
    align-content: center;
    align-items: flex-start;
}

.viewCart_item_info label {
    padding: 0 1vh 1vh 1vh;
}

.viewCart_item_info p {
    font-size: 18px;
    padding-top: 0;
}

.viewCart_items {
    display: flex;
    flex-direction: row;
    height: 35%;
    width: 100%;
}

.viewCart-items-title {
    align-content: flex-start;
    justify-content: flex-start;
    width: 25%;
    height: 100%;
    font-weight: bold;
    font-size: 20px;
    margin: 1rem 2rem 1rem 1rem;
}

.viewCart-items-cart {
    display: flex;
    flex-direction: column;
    width: 75%;
    max-height: 25vh;
    overflow-y: auto;
}

.viewCart_item {
    background-color: rgba(201, 169, 166,0.2);
}

.viewCart_item img {
    object-fit: contain;
    margin-right: 10px;
    border: 1px solid black;
}

.viewCart_item h3 {
    font-weight: bold;
    font-size: 20px;
}

.viewCart_item p {
    margin: 0;
}

.viewCart_item .price {
    margin-right: 10px;
}

.viewCart_item .quantity {
    margin-right: 10px;
}

.viewCart_item .delete_button {
    margin-left: auto;
}

.viewCart-button {
    cursor: pointer;
    width: 15%;
    height: auto;
    border: 0;
}