﻿.cart__header-wrapper {
    margin-top: 4rem;
}

.cart-wrapper {
    display: grid;
    margin-top: 2rem;
}

table.cart {
    border-collapse: inherit;
    border-spacing: 0;
    text-indent: unset;
}

.cart th.left-text {
    text-align: left;
}

.cart th.right-text {
    text-align: right;
}

.cart th.right-text.small-hide.quantity {
    padding-right: 4rem;
}

.cart thead tr th {
    border-bottom: 1px solid var(--color-grey-light);
    padding-bottom: 1rem;
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    font-size: .8rem;
}

.cart tbody tr td {
    padding-top: 1rem;
}

.cart .line-quantity-controls__wrapper {
    display: flex;
    justify-content: flex-end;
}

.cart .line-total__wrapper {
    display: flex;
    justify-content: flex-end;
}

.cart .cart-line-info__wrapper {
    display: flex;
}

.cart .cart-line-info__wrapper .line-total-amounts {
    display: flex;
    justify-content: flex-end;
}

.cart .line-total-amounts div {
    text-align: end;
}

.cart .line-total-amounts .crossed-out {
    text-decoration: line-through;
    font-size: .8rem;
    color: rgba(27, 49, 60, 0.5);
}

.cart .cart-line-image__wrapper {
    width: 100px;
    margin-right: 2rem;
}

.cart .cart-line__image {
    height: 100px;
    width: auto;
}

.cart img.cart-line__image {
    max-width: 100px;
    height: auto;
    max-height: 120px;
}

.cart .cart-line-description__amount {
    font-size: .9rem;
    font-weight: var(--font-weight-light);
}

.cart .cart-line-description__amount .base-cost.crossed-out {
    text-decoration: line-through;
    color: rgba(27, 49, 60, 0.5);
}

.cart .cart-line-description__amount .discounted-label {
    color: rgba(27, 49, 60, 0.5);
    font-size: .8rem;
}

.cart cart-line-description__cart-message {

}

.cart-checkout__wrapper {
    min-width: 350px;
    justify-self: right;
}

.cart-checkout__details {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.cart-details__total-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-details__total-wrapper h2 {
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
}

.cart-details__total-wrapper p {
    margin-left: 2rem;
}

.cart-details__disclaimer-wrapper {
    display: flex;
    justify-content: flex-end;
}

.cart-details__disclaimer-wrapper small {
    font-size: .8rem;
    font-weight: var(--font-weight-light);
}

.cart-donations__wrapper {
    margin-top: 1rem;
}

.cart-donations__wrapper h3 {
    line-height: 24px;
    margin-bottom: 1rem;
}

.cart-donations__amounts {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.cart-donations__amounts a {
    background-color: var(--color-robins-egg-light);
    color: var(--color-text);
    padding: .5rem;
    border-radius: 5px;
}

.cart-donations__amounts span {
    font-size: .8rem;
}

.cart-donations__other-amount {
    margin-top: 1rem;
}

.cart-donations-other-amount__controls {
    margin-top: .5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.cart-donations-other-amount__controls input[type=number] {
    max-width: 8rem;
}

.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
}

.modal__content-left img {
    max-width: 150px;
}

.modal__footer {
    display: flex;
    align-items: end;
    flex-direction: column;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
    .medium-hide {
        display: none !important;
    }
}

@media screen and (min-width: 990px) {
    .large-hide {
        display: none !important;
    }
}

@media only screen and (max-width: 749px) {
    .small-hide {
        display: none !important;
    }

    .cart__header-wrapper {
        margin-top: 0;
    }

    .cart-wrapper {
        margin-top: 1rem;
    }

    .cart .cart-line-image__wrapper {
        width: 100px;
        margin-right: .5rem;
    }

    .cart-item__totals-amount-wrapper {
        width: 100%;
    }

    .cart-item .cart-item__image-container {
        margin-right: 2rem;
        width: 80px;
    }

    .cart-item .cart-item__info .cart-item__image {
        height: 80px;
        width: auto;
    }

    .cart-item__totals-amount-wrapper,
    .cart-item__description-amount {
        font-size: .8rem;
    }
}