/*
Theme Name: Herlan Theme
Description: Child theme for Shoptimizer
Author: Remark
Author URI: https://remarkhb.com
Template: shoptimizer
Version: 4.0.6
Text Domain:  herlan
Requires at least: 5.0
Requires PHP: 7.4
*/

/* Skeleton Loading for Section Headings */
.is-loading .section-title h4 {
    color: transparent !important;
    background: #e2e8f0;
    border-radius: 4px;
    width: max-content;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}
.is-loading .section-title h4::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

/* Update color for prices in cart and checkout to follow product card style */
body.woocommerce-cart table.cart td.product-price,
body.woocommerce-cart table.cart td.product-subtotal,
body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total,
body.woocommerce-checkout table.shop_table .product-total,
body.woocommerce-checkout table.shop_table .cart-subtotal,
body.woocommerce-checkout table.shop_table .order-total,
body.woocommerce-checkout .herlan-checkout__price {
    color: #d50032 !important;
}

body.woocommerce-cart table.cart td.product-price .amount,
body.woocommerce-cart table.cart td.product-subtotal .amount,
body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal .amount,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total .amount,
body.woocommerce-checkout table.shop_table .product-total .amount,
body.woocommerce-checkout table.shop_table .cart-subtotal .amount,
body.woocommerce-checkout table.shop_table .order-total .amount,
body.woocommerce-checkout .herlan-checkout__price .amount {
    color: inherit !important;
}

body.woocommerce-cart table.cart td.product-price del,
body.woocommerce-cart table.cart td.product-price del .amount,
body.woocommerce-cart table.cart td.product-subtotal del,
body.woocommerce-cart table.cart td.product-subtotal del .amount,
body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal del,
body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal del .amount,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total del,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total del .amount,
body.woocommerce-checkout table.shop_table .product-total del,
body.woocommerce-checkout table.shop_table .product-total del .amount,
body.woocommerce-checkout table.shop_table .cart-subtotal del,
body.woocommerce-checkout table.shop_table .cart-subtotal del .amount,
body.woocommerce-checkout table.shop_table .order-total del,
body.woocommerce-checkout table.shop_table .order-total del .amount,
body.woocommerce-checkout .herlan-checkout__price del,
body.woocommerce-checkout .herlan-checkout__price del .amount {
    color: #9b9b9b !important;
    opacity: 1 !important;
}

body.woocommerce-cart table.cart td.product-price ins,
body.woocommerce-cart table.cart td.product-price ins .amount,
body.woocommerce-cart table.cart td.product-subtotal ins,
body.woocommerce-cart table.cart td.product-subtotal ins .amount,
body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal ins,
body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal ins .amount,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total ins,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total ins .amount,
body.woocommerce-checkout table.shop_table .product-total ins,
body.woocommerce-checkout table.shop_table .product-total ins .amount,
body.woocommerce-checkout table.shop_table .cart-subtotal ins,
body.woocommerce-checkout table.shop_table .cart-subtotal ins .amount,
body.woocommerce-checkout table.shop_table .order-total ins,
body.woocommerce-checkout table.shop_table .order-total ins .amount,
body.woocommerce-checkout .herlan-checkout__price ins,
body.woocommerce-checkout .herlan-checkout__price ins .amount {
    color: #d50032 !important;
    text-decoration: none !important;
}

/* Update color for prices in cart and checkout */
body.woocommerce-cart table.cart td.product-price,
body.woocommerce-cart table.cart td.product-price .amount,
body.woocommerce-cart table.cart td.product-subtotal,
body.woocommerce-cart table.cart td.product-subtotal .amount,
/*body.woocommerce-cart .cart-collaterals .cart_totals .cart-subtotal .amount,*/
/*body.woocommerce-cart .cart-collaterals .cart_totals .order-total .amount,*/
/*body.woocommerce-checkout table.shop_table .product-total .amount,*/
/*body.woocommerce-checkout table.shop_table .cart-subtotal .amount,*/
/*body.woocommerce-checkout table.shop_table .order-total .amount,*/
body.woocommerce-checkout .herlan-checkout__price {
    color: #d50032 !important;
}
