/*-----------------------------------
WooCommerce Common Styles
Notices, breadcrumbs, star rating font, cart badge
-----------------------------------*/

/* Notices */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    border-top: 3px solid var(--e-global-color-primary);
    background-color: #f8f8f8;
    color: var(--e-global-color-text);
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    font-family: WooCommerce;
    content: "\e028";
    display: inline-block;
    position: absolute;
    top: 1em;
    left: 1.5em;
    color: var(--e-global-color-primary);
}

.woocommerce-error::before {
    content: "\e016";
}

.woocommerce-message::before {
    content: "\e015";
}

.woocommerce-error {
    border-top-color: #b81c23;
}

.woocommerce-error::before {
    color: #b81c23;
}

.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
    float: right;
    padding: 0.5em 1em;
    margin-top: -0.5em;
    margin-bottom: -0.5em;
}

.woocommerce-notices-wrapper,
.woocommerce-message {
    outline: none !important;
}

.woocommerce-error a {
    color: var(--e-global-color-text);
    text-decoration: none;
    margin-bottom: 1em;
    display: inline-block;
}

.woocommerce-error a:hover {
    color: var(--e-global-color-text);
    text-decoration: underline;
}

/* Breadcrumbs */
.woocommerce-breadcrumb a {
    color: var(--e-global-color-e117629);
}

/* Star Rating Font */
@font-face {
    font-family: 'star';
    src: url('../fonts/star.woff') format('woff'),
        url('../fonts/star.ttf') format('truetype'),
        url('../fonts/star.svg#star') format('svg');
    font-weight: normal;
    font-style: normal;
}

.star-rating::before,
.star-rating span::before {
    font-family: 'star';
}

.star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: 'star';
}

.star-rating::before {
    content: '\73\73\73\73\73';
    color: #d3ced2;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
    color: var(--e-global-color-primary);
}

/* Hide default text */
.woocommerce .star-rating span strong {
    display: none;
}

/* Cart Badge */
.cart-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--e-global-color-primary);
    color: #fff;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
}

.mobile-cart-text {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-cart-text {
        display: inline;
        margin-left: 5px;
        text-align: center;
        display: block;
        color: var(--e-global-color-8706898);
    }

    .fa-shopping-cart,
    .cart-count {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-cart-text {
        display: none;
    }
}

/* Remove underline from sale price */
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}

/* Added to cart link */
.woocommerce a.added_to_cart {
    display: block;
}
