/*
 * PR-03 / PR-23 — pricing pages and /book-a-call/.
 *
 * Loaded only on those templates (inc/pricing.php), so nothing here can affect
 * the other 546 URLs. Versioned by terrier_asset_version(), i.e. the file's own
 * mtime, because Caddy caches assets for 30 days and a release-number ?ver=
 * would hide every edit made between releases.
 *
 * .is-hidden is the ONLY mechanism that hides a currency. The other two spans
 * stay in the DOM and in the raw HTML — they are display:none, never removed,
 * because an extractor must be able to read all three.
 */

.pricing-page__header {
    padding: 3rem 0 1rem;
}

.pricing-page__title {
    margin: 0 0 .5rem;
}

.pricing-updated {
    margin: 0 0 1.5rem;
    font-size: .875rem;
    opacity: .7;
}

/* ---- currency switcher -------------------------------------------------- */

.pricing-currency {
    display: inline-flex;
    border: 1px solid currentColor;
    border-radius: 999px;
    overflow: hidden;
}

.pricing-currency__btn {
    padding: .45rem 1rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    color: inherit;
}

.pricing-currency__btn[aria-pressed="true"] {
    background: #111;
    color: #fff;
}

.price__cur.is-hidden,
.pricing-tax .is-hidden {
    display: none;
}

.pricing-tax {
    margin: 2rem 0 0;
    font-size: .8125rem;
    opacity: .7;
}

/* ---- cards (FULL and STRIP) -------------------------------------------- */

.pricing-tiers {
    margin: 3rem 0;
}

.pricing-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 48em) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
}

.pricing-card--chosen {
    border-color: #111;
    border-width: 2px;
}

.pricing-card__flag {
    margin: 0 0 .75rem;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pricing-card__name {
    margin: 0 0 .25rem;
}

.pricing-card__strapline {
    margin: 0 0 1rem;
    font-size: .9375rem;
    opacity: .75;
}

.pricing-card__price {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.pricing-card__note {
    margin: .25rem 0 1.25rem;
    font-size: .8125rem;
    opacity: .7;
}

.pricing-card__list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
}

.pricing-card__list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    font-size: .9375rem;
}

.pricing-card__value {
    font-weight: 600;
    text-align: right;
}

.pricing-card__term {
    margin: 0 0 1rem;
    font-size: .8125rem;
    opacity: .7;
}

.pricing-card__cta {
    align-self: stretch;
    text-align: center;
}

/* STRIP: the compact row used on the parent service pages. */

.pricing-tiers--strip .pricing-card {
    padding: 1.25rem;
}

.pricing-tiers--strip .pricing-card__price {
    font-size: 1.375rem;
}

.pricing-tiers--strip .pricing-card__list li {
    border: 0;
    padding: .2rem 0;
    font-size: .875rem;
}

/* ---- TABLE -------------------------------------------------------------- */

/*
 * The table scrolls inside its own container. The page body must never scroll
 * sideways, so the overflow lives here and not on any ancestor.
 */
.pricing-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    min-width: 40rem;
    border-collapse: collapse;
    font-size: .9375rem;
}

.pricing-table th,
.pricing-table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    text-align: left;
    vertical-align: top;
}

.pricing-table thead th {
    border-bottom-width: 2px;
}

.pricing-table__name {
    display: block;
    font-weight: 700;
}

.pricing-table__price {
    display: block;
    font-weight: 400;
    font-size: .875rem;
    opacity: .8;
}

/* Sticky first column so the row label stays readable while the columns scroll. */
.pricing-table__rowhead {
    position: sticky;
    left: 0;
    background: #fff;
    font-weight: 600;
    min-width: 14rem;
}

.pricing-table tfoot td,
.pricing-table tfoot th {
    border-bottom: 0;
    font-size: .8125rem;
    opacity: .8;
}

/* ---- /book-a-call/ ------------------------------------------------------ */

.booking-page__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding: 3rem 0 4rem;
}

@media (min-width: 60em) {
    .booking-page__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.booking-page__lede {
    font-size: 1.125rem;
}

.booking-page__steps,
.booking-page__ready {
    padding-left: 1.25rem;
}

.booking-page__steps li,
.booking-page__ready li {
    margin-bottom: .75rem;
}

.booking-widget-embed {
    min-height: 900px;
}

.booking-widget-embed iframe {
    width: 100%;
    min-height: 900px;
}

.booking-page__fallback,
.booking-page__alt {
    font-size: .875rem;
    opacity: .8;
}

/* TERRIER_BANDS_V1 — price bands (2 Sep 2026) */
.price--band,
.price--from { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.price--custom { font-weight: 600; }
.pricing-cards--bands { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 60em) { .pricing-cards--bands { grid-template-columns: repeat(4, 1fr); } }
.pricing-card__desc { margin: .25rem 0 .75rem; }
.pricing-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 .5rem; }
.pricing-strip__from { margin: 0; font-variant-numeric: tabular-nums; }
