@import '../variables';
@import "../grid-mixins"; // so that it works on admin

.cfw-order-bumps {
    .cfw-order-bump {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #eee;
        border-radius: 5px;
        color: #333;

        > div {
            padding: 0.75rem;
        }

        .cfw-order-bump-header {
            border-bottom: 1px solid #eee;
            color: $dark;

            label {
                font-weight: 600;
                cursor: pointer;
                display: flex;
                align-items: center;
                input {
                    margin-right: 0.5em !important; // needed for admin
                }

                span {
                    flex-grow: 1;
                }
            }
        }

        .cfw-order-bump-body img {
            max-width: 100%;
            min-width: 60px;
            height: auto;
        }

        .cfw-order-bump-content {
            p {
                margin-bottom: 0.8em;
            }
        }

        .cfw-order-bump-total {
            margin-top: 0.5em;
            font-weight: bold;
            color: $black;

            del {
                font-weight: normal;
            }
        }
    }
}

/**
 * Order Bumps Responsive Stuff
 * This is separate from the main file because we can't use these mixins on admin
 */
// Hide payment tab order bumps output on desktop
#order_review .cfw-order-bumps.cfw-order-bumps-mobile {
    display: none;

    @include media-breakpoint-down(lg) {
        display: block;
    }
}

// Hide sidebar order bumps on mobile
#cfw-cart-summary .cfw-order-bumps.cfw-order-bumps-mobile {
    display: block;
}

main.checkoutwc {
    #cfw_bumps_below_cart_items, #cfw_bumps_below_checkout_cart_items {
        @include media-breakpoint-down(lg) {
            display: none;
        }
    }
}