/**
 * Member Perks - Price Labels & Sale Badges
 * Fluent Community Theme Compatible
 */

/*
 * Boxes WooCommerce's native product price for the Fluent Community theme.
 *
 * NOTE: `.price` is a very broad WooCommerce class. Exclude the inline price
 * spans rendered by "All Products for Subscriptions" (the subscription /
 * one-time frequency labels, e.g. ".../ month") — those are NOT product prices,
 * and the block + padding box here breaks them onto a second line. Without the
 * exclusion this rule bleeds into the donation product's subscribe selector.
 */
.price:not(.subscription-price):not(.one-time-price) {
    background-color: var(--fcom-secondary-bg, #f0f2f5);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 5px;
    padding: 10px;
    margin-top: 0px !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    line-height: 1.5;
    display: block;
    font-weight: bold;
    color: var(--fcom-primary-text, #19283a) !important;
}

.price:not(.subscription-price):not(.one-time-price):empty {
    display: none;
}

.custom-onsale {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #6a3093 0%, #a044ff 100%);
    color: #ffffff;
    position: relative;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
