/* Keep Flatsome's dropdown arrow from covering SelectWoo's native clear control. */
form.checkout #billing_state_field .select2-selection__clear {
    position: absolute;
    right: 2em;
    top: 50%;
    transform: translateY(-50%);
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    margin: 0;
    z-index: 1;
}

form.checkout #billing_state_field .select2-selection__rendered {
    padding-right: 4.5em;
}

/* Keep ETHA's four desktop links on one row near the tablet breakpoint. */
@media (min-width: 990px) and (max-width: 1023px) {
    #masthead .header-nav-main > li {
        margin-left: 0;
        margin-right: 0;
    }

    #masthead .header-nav-main > li + li {
        margin-left: 9px;
    }
}

@media (max-width: 849px) {
    #masthead .header-inner {
        position: relative;
    }

    #masthead #logo {
        position: absolute;
        left: 50%;
        width: 300px;
        max-width: calc(100% - 100px);
        margin: 0;
        transform: translateX(-50%);
    }

    #masthead .header-inner > .flex-col.show-for-medium.flex-right {
        margin-left: auto;
    }

}

/* Native WooCommerce/Flatsome templates keep their images, links and controls.
 * Price values are also removed server-side; these selectors remove their layout. */
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal,
.woocommerce-cart-form .mobile-product-price,
.cart_totals > h2,
.cart_totals > table,
.woocommerce-mini-cart__total,
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table > tfoot,
.woocommerce-checkout-payment .wc_payment_methods,
.woocommerce-checkout .woocommerce-form-login-toggle {
    display: none !important;
}

.woocommerce-checkout-review-order-table .maindesk-quote-item-image {
    float: left;
    width: 48px;
    margin: 0 12px 8px 0;
}

.woocommerce-checkout-review-order-table .maindesk-quote-item-image img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}
