/**
 * Hide UICore header cart icon when the cart is empty or on the cart page.
 * Account icon sits in Header Extras next to the cart, before the CTA.
 */

body.o4w-cart-empty .uicore-cart-icon {
    display: none !important;
}

body.woocommerce-cart .uicore-cart-icon,
body.o4w-hide-sidecart .uicore-cart-icon,
body.woocommerce-cart .uicore-extra > a.uicore-link:has(.uicore-cart-icon),
body.o4w-hide-sidecart .uicore-extra > a.uicore-link:has(.uicore-cart-icon),
body.woocommerce-cart .uicore-asside-cart,
body.o4w-hide-sidecart .uicore-asside-cart,
body.woocommerce-cart .uicore-cart-bg,
body.o4w-hide-sidecart .uicore-cart-bg {
    display: none !important;
}

.o4w-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.o4w-account-icon__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.o4w-account-icon__mark svg {
    display: block;
    width: 1.35em;
    height: 1.35em;
}

@media (max-width: 1025px) {
    .o4w-account-icon {
        display: none !important;
    }
}
