/* Shared WooCommerce price presentation. Values and sale rules remain server-owned. */
body :is(.price, .single-product-price, .product-price, .pc-card__price, .hap-cart-item__unit-price > div, .hap-cart-item__subtotal > strong) {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-inline-size: 0;
    max-inline-size: 100%;
    font-family: inherit;
    font-weight: 800;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -.02em;
    line-height: 1.3;
    color: #111827;
    text-decoration: none !important;
    vertical-align: baseline;
}

body .price { font-size: 18px; }
body :is(.single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price, .hap-cart-item__unit-price > div, .hap-cart-item__subtotal > strong) .price { font-size: inherit; }
body .woocommerce .products .product :is(.single-product-price.product-price, .pc-card__price.product-price) {
    font-size: 24px;
    line-height: 1.3;
}
body div.single-product .sp-purchase .single-product-price { font-size: 30px; }
body .hap-cart-item__unit-price > div { font-size: 15px; }
body .hap-cart-item__subtotal > strong { font-size: 19px; }
body .hap-checkout .cart-item .price { font-size: 18px; }

/* Preserve the search plugin's layout; only the price typography is shared. */
body :is(.dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price) {
    max-inline-size: 100%;
    font-family: inherit;
    font-variant-numeric: lining-nums tabular-nums;
    font-weight: 800;
    line-height: 1.4;
    color: #111827;
    overflow: visible;
}
body .dgwt-wcas-sp { font-size: 14px; }
body .dgwt-wcas-pd-price { font-size: 20px; }
body .dgwt-wcas-tpd-price { font-size: 14px; }
body .dgwt-wcas-sp del { margin-block-end: 4px; }

body :is(.price, .single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price, .hap-cart-item__unit-price > div, .hap-cart-item__subtotal > strong) :is(.woocommerce-Price-amount, .amount) {
    flex: 0 0 auto;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    white-space: nowrap;
}

body :is(.price, .single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price, .hap-cart-item__unit-price > div, .hap-cart-item__subtotal > strong) del {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    max-inline-size: 100%;
    margin-inline: 0;
    font-size: max(12px, .72em) !important;
    font-weight: 400 !important;
    line-height: 1.4;
    color: #667085 !important;
    opacity: 1 !important;
    text-decoration-line: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: #98a2b3;
    white-space: nowrap;
}

body :is(.price, .single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price, .hap-cart-item__unit-price > div, .hap-cart-item__subtotal > strong) ins {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    max-inline-size: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    font-size: 1em;
    font-weight: 800 !important;
    color: #111827;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Old amount styles in the theme/plugin must inherit the smaller, lighter del. */
body :is(.price, .single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price, .hap-cart-item__unit-price > div, .hap-cart-item__subtotal > strong) :is(del, ins) :is(.amount, bdi, .woocommerce-Price-currencySymbol) {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    opacity: 1 !important;
}

body :is(.price, .single-product-price, .product-price, .pc-card__price) .woocommerce-price-suffix {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    color: #667085;
}
body :is(.price, .single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price) a,
body a:has(> .price, .pc-card__price, .single-product-price) {
    text-decoration: none !important;
}
body :is(.price, .single-product-price, .product-price, .pc-card__price, .dgwt-wcas-sp, .dgwt-wcas-pd-price, .dgwt-wcas-tpd-price) .screen-reader-text {
    position: absolute !important;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    body .woocommerce .products .product :is(.single-product-price.product-price, .pc-card__price.product-price) { font-size: 22px; }
    body div.single-product .sp-purchase .single-product-price { font-size: 28px; }
}
@media (max-width: 360px) {
    body .hap-cart-item__subtotal > strong { font-size: 16px; }
}
