/**
 * Pulse product pricing (front end + editor canvas).
 * Markup comes from pemfit-pulse-price.php / pemfit-pulse-price.js.
 * Spans only — block-styles.css styles every <div> inside .pulse-sticky and
 * .pulse-xl-text-image (sticky positioning, flex-basis) so a div would break.
 */
.pulse-price {
    --pulse-badge-bg: #5b8a67;
    --pulse-badge-fg: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--extra-thin-gutter);
    margin-top: var(--thin-gutter);
    font-family: var(--DM-Sans);
    color: inherit;
}
.pulse-price--divider {
    padding-top: var(--thin-gutter);
    border-top: 1px solid rgba(58, 71, 66, 0.2);
}
.pulse-price__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.4rem;
}
.pulse-price__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1.2rem;
}
.pulse-price__sale {
    font-size: clamp(2.6rem, calc(2.4rem + 0.9vw), 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.pulse-price__regular {
    font-size: clamp(1.6rem, calc(1.4rem + 0.5vw), 2.2rem);
    line-height: 1.1;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    opacity: 0.55;
}
/* A lone regular price (no sale price) reads as a normal, un-struck-looking price size. */
.pulse-price__row > .pulse-price__regular:only-child {
    font-size: clamp(2.6rem, calc(2.4rem + 0.9vw), 4rem);
    font-weight: 500;
}
.pulse-price__badge {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5em 1.3em;
    border-radius: 2.4rem;       /* pill; stays tidy if the text wraps */
    background: var(--pulse-badge-bg);
    color: var(--pulse-badge-fg);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
}
.pulse-price__note {
    font-size: 1.5rem;
    line-height: 1.4;
    opacity: 0.7;
}
.pulse-price__sr {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* CTA button under the price. The theme .cta supplies colours / hover. */
.pulse-cta-wrap {
    display: block;
    margin-top: var(--thin-gutter);
}
.pulse-cta-wrap .cta {
    display: inline-block;
    flex: none;
    text-decoration: none;
}

/* Also makes WordPress copy this file into the editor canvas. */
.editor-styles-wrapper .pulse-price { margin-top: var(--thin-gutter); }
