/* ACSD - The price box on a treatment's page. Borrows the theme's font and
   colours; only the layout and the two price sizes are ours, because the
   whole point of the box is that the figure is readable from across the
   page. */

.ac-pb {
    --ac-pb-line: rgba(0, 0, 0, 0.12);
    --ac-pb-quiet: rgba(0, 0, 0, 0.55);
    --ac-pb-accent: #30594a;
    margin: 20px 0;
}

.ac-pb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--ac-pb-line);
    border-radius: 14px;
}

.ac-pb-lengths-label {
    margin: 0 0 8px;
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ac-pb-quiet);
}

.ac-pb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-pb-pill {
    appearance: none;
    border: 1px solid var(--ac-pb-line);
    background: transparent;
    border-radius: 999px;
    padding: 9px 18px;
    font: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ac-pb-pill:hover {
    border-color: currentColor;
}

.ac-pb-pill.is-on {
    background: var(--ac-pb-accent);
    border-color: var(--ac-pb-accent);
    color: #fff;
}

.ac-pb-price {
    text-align: right;
    min-width: 170px;
}

.ac-pb-badge {
    margin: 0 0 2px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ac-pb-accent);
}

.ac-pb-figures {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
}

.ac-pb-was {
    color: var(--ac-pb-quiet);
    font-size: 1em;
}

.ac-pb-now {
    font-size: 2em;
    line-height: 1.1;
    font-weight: 800;
}

.ac-pb-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.ac-pb-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--ac-pb-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.ac-pb-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.ac-pb-note {
    margin: 0;
    font-size: 0.88em;
    color: var(--ac-pb-quiet);
}

@media (max-width: 520px) {
    .ac-pb-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ac-pb-price {
        text-align: left;
    }

    .ac-pb-figures {
        justify-content: flex-start;
    }
}
