.cart {
    width: 1200px;
    margin: 40px auto;
}

.cart_content {
    width: calc(100% - 340px);
}

.cart_summary, .checkout_summary {
    height: fit-content;
    display: grid;
    gap: 10px;
}

.cart_summary {
    position: sticky;
    top: 150px;
    width: 300px;
    grid-template-columns: 160px 90px;
    grid-template-rows: auto 125px auto;
    margin-left: 40px;
}

.item_card {
    width: 100%;
    display: grid;
    grid-template-columns: 100px auto 170px 100px;
    grid-template-rows: 100px 34px;
    gap: 10px;
}

.item_thumbnail {

    width: 100px;
    height: 100px;
}

.item_information {
    width: 100%;
}

.cart_summary_title {
    height: 40px;
    grid-column: 1 / -1;
}

.price_information {
    text-align: right;
}

.remove_item {
    justify-content: left;
    align-items: end;
}

.remove_item input[type=submit] {
    border: none;
    background: none;
    cursor: pointer;
}

.remove_item input[type=submit]:hover {
    text-decoration: underline;
}

.quantity_information {
    grid-column: 2 / span 3;
}

.quantity_information form {
    justify-content: right;
    align-items: center;
}

.quantity_information form label, .quantity_information form input:first-of-type {
    margin-right: 10px;
}

.quantity_information form input[type=number] {
    width: 60px;
    padding-left: 10px;
}

.quantity_information form input[type=submit] {
    margin: 0px;
}

.cart_summary p {
    margin-bottom: 20px;
}

.cart_summary .checkout {
    width: fit-content;
    grid-column: 1 / -1;
    margin: 0px auto;
}

.checkout_form {
    width: 380px;
    height: fit-content;
}

.checkout_summary {
    width: 380px;
    grid-template-columns: 20px 230px 90px;
}

.checkout_form, .checkout_summary {
    padding: 0px 10px;
}

.divider h2 {
    margin-top: 20px;
}

@media (width < 1200px) {
    .cart {
        width: 100%;
    }
}

@media (width < 950px) {
    .cart {
        flex-direction: column-reverse;
        align-items: center;
    }

    .cart_content, .cart_summary {
        margin: 0px 10px;
        width: calc(100% - 20px);
    }

    .cart_summary {
        position: static;
    }
}

@media (width < 600px) {
    .item_card, .cart_summary {
        width: 360px;
        margin: 0px auto 20px;
    }

    .item_card {
        grid-template-columns: 100px 150px 100px;
        grid-template-rows: auto 100px 34px;
        gap: 5px;
    }

    .item_information {
        grid-row: 1 / span 1;
        grid-column: 1 / -1;
    }

    .item_thumbnail {
        grid-row: 2 / span 1;
    }

    .quantity_information {
        grid-row: 3 / span 1;
        grid-column: 2 / -1;
    }

    .remove_item {
        grid-row: 3 / span 1;
        grid-column: 1 / span 1;
    }

    .cart_summary {
        margin-top: 20px;
    }
}