/*************
Cart
************/

#cart {
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: 0.4s;
    z-index: 10;
}

#cart[open] {
}

#cartContent {
    background-color: #f4f3f1;
    display: flex;
    flex-direction: column;
    max-width: 460px;
    width: 100%;
    margin-left: auto;
}

#cartHeader {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    color: #282a29;
    gap: 30px;
    border-bottom: 1px solid #b9b8b7;
}

#cartHeaderExit {
    cursor: pointer;
    padding: 0;
    outline: none;
}

#cartHeaderTitle {
    font-size: 18px;
    font-weight: 500;
    margin-right: auto;
}

#cartHeaderCount {
    font-size: 18px;
    font-weight: 500;
}

#cartBody {
    padding: 15px 20px;
    overflow-y: auto;
    display: none;
    row-gap: 15px;
}

#cartBody.active {
    display: grid;
}

#cartBody > div {
    display: none;
}

#cartBody > div.active {
    display: block;
}

.cartBodySavings {
    color: #847c74;
    font-size: 13px;
    text-align: center;
    font-weight: 800;
}

.cartBodyUpsell {
    color: #847c74;
    border: 2px solid #b1a69b;
    padding: 20px;
    border-radius: 15px;
}

.cartBodyUpsellTitle {
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    color: #282a29;
    margin-bottom: 10px;
    display: block;
}

.cartBodyUpsellTitle span {
    font-weight: 900;
    color: var(--red);
}

html.sale .cartBodyUpsellTitle span {
    color: var(--sale);
}

.cartBodyUpsellAdd {
    background-color: var(--red);
    color: white;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    display: block;
    font-weight: 800;
    padding: 12px 10px 10px;
    cursor: pointer;
    position: relative;
    width: 100%;
}

html.sale .cartBodyUpsellAdd {
    background-color: var(--sale);
}

.cartBodyProduct {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.cartBodyProductFlex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #bf9e7d;
    font-weight: 900;
    font-size: 20px;
    gap: 20px;
}

.cartBodyProductSubtitle {
    color: #282a29;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cartBodyProductCheck {
    display: flex;
    gap: 10px;
    color: #847c74;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}

.cartBodyProductCheck svg {
    color: #e8b58b;
}

.cartBodyProductCheck span.sale {
    color: var(--red);
}

.cartBodyProductCheck:last-child {
    margin-bottom: 0;
}

.cartBodyProductRemove {
    position: absolute;
    bottom: 12px;
    right: 20px;
    cursor: pointer;
    color: #bf9e7d;
    background-color: transparent;
}

.cartBodyProductRemove.loading::after {
    border-top-color: var(--orange);
}

#cartEmpty {
    display: none;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#cartEmpty.active {
    display: flex;
}

#cartEmptyTitle {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    color: #282a29;
}

#cartEmptyButton {
}

#cartFooter {
    display: none;
}

#cartFooter.active {
    display: block;
    margin-top: auto;
}

#cartFooterRedeem {
    border-top: 1px solid #b9b8b7;
    border-bottom: 1px solid #b9b8b7;
    padding: 20px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: block;
    background-color: transparent;
    color: black;
}

#cartFooterInner {
    padding: 20px 20px 10px;
}

#cartFooterSubtotal,
#cartFooterDiscount {
    display: none;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
    color: #897b6a;
    font-weight: 800;
}

#cartFooterDiscount {
    color: var(--red);
    display: none;
}

#cartFooterSubtotal.active,
#cartFooterDiscount.active {
    display: flex;
}

#cartFooterTotal {
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 25px;
    color: #897b6a;
}

#cartFooterCheckout {
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 15px;
    display: block;
    font-size: 20px;
    text-align: center;
    font-weight: 900;
    margin-bottom: 10px;
}

#cartFooterLegal {
    text-align: center;
    margin: auto;
    font-weight: 500;
    color: #282a29;
    line-height: 1.5;
    font-size: 10px;
}

#cartFooterLegal a {
    text-decoration: underline;
}

@media (max-width: 800px) {
    #cartExit {
        display: none;
    }

    #cartContent {
        max-width: none;
    }

    .cartBodySavings {
        font-size: 11px;
    }

    #cartFooterTotal {
        font-size: 22px;
    }
}