/*************
Hide
 */

.navDesktopItem.cart,
#instagram,
#footer {
    display: none;
}

/*************
# Main Structure
 */

#checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 78px);
}

#checkoutLeft {
    background-color: #FBFAF9;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkoutInner {
    max-width: 550px;
    width: 100%;
}

#checkoutLeftInner {
    margin-left: auto;
}

#checkoutRight {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#checkoutRightInner {
}

/******************** Mobile ***********/

#checkoutMobile {
    display: none
}

/********************* Left ***************/

#checkoutBack {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    display: none;
}

#checkBackIcon {
    color: #ADA094;
}

#checkoutBackLogo {
    height: 26px;
}

#checkoutHeader {
    color: #897B6A;
    font-weight: 900;
    font-size: 40px;
    margin-bottom: 30px;
}

.checkoutProduct {
    gap: 20px;
    margin-bottom: 75px;
    display: none;
}

.checkoutProduct.active {
    display: flex;
}

.checkoutProductImage {
    border-radius: 10px;
    width: 70px;
    height: 50px;
    object-fit: cover;
}

.checkoutProductFlex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #BF9E7D;
    font-weight: 500;
    font-size: 18px;
    gap: 20px;
}

.checkoutProductSubtitle {
    color: #282A29;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.checkoutUpsell {
    display: none;
    margin-bottom: 40px;
}

.checkoutUpsell.active {
    display: block;
}

.checkoutUpsellTitle {
    font-size: 18px;
    font-weight: 500;
    color: #282A29;
    margin-bottom: 10px;
    display: block;
}

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

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

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

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

#checkoutRedeem {
    border-top: 2px solid #EBEBE4;
    border-bottom: 2px solid #EBEBE4;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background-color: transparent;
    color: black;
}

#checkoutRedeemGift,
#checkoutRedeemDiscount {
    text-decoration: underline
}

#checkoutRedeemOr,
#checkoutRedeemDiscount {
    display: none;
}

#checkoutRedeemOr.active,
#checkoutRedeemDiscount.active {
    display: inline;
}

#checkoutSubtotal,
#checkoutDiscount,
#checkoutTax {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 19px;
    color: #897B6A;
    font-weight: 800;
}

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

#checkoutDiscount.active {
    display: flex;
}

#checkoutTotal {
    border-top: 2px solid #EBEBE4;
    padding-top: 15px;
    margin-top: 5px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    font-size: 25px;
    color: #897B6A;
}

/*********************Right ****************/

/* Checkout Page General */
.checkoutPage {
    display: none;
}

.checkoutPage.active {
    display: block;
}

.checkoutPageTitle {
    color: #897B6A;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Checkout Info */

#checkoutInfo {

}

.checkoutInfoLabel {
    font-weight: 500;
    font-size: 15px;
    color: rgb(48, 49, 61);
    margin-bottom: 2px;
}

.checkoutInfoInput {
    width: 100%;
    padding: 0.75rem;
    background-color: white;
    border-radius: 5px;
    transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    border: 1px solid #E6E6E6;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
    margin: 0 0 12px;
}

.checkoutInfoInput:focus {
    border-color: hsla(210, 96%, 45%, 50%);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 3px hsla(210, 96%, 45%, 25%), 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

#checkoutInfoAddress {
    margin-bottom: 20px;
}

#checkoutInfoGift {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px 5px;
}

#checkoutInfoGift.active {
    display: flex;
}

#checkoutInfoGiftDetailsDateCalendar {
    display: none;
}

/* Hide these conditional fields */
#checkoutInfoGiftDetails,
[for="checkoutInfoGiftDetailsRecipientEmail"],
#checkoutInfoGiftDetailsRecipientEmail,
[for="checkoutInfoGiftDetailsScheduledFor"],
#checkoutInfoGiftDetailsScheduledFor,
[for="checkoutInfoGiftDetailsScheduledForDate"],
#checkoutInfoGiftDetailsScheduledForDate {
    display: none;
}

/* Show when active */
#checkoutInfoGiftDetails.active,
[for="checkoutInfoGiftDetailsRecipientEmail"].active,
#checkoutInfoGiftDetailsRecipientEmail.active,
[for="checkoutInfoGiftDetailsScheduledFor"].active,
#checkoutInfoGiftDetailsScheduledFor.active,
[for="checkoutInfoGiftDetailsScheduledForDate"].active,
#checkoutInfoGiftDetailsScheduledForDate.active {
    display: block;
}

#checkoutInfoGiftDetailsDate {
    margin-bottom: 20px;
}


#checkoutInfoSave {
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 15px;
    display: block;
    font-size: 20px;
    text-align: center;
    font-weight: 900;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
}

/* Checkout Payment */
#checkoutPayment {

}

#checkoutPaymentBack {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: transparent;
    margin-bottom: 20px;
    font-size: 15px;
}

#checkoutPaymentBack svg {
    padding-bottom: 5px;
}

.checkoutPaymentTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.checkoutPaymentTitle span {
    height: 2px;
    background-color: #E6E6E6;
    flex-grow: 1;
}

#checkoutPaymentExpress {
    padding: 5px 0 20px;
    display: grid;
    row-gap: 7px;
}

#checkoutPaymentExpressPayPal {
    background-color: #2C69AB;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#checkoutPaymentExpressPayPalSVG {
    display: block;
    width: 100%;
    height: 20px;
}

#checkoutPaymentExpressPayPal.loading #checkoutPaymentExpressPayPalSVG {
    visibility: hidden;
}

#checkoutPaymentElement {
    margin-bottom: 10px;
}

#checkoutPaymentSubmit {
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 15px;
    display: block;
    font-size: 20px;
    text-align: center;
    font-weight: 900;
    margin: 20px 0 15px;
    width: 100%;
    cursor: pointer;
}

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

#checkoutPaymentLegal a {
    text-decoration: underline;
}

@media (max-width: 800px) {
    #checkout {
        display: block;
    }

    #checkoutMobile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px;
    }

    #checkoutMobileCart {
        display: flex;
        align-items: center;
    }

    #checkoutMobileTitle {
        font-size: 14px;
        line-height: 1;
        padding-top: 3px;
    }

    #checkoutMobileArrow {
        display: flex;
        align-items: center;
        margin-right: auto;
    }

    #checkoutMobile.active #checkoutMobileArrow {
        transform: rotate(180deg);
    }

    #checkoutMobileTotal {
        font-weight: 800;
        font-size: 18px;
        line-height: 1;
        padding-top: 5px;
    }

    #checkoutLeft,
    #checkoutRight {
        padding: 30px 15px;
    }

    #checkoutMobile + #checkoutLeft {
        display: none;
    }

    #checkoutMobile.active + #checkoutLeft {
        display: block;
    }

    #checkoutMobile:not(.active) ~ #checkoutRight {
        padding-top: 10px;
    }

    .checkoutInner {
        max-width: none;
    }

    #checkoutBack {
        display: none;
    }

    #checkoutHeader {
        display: none;
    }

    #checkoutRedeem {
        font-size: 14px;
    }

    .checkoutProduct {
        margin-bottom: 25px;
    }
}