﻿/******************************
    StoreCheckout Stylesheet
 ******************************/

.partial-container {
    width: 100%;
    margin: 0;
}

.store-checkout {
    display: flex;
    flex-direction: row;
    min-height: 100%;
    margin: 0;
    width: 100%;
}

.checkout {
    display: flex;
    flex-direction: column;
    width: 70%;
    min-width: 70%;
    min-height: 100%;
    border: 2px solid lightgrey;
    border-radius: 20px;
    margin: 2rem 1rem 2rem 1rem;
    padding: 1rem;
}

.checkout-shipping {
    display: flex;
    flex-direction: row;
    height: 25%;
    min-height: max-content;
    width: 100%;
}

.checkout-shipping-title {
    align-content: flex-start;
    justify-content: flex-start;
    width: 25%;
    height: 100%;
    font-weight: bold;
    font-size: 20px;
    margin: 1rem 2rem 1rem 1rem;
}

.checkout-shipping-address {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.checkout-shipping-address p, .checkout-payment-method p {
    margin-bottom: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.checkout-change-shipping {
    width: 10%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-content: start;
    justify-content: center;
}

.checkout-change-shipping label {
    width: contain;
    height: contain;
    cursor: pointer;
    color: #00519d;
}

.checkout-change-shipping label:hover {
    color: maroon;
    text-decoration-line: underline;
}

.checkout-payment {
    display: flex;
    flex-direction: row;
    height: 25%;
    width: 100%;
    min-height: max-content;
}

.checkout-payment-title {
    align-content: flex-start;
    justify-content: flex-start;
    width: 25%;
    height: 100%;
    font-weight: bold;
    font-size: 20px;
    margin: 1rem 2rem 1rem 1rem;
}

.checkout-payment-method {
    display: flex;
    flex-direction: column;
    margin: 1rem 2rem 1rem 1rem;
    height: 100%;
    width: 65%;
}

.checkout-change-payment {
    width: 10%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-content: start;
    justify-content: center;
}

.checkout-change-payment label {
    width: contain;
    height: contain;
    cursor: pointer;
    color: #00519d;
}

.checkout-change-payment label:hover {
    color: maroon;
    text-decoration-line: underline;
}

.checkout-items {
    display: flex;
    flex-direction: row;
    height: 30%;
    width: 100%;
}

.checkout-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;
}

.checkout-items-cart {
    display: flex;
    flex-direction: column;
    width: 75%;
    max-height: 25vh;
    overflow-y: auto;
}


.checkout-delivery {
    display: flex;
    flex-direction: row;
    height: 25%;
    width: 100%;
}

.checkout-delivery-title {
    align-content: flex-start;
    justify-content: flex-start;
    width: 25%;
    height: 100%;
    font-weight: bold;
    font-size: 20px;
    margin: 1rem 2rem 1rem 1rem;
}

.checkout-delivery-options {
    display: flex;
    flex-direction: column;
    width: 75%;
    height: 100%;
    justify-content: center;
    align-content: center;
}

.checkout-deliver-options label {
    padding: 5px;
}

.checkout h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.checkout_item {
    display: flex;
    width: 90%;
    height: 95%;
    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;
}

.checkout_item button {
    margin-right: 1.5vw;
    height: 2.5vh;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
}

.checkout_item_image {
    display: flex;
    flex-direction: row;
    width: 20%;
    height: 100%;
    justify-content: center;
    align-content: center;
    padding-right: 5px;
}

.checkout_item_size {
    padding-right: 2vw;
}

.checkout_item_image img {
    max-width: 50%;
    height: auto;
    justify-content: center;
    align-content: center;
}

.checkout_item_info {
    width: 75%;
    justify-content: center;
    align-content: center;
    align-items: flex-start;
}

.checkout_item img {
    object-fit: contain;
    margin-right: 10px;
}

.checkout_item h3 {
    font-weight: bold;
    font-size: 20px;
}

.checkout_item p {
    margin: 0;
}

.checkout_item .price {
    margin-right: 10px;
}

.checkout_item .quantity {
    margin-right: 10px;
}

.checkout_item .delete_button {
    margin-left: auto;
}

.order-summary {
    display: flex;
    flex-direction: column;
    width: 25%;
    min-width: 25%;
    height: fit-content;
    border: 2px solid black;
    border-radius: 20px;
    padding: 1rem;
    margin: 2rem 1rem 2rem 1rem;
}

.order-summary div {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.price-calculations-left {
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 80%;
    font-weight: bold;
}

.price-calculations-right {
    display: flex;
    flex-direction: row;
    justify-content: right;
    width: 20%;
}

.total-price-left {
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 80%;
    font-size: 22px;
    color: maroon;
    margin-top: 1rem;
    font-weight: bold;
}

.total-price-right {
    display: flex;
    flex-direction: row;
    justify-content: right;
    width: 20%;
    font-size: 22px;
    color: maroon;
    margin-top: 1rem;
}

.checkout-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #00519d;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-button:hover {
    background-color: #c62828;
}
