/* Presentation only; the real discount is calculated inside WooCommerce's cart. */
.hcb-offer-price { font-variant-numeric: tabular-nums; }
.hcb-offer-pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em; }
.hcb-offer-price del { opacity: .62; text-decoration: line-through; }
.hcb-offer-price ins { color: #B24097; font-weight: 800; text-decoration: none; background: transparent; }
.hcb-discount-settings { margin-top: 16px; padding: 15px; border: 1px solid #cddfea; background: #f3f8fb; border-radius: 12px; }
.hcb-discount-settings h4 { margin: 0 0 12px; color: #085385; }
.hcb-discount-settings .hcb-discount-note { margin: 6px 0; font-size: 12px; color: #42556a; }
.hcb-admin [data-hcb-wc-discount-controls][hidden] { display: none !important; }

/* Campaign discount badge on WooCommerce product cards. */
.hcb-discount-card-media { position: relative !important; }
.hcb-product-discount-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 30 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 27px;
    max-width: calc(100% - 20px);
    padding: 5px 10px !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 999px !important;
    background: var(--hcb-card-badge-bg, #B24097) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    direction: rtl !important;
    text-align: center !important;
    box-shadow: 0 3px 12px rgba(20,25,35,.18) !important;
    pointer-events: none !important;
}
.hcb-product-discount-badge::before,
.hcb-product-discount-badge::after { content: none !important; }
@media (max-width: 600px) {
    .hcb-product-discount-badge { top: 7px !important; left: 7px !important; min-height: 24px; padding: 4px 8px !important; font-size: 10px !important; }
}

/* Keep the server-rendered badge anchored to the product thumbnail link. */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a.woocommerce-loop-product__link { position: relative; }
