:root {
    --modal-bg-color: #fefefe;
    --modal-border: 1px solid #888;
    --modal-margin: 2% auto; /* 2% from the top and centered */
}

th,
td {
    padding: 1em;
    text-align: left;
}

.cart-body {
    display: block;
}

.cart-body > div {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

@media (min-width: 768px) {
    .modal-content,
    .modal-cart-content,
    .model-checkout-content {
        width: 80%;
    }
}

#cart-body table th:nth-child(2),
#cart-body table td:nth-child(2) {
    white-space: nowrap;
}

.cart-body input[type='number'] {
    width: 50px;
}

/* Modal Content/Box */
.modal-cart-content {
    background-color: var(--modal-bg-color);
    border-radius: 0.25rem;
    margin: var(--modal-margin);
    padding: 2em;
    border: var(--modal-border);
    width: 90%; /* Could be more or less, depending on screen size */
}

.modal-cart-content {
    color: black;
}

/* The Modal (background) */
.modal-cart,
.modal-checkout-content {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
    -webkit-animation: fadeIn 1s;
    -moz-animation: fadeIn 1s;
    animation: fadeIn 1s;
}
