/* Keep the drawer's positioning independent of the old theme. Existing site styles
   still supply the Farachoob cards, colors, empty state and success message. */
html.fc-hello-cart-open {
    overflow: hidden;
}

body dialog.fc-hello-cart {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 420;
    width: min(420px, calc(100vw - 18px));
    max-height: 100dvh;
    height: 100%;
    margin: 0;
    border: 0;
}

body dialog.fc-hello-cart:not([open]) {
    display: none !important;
}

.fc-hello-cart::backdrop {
    background: rgb(39 26 23 / 48%);
}

.fc-hello-cart > .wd-heading {
    display: flex;
    justify-content: space-between;
}

.fc-hello-cart .wd-heading > .title {
    margin: 0;
}

.fc-hello-cart .fc-hello-cart-close {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #ead6ce;
    border-radius: 50%;
    background: #fff;
    color: #9b1611;
    font: 400 24px/1 Arial, sans-serif;
}

.fc-hello-cart .fc-hello-cart-close:hover {
    background: #f7e8e2;
    color: #9b1611;
}

.fc-hello-cart .widget_shopping_cart_content_wd {
    flex: 1;
    min-height: 0;
}

.fc-hello-cart ul.woocommerce-mini-cart {
    list-style: none;
}

.fc-hello-cart a {
    text-decoration: none;
}

.fc-hello-cart .cart-info .variation {
    margin-block: 0;
    font-size: 12px;
}

.woocommerce-cart .cart-content-wrapper > .cart-collaterals {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.woocommerce-cart .cart-content-wrapper > .cart-collaterals .cart_totals {
    float: none;
}

.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
    padding: 16px 0 0;
    border: 0;
    background: transparent;
}

.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
    float: none;
}

.fc-checkout-page form.checkout #customer_details > :is(.col-1, .col-2) {
    float: none;
    width: 100%;
}

.fc-account-page .wd-my-account-wrapper > :is(.wd-my-account-sidebar, .woocommerce-MyAccount-content),
.fc-account-page .wd-my-account-wrapper .woocommerce-MyAccount-navigation {
    float: none;
    width: auto;
    min-width: 0;
}

@media (max-width: 767px) {
    .woocommerce-cart .cart-content-wrapper > .cart-collaterals {
        width: 100%;
    }
}
