/* FMS Member Gate — locked-card styles (front end).
 *
 * No fixed width: the card is a normal block, so it flows at the post content
 * width the theme already sets. The accent (button + icon + footer link) is themed
 * via --fms-gate-accent: the plugin's "Accent color" setting injects it inline when
 * set; otherwise it falls back to the theme's primary colour preset, then a neutral
 * slate. Card text/background inherit the surrounding content so it blends in. */

/* Stylesheet-wide accent default so every FMS surface (account / team / billing pages,
   not just the gate card) has a usable value. The plugin's "Accent color" setting, when
   set, overrides this via an inline :root rule injected after this file (see
   fms_mg_enqueue_front_styles); the gate/pricing wrappers override it more specifically. */
:root {
    --fms-gate-accent: var(--wp--preset--color--primary, #1f2937);
}

/* Metered-read banner above a freely served gated article ("free article 1 of N
   this month" + upgrade link). Accent-tinted so it reads as a courtesy, not an error. */
.fms-gate__meter-note {
    margin: 0 0 1.5rem;
    padding: .65rem .95rem;
    border: 1px solid rgba(50, 186, 151, .35);
    border-color: color-mix(in srgb, var(--fms-gate-accent) 35%, transparent);
    border-radius: 8px;
    background: rgba(50, 186, 151, .08);
    background: color-mix(in srgb, var(--fms-gate-accent) 8%, transparent);
    font-size: .92rem;
}

.fms-gate__meter-note a {
    color: var(--fms-gate-accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.fms-gate__meter-note a:hover,
.fms-gate__meter-note a:focus {
    text-decoration: underline;
}

/* Free teaser shown above the locked card: fades out at the bottom so the cut-off
   reads as intentional. The fade colour should match the page background — override
   --fms-gate-teaser-fade if the theme's content area isn't white. */
.fms-gate__teaser {
    position: relative;
}

.fms-gate__teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--fms-gate-teaser-fade, #fff));
    pointer-events: none;
}

.fms-gate--locked {
    --fms-gate-accent: var(--wp--preset--color--primary, #1f2937);
    box-sizing: border-box;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.fms-gate--locked * {
    box-sizing: border-box;
}

.fms-gate__body {
    padding: 22px 26px;
}

.fms-gate__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fms-gate__icon {
    flex: 0 0 auto;
    color: var(--fms-gate-accent);
}

.fms-gate__title {
    margin: 0;
    font-size: 1.25em;
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
}

.fms-gate__desc {
    margin: 0 0 18px;
    color: inherit;
}

.fms-gate__cta {
    margin: 0;
}

.fms-gate__button {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    background: var(--fms-gate-accent);
    /* !important: the theme paints post-body links with
       `.main-content-single .post-content-single p a[href]` (0,3,2), which a class
       selector can never outrank — that turned the label accent-on-accent, i.e.
       invisible. Applies to the color only; the secondary variant re-overrides below. */
    color: #fff !important;
    font: inherit;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.fms-gate__button:hover,
.fms-gate__button:focus {
    filter: brightness(0.92);
    color: #fff !important;
    text-decoration: none;
}

/* Compact primary button — inline confirmations (e.g. transfer ownership). */
.fms-gate__button--sm {
    padding: .5rem 1rem;
    font-size: .78em;
}

/* Secondary "Join free" action: a lighter outline sibling of the primary button. */
.fms-gate__button--secondary {
    margin-left: 8px;
    background: transparent;
    color: var(--fms-gate-accent) !important;
    border: 1px solid var(--fms-gate-accent);
}

.fms-gate__button--secondary:hover,
.fms-gate__button--secondary:focus {
    filter: none;
    color: var(--fms-gate-accent) !important;
    background: rgba(0, 0, 0, 0.04);
}

.fms-gate__footer {
    padding: 13px 26px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.95em;
}

.fms-gate__footer a {
    color: var(--fms-gate-accent);
    text-decoration: none;
}

.fms-gate__footer a:hover {
    text-decoration: underline;
}

/* [fms_account] panel — reuses .fms-gate__button for actions. */
.fms-account {
    /* Match the theme's body font (PT Sans) instead of inheriting the browser's default
       serif — the theme only sets --sans-serif on its own classes, which our markup
       doesn't use, so without this the console renders in Times New Roman. */
    font-family: var(--sans-serif, "PT Sans", "Helvetica Neue", Arial, sans-serif);
    max-width: 32rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    background: #fff;
}

.fms-account__status {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
}

.fms-account__state {
    color: #6e6e73;
    font-weight: 400;
}

.fms-account__note {
    margin: .5rem 0 0;
    color: #6e6e73;
    font-size: .9rem;
}

/* The facts list on Membership & Billing: member since, billing, next payment. */
.fms-account__facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .4rem 1.25rem;
    margin: 0 0 1rem;
}

.fms-account__fact {
    display: contents;
}

.fms-account__facts dt {
    margin: 0;
    color: #6e6e73;
    font-size: .95rem;
    font-weight: 400;
}

.fms-account__facts dd {
    margin: 0;
    color: #1c1c1e;
    font-size: .98rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .fms-account__facts {
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem 0;
    }

    .fms-account__facts dd {
        margin-bottom: .5rem;
    }
}

/* --- Account hub: the "How can we help you?" card grid ---
 * Per `designs/user account page.png`: two columns of borderless rows, each a grey
 * outline icon at the left of a title / description / teal uppercase CTA stack. */
.fms-account:has(.fms-account__grid) {
    max-width: 60rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.fms-account__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 3rem;
    margin-top: .5rem;
}

@media (max-width: 640px) {
    .fms-account__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.fms-account__card {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.fms-account__card-icon {
    flex: 0 0 auto;
    color: #6e6e73;
    line-height: 0;
}

.fms-account__card.is-disabled .fms-account__card-icon {
    color: #b6b6bb;
}

.fms-account__card-body {
    min-width: 0;
}

.fms-account__card-title {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.fms-account__card-desc {
    margin: 0 0 .6rem;
    color: #4b4b50;
    font-size: .95rem;
    line-height: 1.45;
    max-width: 24rem;
}

.fms-account__cta {
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .82rem;
    color: var(--fms-gate-accent);
    text-decoration: none;
}

.fms-account__cta:hover,
.fms-account__cta:focus {
    text-decoration: underline;
}

.fms-account__card.is-disabled,
.fms-account__cta.is-disabled {
    color: #b6b6bb;
    cursor: default;
}

.fms-account__card.is-disabled {
    opacity: .8;
}

.fms-account__join {
    margin: 1.25rem 0 0;
    color: #4b4b50;
}

/* --- Account hub: the status header above the card grid (2026-09-28) ---
 * Which membership, its state, when it renews or ends, and any payment that
 * needs the member. A white card so it reads as a fact about them, distinct
 * from the borderless "what can I do" grid under it. */
.fms-account__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin: 0 0 2.25rem;
    padding: 1.35rem 1.6rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-left: 5px solid var(--fms-gate-accent);
    border-radius: 10px;
    background: #fff;
}

.fms-account__header-main {
    flex: 1 1 18rem;
    min-width: 0;
}

.fms-account__header-kicker {
    margin: 0 0 .3rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6e6e73;
}

.fms-account__header-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .7rem;
    margin: 0 0 .35rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.fms-account__header-meta,
.fms-account__header-when,
.fms-account__header-note {
    margin: 0;
    color: #4b4b50;
    font-size: .98rem;
    line-height: 1.45;
}

.fms-account__header-when {
    margin-top: .2rem;
    color: #1c1c1e;
    font-weight: 600;
}

.fms-account__header-actions {
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
}

.fms-account__header-actions .fms-gate__button--secondary {
    margin-left: 0;
}

.fms-account__header-hint {
    margin: .45rem 0 0;
    max-width: 16rem;
    color: #6e6e73;
    font-size: .82rem;
    line-height: 1.4;
}

.fms-account__header-alerts {
    flex: 1 1 100%;
}

.fms-account__header-alerts .fms-group__pending {
    margin: .25rem 0 0;
}

.fms-account__header-alerts .fms-group__pending + .fms-group__pending {
    margin-top: .75rem;
}

.fms-account__pill {
    display: inline-block;
    padding: .18rem .65rem;
    border-radius: 999px;
    font-family: var(--sans-serif, "PT Sans", "Helvetica Neue", Arial, sans-serif);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.5;
    vertical-align: middle;
}

.fms-account__pill--ok {
    background: rgba(28, 160, 90, .14);
    color: #1a7f43;
}

.fms-account__pill--warn {
    background: #fdeeee;
    color: #a52222;
}

.fms-account__pill--muted {
    background: rgba(0, 0, 0, .06);
    color: #4b4b50;
}

@media (max-width: 640px) {
    .fms-account__header {
        padding: 1.1rem 1.15rem;
    }
    .fms-account__header-title {
        font-size: 1.3rem;
    }
    .fms-account__header-actions {
        align-self: flex-start;
    }
}

/* --- Panels + notices (newsletters / membership / group) --- */
.fms-account__back {
    margin: 0 0 1rem;
}

.fms-account__notice {
    margin: 0 0 1rem;
    padding: .6rem .9rem;
    border-radius: 8px;
    font-size: .92rem;
}

.fms-account__notice--ok {
    background: #e7f6ec;
    color: #14663a;
    border: 1px solid #b6e0c4;
}

.fms-account__notice--error {
    background: #fdecec;
    color: #8a1c1c;
    border: 1px solid #f2bcbc;
}

/* --- The unconfirmed-address hold --- */
.fms-account--unconfirmed {
    margin: 0 0 1.5rem;
}

.fms-account--unconfirmed p {
    line-height: 1.5;
}

/* The resend button sits directly under the explanatory copy; give it the same
   breathing room the account forms use so it doesn't crowd the note below it. */
.fms-account__resend {
    margin: 1rem 0;
}

/* Newsletters — replicates the theme's "My Newsletters" page: intro + Email /
   Membership summary lines, big dark group headings, roomy checkbox rows. */
.fms-newsletters__intro {
    margin: 0 0 1.25rem;
    max-width: 34rem;
    line-height: 1.5;
}

.fms-newsletters__meta {
    margin: 0 0 .5rem;
}

.fms-newsletters__verified {
    color: var(--fms-gate-accent);
    font-weight: 700;
}

/* "(gifted — not you@…)" beside the delivery address. */
.fms-newsletters__gift {
    color: #6b6b6b;
}

/* "Make changes for: your account / the whole team" — a team admin only.
   Two links styled as a segmented control; the selected one carries the accent
   so the page says plainly whose newsletters are about to change. */
.fms-newsletters__scope {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.25rem;
}

.fms-newsletters__scope-label {
    font-weight: 600;
}

.fms-newsletters__scope-option {
    padding: .35rem .75rem;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.fms-newsletters__scope-option:hover {
    border-color: color-mix(in srgb, var(--fms-gate-accent) 45%, transparent);
}

.fms-newsletters__scope-option.is-selected {
    border-color: color-mix(in srgb, var(--fms-gate-accent) 55%, transparent);
    background: color-mix(in srgb, var(--fms-gate-accent) 10%, transparent);
    font-weight: 600;
}

/* The gift panel: who receives these newsletters. */
.fms-newsletters__delivery {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fafafa;
}

.fms-newsletters__delivery h3 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.fms-newsletters__delivery p {
    margin: 0 0 .75rem;
    max-width: 34rem;
    line-height: 1.5;
}

.fms-newsletters__delivery form {
    margin: 0 0 .5rem;
}

.fms-newsletters__pending {
    font-weight: 600;
}

.fms-newsletters__gift-form label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
}

.fms-newsletters__gift-form input[type="email"] {
    min-width: 16rem;
    padding: .45rem .6rem;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
}

.fms-newsletters__group {
    border: 0;
    margin: 1.25rem 0 0;
    padding: .5rem 0 .25rem;
}

.fms-newsletters__group legend {
    font-weight: 700;
    font-size: 1.35rem;
    color: #1c1c1c;
    padding: 0 0 .5rem;
}

.fms-newsletters__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .75rem 0;
    cursor: pointer;
}

/* Theme-parity checkbox — an exact copy of the theme's recipe (style.css
   .newsletter-form__check-container + .gg-check): 24px box, 2px silver border,
   4px radius, and a thin teal gg-check tick that fades in over .3s. Only the
   border color reacts to :checked, exactly like the theme. */
.fms-newsletters__item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    position: relative;
    border: 2px solid #c2c2c2;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition-duration: .3s;
}

.fms-newsletters__item input[type="checkbox"]:checked {
    border-color: var(--fms-gate-accent);
}

.fms-newsletters__item input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--fms-gate-accent);
    outline-offset: 2px;
}

.fms-newsletters__item input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--fms-gate-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition-duration: .3s;
}

.fms-newsletters__item input[type="checkbox"]:checked::after {
    opacity: 1;
}

.fms-newsletters__lockbox {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    color: #9aa3a0;
}

.fms-newsletters__item.is-locked {
    cursor: default;
}

.fms-newsletters__item.is-locked .fms-newsletters__title-row strong,
.fms-newsletters__item.is-locked .fms-newsletters__desc {
    opacity: .6;
}

.fms-newsletters__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.fms-newsletters__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.fms-newsletters__upgrade {
    color: var(--fms-gate-accent);
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
    text-decoration: none;
}

.fms-newsletters__upgrade:hover {
    text-decoration: underline;
}

/* A newsletter the plan includes but the team switched off. Stated plainly —
   there is nothing to buy here, only somebody to ask. */
.fms-newsletters__muted {
    color: #6e6e73;
    font-size: .85rem;
    white-space: nowrap;
}

.fms-newsletters__desc {
    color: #6e6e73;
    font-size: .875rem;
    line-height: 1.45;
    margin-top: .15rem;
}

/* Membership */
.fms-membership__options {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
}

.fms-membership__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.fms-membership__price {
    color: #6e6e73;
    font-size: .9rem;
}

.fms-membership__badge {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fms-gate-accent);
    font-weight: 600;
}

.fms-membership__form {
    margin: 0;
}

/* ── Team console ([fms_group]) ─────────────────────────────────────────────── */
.fms-group {
    max-width: 44rem;
}

/* Header: plan, seat usage, price, and a usage meter. */
.fms-group__header {
    padding-bottom: 1.2rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid rgba(0, 0, 0, .09);
}

.fms-group__plan {
    margin: 0 0 .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #8a8a8f;
}

.fms-group__seats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .1rem 1rem;
}

.fms-group__seats-count {
    font-size: 1.4rem;
    color: #1c1c1e;
}

.fms-group__seats-count strong {
    font-weight: 700;
}

/* Read-only seat count inside the "Seats" panel (comp/offline teams). */
.fms-group__seats-count--sm {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
}

.fms-group__seats-price {
    font-size: .92rem;
    color: #6e6e73;
}

.fms-group__meter {
    position: relative;
    height: 8px;
    margin-top: .9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    overflow: hidden;
}

.fms-group__meter-reserved,
.fms-group__meter-used {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease;
}

.fms-group__meter-reserved {
    background: rgba(50, 186, 151, .3);
    background: color-mix(in srgb, var(--fms-gate-accent) 32%, transparent);
}

.fms-group__meter-used {
    background: var(--fms-gate-accent);
}

.fms-group__reserved-note {
    margin: .55rem 0 0;
    font-size: .82rem;
    color: #6e6e73;
}

/* Roster */
.fms-group__roster {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0 .35rem;
    font-size: .95rem;
}

.fms-group__roster thead th {
    text-align: left;
    padding: 0 .55rem .55rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a8f;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.fms-group__roster tbody td {
    padding: .7rem .55rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    vertical-align: middle;
}

.fms-group__member {
    font-weight: 500;
    color: #1c1c1e;
    word-break: break-word;
}

.fms-group__badge {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.55;
    background: rgba(0, 0, 0, .06);
    color: #4b4b50;
}

.fms-group__badge--role-admin {
    background: rgba(50, 186, 151, .16);
    background: color-mix(in srgb, var(--fms-gate-accent) 18%, transparent);
    color: #12775f;
    color: color-mix(in srgb, var(--fms-gate-accent) 72%, #000);
}

.fms-group__badge--active {
    background: rgba(28, 160, 90, .14);
    color: #1a7f43;
}

.fms-group__badge--invited {
    background: rgba(200, 140, 0, .15);
    color: #8a5a00;
}

.fms-group__actions {
    text-align: right;
    white-space: nowrap;
}

.fms-group__form {
    display: inline;
    margin: 0;
}

.fms-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--fms-gate-accent);
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}

.fms-link:hover,
.fms-link:focus {
    text-decoration: underline;
}

.fms-link--danger {
    color: #c0392b;
}

/* Space out the per-row action links / buttons. */
.fms-group__actions > * + *,
.fms-group__actions .fms-group__form + .fms-link,
.fms-group__actions .fms-link + .fms-group__form {
    margin-left: .9rem;
}

/* Transfer-ownership confirmation — a full-width row below the member (not squeezed
   into the actions cell). */
.fms-group__confirm-row td {
    padding: .85rem .6rem;
    background: rgba(50, 186, 151, .07);
    background: color-mix(in srgb, var(--fms-gate-accent) 8%, transparent);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.fms-group__confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    margin: 0;
    font-size: .92rem;
    color: #3a3a3d;
}

.fms-group__confirm-text {
    flex: 1 1 15rem;
}

.fms-group__confirm-actions {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    white-space: nowrap;
}

/* Action cards: invite a member + change seats, side by side. */
.fms-group__panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fms-group__panel {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 14px;
    background: #fafafa;
}

.fms-group__panel h4 {
    margin: 0 0 .85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1e;
}

.fms-group__inline {
    margin: 0;
    display: flex;
    gap: .5rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.fms-group__inline input[type="email"] {
    flex: 1 1 10rem;
    min-width: 0;
}

.fms-group__inline input[type="number"] {
    flex: 0 0 5.5rem;
}

.fms-group__inline input[type="email"],
.fms-group__inline input[type="number"] {
    padding: .6rem .75rem;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.fms-group__inline input:focus {
    outline: none;
    border-color: var(--fms-gate-accent);
    box-shadow: 0 0 0 3px rgba(50, 186, 151, .22);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fms-gate-accent) 22%, transparent);
}

.fms-group__inline .fms-gate__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.fms-group__panel .fms-account__note {
    margin-top: .75rem;
}

/* Narrow viewports: stack the roster actions and let long emails wrap. */
@media (max-width: 600px) {
    .fms-group__roster thead th,
    .fms-group__roster tbody td {
        padding: .55rem .35rem;
        font-size: .9rem;
    }

    .fms-group__actions {
        white-space: normal;
    }
}

/* Invoices */
.fms-invoices__table {
    width: 100%;
    border-collapse: collapse;
    margin: .5rem 0 0;
    font-size: .92rem;
}

.fms-invoices__table th,
.fms-invoices__table td {
    text-align: left;
    padding: .45rem .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.fms-invoices__status {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6e6e73;
}

.fms-invoices__status--paid {
    color: #14663a;
}

.fms-invoices__status--payment_failed,
.fms-invoices__status--uncollectible {
    color: #8a1c1c;
}

/* Waiting on the cardholder's 3DS confirmation — amber, not red: nothing has
   failed, and the member can still complete it from the View link. */
.fms-invoices__status--action_required {
    color: #8a5a00;
}

.fms-invoices__badge {
    display: inline-block;
    margin-left: .35rem;
    padding: .05rem .35rem;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: .2rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6e6e73;
    vertical-align: middle;
}

.fms-invoices__links a {
    color: var(--fms-gate-accent);
    text-decoration: none;
    margin-right: .5rem;
}

.fms-invoices__links a:hover,
.fms-invoices__links a:focus {
    text-decoration: underline;
}

/* The card a payment was taken on (0.48.0): quiet, never wraps mid-number. */
.fms-invoices__card {
    color: #6e6e73;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .fms-invoices__card {
        white-space: normal;
    }
}

/* Cancel + confirmation cards reuse .fms-account. The period-end alternative
   (0.48.0) is a boxed aside above the immediate-cancel button. */
.fms-cancel__period-end {
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .4rem;
    background: #f7faf9;
    font-size: .92rem;
}

.fms-cancel__period-end .fms-link {
    font-weight: 700;
}

/* Profile form ([fms_profile], and the [pmpro_member_profile_edit] shim). The theme
 * styles text/password inputs and labels globally, but not type="email"; these rules
 * give every field one consistent, legible appearance and stack labels above inputs. */
.fms-profile__field {
    margin: 0 0 1rem;
}

.fms-profile__field label {
    display: block;
    margin: 0 0 .35rem;
    font-weight: 600;
}

.fms-profile .fms-profile__input {
    box-sizing: border-box;
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid rgba(0, 0, 0, .24);
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

.fms-profile .fms-profile__input:focus {
    border-color: var(--keppel, #32BA97);
    outline: 2px solid var(--keppel, #32BA97);
    outline-offset: 1px;
}

.fms-profile__fieldset {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 1rem 0;
    padding: 1rem 0 0;
}

.fms-profile__fieldset legend {
    font-weight: 600;
    padding: 0;
}

.fms-profile__hint {
    margin: 0 0 .75rem;
    color: #6e6e73;
    font-size: .85rem;
}

/* --- Log-in card ([fms_login], and the [pmpro_login] shim) -------------------
 *
 * The theme styles the login box through PMPro's DOM (themes/fm/style.css
 * "[pmpro overrides] [/en/login]"), but those are OVERRIDES: they assumed PMPro's
 * frontend.css underneath, which went away with the plugin. Without a base layer the
 * form renders as an unstyled stack of inputs. These rules restore just that base —
 * the theme's own rules still win where they overlap (equal specificity, and the
 * theme's stylesheet loads after this one), which is why nothing here fights them.
 *
 * The brand colours are read from the theme's own custom properties, with fallbacks so
 * the card still looks deliberate under any other theme. --keppel is the resting state
 * and --teal-green the hover, mirroring how the theme itself pairs them. */

#pmpro_login .pmpro_card {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    background: #fff;
}

#pmpro_login .pmpro_card_content {
    padding: 1rem 1.25rem;
}

#pmpro_login #loginform p {
    margin: 0 0 1rem;
}

#pmpro_login #loginform label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
}

#pmpro_login #loginform .input {
    box-sizing: border-box;
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid rgba(0, 0, 0, .24);
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

#pmpro_login #loginform .input:focus {
    border-color: var(--keppel, #32BA97);
    outline: 2px solid var(--keppel, #32BA97);
    outline-offset: 1px;
}

/* The theme adds `justify-content: space-between` here, which needs a flex container. */
#pmpro_login #loginform .login-remember {
    display: flex;
    align-items: center;
    font-size: .9rem;
}

#pmpro_login #loginform .login-remember label {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
}

#pmpro_login #loginform .login-submit {
    margin-bottom: 0;
}

#pmpro_login #loginform .login-submit .button {
    display: block;
    width: 100%;
    padding: .75rem 1.25rem;
    border: 1px solid var(--keppel, #32BA97);
    border-radius: 4px;
    background: var(--keppel, #32BA97);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    cursor: pointer;
}

#pmpro_login #loginform .login-submit .button:hover,
#pmpro_login #loginform .login-submit .button:focus {
    background: var(--teal-green, #22997A);
    border-color: var(--teal-green, #22997A);
    color: #fff;
}

#pmpro_login .pmpro_card_actions {
    padding: 0 1.25rem 1rem;
}

#pmpro_login .pmpro_actions_nav {
    font-size: .9rem;
}

#pmpro_login .pmpro_actions_nav a {
    color: var(--keppel, #32BA97);
}

#pmpro_login .pmpro_message {
    margin: 0 0 1rem;
    padding: .6rem .9rem;
    border-radius: 8px;
    font-size: .92rem;
}

#pmpro_login .pmpro_message.pmpro_error {
    border: 1px solid #f2bcbc;
    background: #fdecec;
    color: #8a1c1c;
}

/* login-sync's "check your email" notice (login=provisioned). */
#pmpro_login .pmpro_message.pmpro_success {
    border: 1px solid #bfe3d6;
    background: #e9f7f1;
    color: #14563f;
}

/* --- Account page shell: the chrome fms_mg_account_shell() adds around the
   standalone billing / profile / invoices pages so they match the theme's own
   account templates (yellow nav bar + 75/25 row + Get Help box). The nav <ul>
   itself is styled by the theme (.membership-account__nav-menu). --- */

.fms-account-nav {
    /* Full-bleed yellow bar: the negative margins stretch it to the viewport
       even inside a boxed column (they collapse to 0 in a full-width one). */
    background: var(--golden-yellow, #f7c602);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 2rem;
}

/* The nav items sit in the site's boxed content column (Elementor boxed
   default = 1140px; --fms-content-width overrides if the site changes it). */
.fms-account-nav__inner {
    max-width: var(--fms-content-width, 1140px);
    margin: 0 auto;
    /* The bar's HEIGHT is set here, on the wrapper both nav variants share — not on
       the menu itself. The theme's own nav markup, which this wrapper holds on pages
       its Elementor account layout doesn't cover (the [fms_group] team page), has all
       of its padding zeroed just below so it sits in our bar rather than its own; with
       the padding on .fms-account-nav__menu instead, that variant kept none of it and
       the yellow band collapsed to the height of the link text. */
    padding: .9rem 10px;
}

.fms-account-nav section {
    padding: 0;
}

.fms-account-nav .membership-account__nav-menu {
    margin: 0;
    padding: 0;
}

/* The plugin-built fallback nav (fms_mg_account_nav_fallback) shown on standalone
   account pages the theme's Elementor account layout doesn't wrap — e.g. the
   [fms_group] team page. Mirrors the theme's yellow account bar. */
.fms-account-nav__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    /* No vertical padding: .fms-account-nav__inner sets the bar height for both nav
       variants, so adding it here again would make this one twice as tall. */
    padding: 0;
}

.fms-account-nav__menu li {
    margin: 0;
    padding: 0;
}

.fms-account-nav__menu a {
    display: inline-block;
    color: #16161d;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.fms-account-nav__menu a:hover,
.fms-account-nav__menu a:focus {
    text-decoration: underline;
}

/* The shell body boxes itself too: harmless inside an already-boxed column
   (max-width can't exceed the parent), load-bearing in a full-width one. */
.fms-account-page {
    max-width: var(--fms-content-width, 1140px);
    margin: 0 auto 2.5rem;
    padding: 0 10px;
}

/* Inside the 75% column the base .fms-account card can use the full width
   (the base 32rem cap is for embedded/panel contexts), and the hub sheds its own
   box — the design shows the grid sitting directly on the page, not in a card. */
.fms-account-page .fms-account {
    max-width: none;
}

/* --- The consolidated Membership & Billing page's section stack. --- */
.fms-billing__section {
    margin: 0 0 2.5rem;
    /* Land anchor jumps below the sticky theme header. */
    scroll-margin-top: 6rem;
}

.fms-billing__section-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.fms-billing__card {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
}

.fms-billing__card .fms-account__grid {
    grid-template-columns: minmax(0, 1fr);
}

/* --- [fms_confirmation]: the post-checkout "You're all set!" card --- */

.fms-confirmation {
    max-width: 34rem;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
}

.fms-confirmation .fms-account__status {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.fms-confirmation p {
    margin: 0 0 1.25rem;
}

.fms-confirmation .fms-gate__button {
    margin-top: .25rem;
}

/* Cancel save-offer (includes/cancel.php): the switch button leads, "keep" is a
   normal link, and the real exit is present but deliberately quiet. */
.fms-cancel--offer .fms-cancel__lead {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.fms-cancel--offer .fms-cancel__keep {
    margin: 1rem 0 0;
}

.fms-cancel--offer .fms-cancel__continue {
    margin: 1.25rem 0 0;
    font-size: .85rem;
    opacity: .7;
}

/* --- Seat-change confirm dialog (two-step seat change; no JS — the backdrop and
   Cancel are plain links that drop the ?fms_confirm_seats marker). --- */

.fms-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: var(--sans-serif, "PT Sans", "Helvetica Neue", Arial, sans-serif);
}

.fms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, .55);
    cursor: default;
}

.fms-modal__card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.fms-modal__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.fms-modal__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0;
}

.fms-modal__due {
    margin: 1rem 0 .75rem;
    padding: .75rem .95rem;
    border-radius: 8px;
    font-size: .95rem;
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(0, 0, 0, .03);
}

.fms-modal__due--charge {
    border-color: color-mix(in srgb, var(--fms-gate-accent) 35%, transparent);
    background: color-mix(in srgb, var(--fms-gate-accent) 8%, transparent);
}

.fms-modal__due--credit {
    border-color: #bfe3d6;
    background: #e9f7f1;
}

/* "This ends your team plan" — the one consequence that lands on other people,
   so it reads louder than the neutral __due box. Also used by the cancel card. */
.fms-modal__warn {
    margin: 1rem 0 .75rem;
    padding: .75rem .95rem;
    border-radius: 8px;
    font-size: .95rem;
    border: 1px solid #e6bcbc;
    background: #fdeeee;
    color: #6b1414;
}

/* The acknowledgement that must be ticked before the team-ending Confirm. Takes
   a whole row of .fms-modal__actions so the buttons keep their own line. */
.fms-modal__ack {
    display: flex;
    flex: 0 0 100%;
    align-items: flex-start;
    gap: .5rem;
    margin: 0 0 .25rem;
    font-size: .9rem;
    line-height: 1.35;
    text-align: left;
}

.fms-modal__ack input {
    margin-top: .2rem;
    flex: none;
}

/* Confirm reads as unavailable until every acknowledgement is ticked. It stays
   clickable so the browser's own "tick this box" hint points at what's missing. */
form:has(.fms-modal__ack input:not(:checked)) .fms-gate__button {
    opacity: .45;
    cursor: not-allowed;
}

.fms-modal__error {
    margin: 0 0 1rem;
    color: #8a1c1c;
}

.fms-modal__fine {
    margin: .25rem 0 0;
    color: #6e6e73;
    font-size: .85rem;
}

.fms-modal__actions {
    display: flex;
    align-items: center;
    /* Wraps so the team acknowledgement (a full-width row, below) can sit above
       the button/link pair instead of squeezing onto the same line. */
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0 0;
}

/* --- "Waiting on payment" banner: a seat upgrade Stripe is holding until its
   prorated invoice clears. Amber rather than red — nothing has gone wrong, the
   change simply hasn't been bought yet — and never green, which would read as
   though the seats were already available. --- */

.fms-group__pending {
    /* Own font: the banner also renders on the pricing page, which is outside
       .fms-account and would otherwise fall back to the browser's serif. */
    font-family: var(--sans-serif, "PT Sans", "Helvetica Neue", Arial, sans-serif);
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #f0d089;
    border-left: 4px solid #d99e12;
    border-radius: 8px;
    background: #fdf6e6;
    color: #4a3808;
}

.fms-group__pending-title {
    margin: 0 0 .35rem;
    font-weight: 700;
}

.fms-group__pending-note {
    margin: 0;
    font-size: .95rem;
}

.fms-group__pending-action {
    margin: .9rem 0 0;
}

/* A payment the member's BANK is holding until they authenticate it. Louder than
   the amber pending-upgrade banner it borrows from: that one is "we're waiting",
   this one is "your membership stops unless you act", and it carries a deadline. */
.fms-group__pending--action {
    border-color: #e6bcbc;
    border-left-color: #a52222;
    background: #fdeeee;
    color: #6b1414;
}

/* Membership-levels card copy (the pmpro-compat shim's FMS-fed description).
   The fm theme's levels-page CSS only adds a Font Awesome check via ::before —
   it never removes the browser's default bullets, and whether the FA font is
   on a given page is Elementor's per-page call. Ship the complete published
   look self-contained: default bullets off, flex rows, and the green check as
   an inline SVG mask colored by the theme's --keppel (with a fallback), so the
   cards match the live design on any page. !important beats the theme's own
   ::before rule (same specificity, unpredictable load order). */
.membership-levels .--list-icon-check,
.membership-levels__column .--list-icon-check {
    list-style: none;
    margin: 0;
    padding: 0;
}

.membership-levels .--list-icon-check li,
.membership-levels__column .--list-icon-check li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    text-align: left;
}

.membership-levels .--list-icon-check li::before,
.membership-levels__column .--list-icon-check li::before {
    content: "" !important;
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    margin-top: 5px !important;
    background-color: var(--keppel, #2bb59a);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.1 13.2 1.4 8.5l1.8-1.8 2.9 2.9 6.7-6.8 1.8 1.8z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.1 13.2 1.4 8.5l1.8-1.8 2.9 2.9 6.7-6.8 1.8 1.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Legacy PMPro limit-post-views banner on the Membership Levels page (static page
   content, container class .custom-message). Designed to be revealed by a
   .redirect_lpv ancestor that PMPro's meter added; FMS gating replaces that meter,
   so the banner is dead content — and the page's own hide rule loses to Elementor
   Custom Skin's higher-specificity container display rule. The .redirect_lpv
   reveal below still out-ranks this, so pre-cutover behavior is untouched. */
.custom-message {
    display: none !important;
}

/* --- One-shot result toast (fms_mg_account_notice): fixed top-right so it reads
   the same on every surface. Success auto-dismisses (inline script); an error
   stays until closed. Same palette as the in-flow notice above. --- */
.fms-mg-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    max-width: 380px;
    padding: .8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 15, 20, .18);
    font-family: var(--sans-serif, "PT Sans", "Helvetica Neue", Arial, sans-serif);
    font-size: .92rem;
    line-height: 1.45;
    animation: fms-mg-toast-in .25s ease-out;
}

/* Clear the WP admin bar for logged-in admins. */
body.admin-bar .fms-mg-toast {
    top: 48px;
}

.fms-mg-toast--ok {
    background: #e7f6ec;
    color: #14663a;
    border: 1px solid #b6e0c4;
}

.fms-mg-toast--error {
    background: #fdecec;
    color: #8a1c1c;
    border: 1px solid #f2bcbc;
}

.fms-mg-toast__close {
    flex: 0 0 auto;
    margin: -2px -4px 0 0;
    padding: 0 4px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
}

.fms-mg-toast__close:hover,
.fms-mg-toast__close:focus {
    opacity: 1;
}

@keyframes fms-mg-toast-in {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Post-checkout welcome modal (includes/welcome-modal.php): the thank-you note
   from the newsroom shown on return from checkout (?fms_joined=<plan_code>), with
   the tier's benefits underneath as "what to expect".
   Borrows the .fms-modal frame and re-skins the card to the membership pages'
   look — bright-sun hero, Playfair headline, keppel checks. The checklist rules
   are duplicated from pages.css on purpose: this modal lands on the site's home
   page, where loading the whole pages stylesheet for one list would be silly. --- */

/* A long note (a team plan's eight bullets, a laptop's short window, a phone) must
   never be cut off, and the card itself must not scroll: the overlay does. The card
   grows to its content; auto margins centre it while it fits and pin it to the top
   once it doesn't, so its first line is always reachable. */
.fms-modal--welcome {
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2rem 1rem;
}

/* Fixed, not absolute, so the dimmed page stays covered while the overlay scrolls. */
.fms-modal--welcome .fms-modal__backdrop {
    position: fixed;
}

/* Set by the modal's script while it is open: one scrollbar (the overlay's), and the
   page behind stays where the member left it. */
html.fms-modal-open {
    overflow: hidden;
    /* Keep the page scrollbar's gutter, or the dimmed page jumps sideways on
       classic (Windows/Linux) scrollbars as the note opens and closes. */
    scrollbar-gutter: stable;
}

.fms-modal--welcome .fms-modal__card {
    max-width: 32rem;
    max-height: none;
    margin: auto;
    /* The hero bleeds to the card edge, so the padding moves onto the children;
       overflow only rounds the hero's corners now that nothing is capped. */
    padding: 0;
    overflow: hidden;
}

/* The script focuses the card on open so reading starts at the headline; a ring
   around the whole note would only say "this is a box". The × and the buttons
   keep their own rings. */
.fms-modal--welcome .fms-modal__card:focus {
    outline: none;
}

/* The × sits on the yellow hero, top right, in the hero's ink colour. */
.fms-modal__close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: #17231d;
    opacity: .7;
    text-decoration: none;
    transition: opacity .15s ease, background-color .15s ease;
}

.fms-modal__close:hover,
.fms-modal__close:focus-visible {
    opacity: 1;
    color: #17231d;
    background: rgba(23, 35, 29, .1);
}

.fms-modal__close:focus-visible {
    outline: 2px solid #17231d;
    outline-offset: 1px;
}

.fms-modal__close svg {
    display: block;
}

.fms-welcome__hero {
    /* Right padding clears the × so a long name never runs under it. */
    padding: 1.75rem 3.5rem 1.5rem 1.75rem;
    background: var(--bright-sun, #ffe01a);
    color: #17231d;
}

/* The seal (fms_mg_welcome_seal): a green disc with a white tick, ringed by rays in
   the hero's ink. The 64-unit box leaves room for the rays and the ripple around the
   36-unit disc; the negative margins pull the disc itself into line with the text. */
.fms-welcome__seal {
    display: block;
    width: 4rem;
    height: 4rem;
    margin: -.875rem 0 -.15rem -.875rem;
    overflow: visible;
}

/* Frontier's green, fixed rather than --fms-gate-accent: the accent is a setting, and
   one close to the hero's yellow would make the seal vanish. */
.fms-welcome__seal-disc {
    fill: #32BA97;
}

.fms-welcome__seal-tick {
    fill: none;
    stroke: #fff;
    stroke-width: 3.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Both only exist mid-animation: at rest they are invisible. */
.fms-welcome__seal-ring {
    fill: none;
    stroke: #32BA97;
    stroke-width: 2;
    opacity: 0;
}

.fms-welcome__seal-ray {
    stroke: #17231d;
    stroke-width: 2.25;
    stroke-linecap: round;
    opacity: 0;
}

/* The motion is opt-in: only a visitor who hasn't asked for reduced motion gets it,
   and it plays once. The card rises in over a fading backdrop; then the disc pops,
   the tick draws itself, and a ripple and the rays burst outward and fade.
   `both` holds each part at its first frame through its delay (tick undrawn, disc
   unscaled) and at its last frame afterwards, which is the resting state above. */
@media (prefers-reduced-motion: no-preference) {
    .fms-modal--welcome .fms-modal__backdrop {
        animation: fms-welcome-fade .3s ease-out both;
    }

    .fms-modal--welcome .fms-modal__card {
        animation: fms-welcome-rise .45s cubic-bezier(.2, .8, .2, 1) both;
    }

    .fms-welcome__seal-disc {
        transform-box: fill-box;
        transform-origin: center;
        animation: fms-welcome-pop .5s cubic-bezier(.34, 1.56, .64, 1) .3s both;
    }

    .fms-welcome__seal-tick {
        stroke-dasharray: 1;
        animation: fms-welcome-draw .35s ease-out .6s both;
    }

    .fms-welcome__seal-ring {
        transform-box: fill-box;
        transform-origin: center;
        animation: fms-welcome-ripple .7s ease-out .65s both;
    }

    .fms-welcome__seal-ray {
        animation: fms-welcome-ray .6s ease-out .7s both;
    }

    .fms-welcome__seal-ray.is-short {
        animation-delay: .78s;
    }
}

@keyframes fms-welcome-fade {
    from {
        opacity: 0;
    }
}

@keyframes fms-welcome-rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
}

@keyframes fms-welcome-pop {
    from {
        transform: scale(0);
    }
}

@keyframes fms-welcome-draw {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Starts invisible, so holding the first frame through the delay can't show a ring
   before the disc has popped. */
@keyframes fms-welcome-ripple {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: .7;
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

/* Each ray sits in its own rotated group, so "up" is always outward. */
@keyframes fms-welcome-ray {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    35% {
        opacity: .85;
    }

    100% {
        opacity: 0;
        transform: translateY(-3px);
    }
}

.fms-welcome__kicker {
    margin: 0 0 .45rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .75;
}

.fms-modal--welcome .fms-modal__title {
    margin: 0;
    font-family: var(--playfair-display, "Playfair Display"), Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.fms-welcome__subtitle {
    margin: .6rem 0 0;
    font-size: .95rem;
    line-height: 1.4;
}

/* The note is the point of the dialog: body size, generous leading, set in the
   same serif as the headline so it reads as a letter rather than a feature list. */
.fms-welcome__note {
    margin: 1.5rem 1.75rem 0;
    font-family: var(--playfair-display, "Playfair Display"), Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #17231d;
}

.fms-welcome__note p {
    margin: 0 0 .85rem;
}

.fms-welcome__signoff {
    font-style: italic;
    opacity: .8;
}

/* What to expect: deliberately quieter than the note — smaller, muted heading,
   hairline above — so it reads as useful detail, not the sales pitch again. */
.fms-welcome__expect {
    margin: 1.25rem 1.75rem 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(23, 35, 29, .12);
}

.fms-welcome__lead {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(23, 35, 29, .6);
}

.fms-welcome__benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .92rem;
}

.fms-welcome__benefits li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .4rem 0;
    line-height: 1.4;
}

.fms-welcome__benefits .fms-mg-check {
    flex: none;
    margin-top: .15rem;
    color: var(--fms-gate-accent, #32BA97);
}

.fms-modal--welcome .fms-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.5rem 1.75rem;
}

.fms-modal--welcome .fms-modal__actions .fms-gate__button--secondary {
    margin-left: 0;
}

@media (max-width: 480px) {
    .fms-modal--welcome {
        padding: 1rem .75rem;
    }

    .fms-welcome__hero {
        padding: 1.35rem 3.25rem 1.15rem 1.25rem;
    }

    .fms-modal__close {
        top: .5rem;
        right: .5rem;
    }

    .fms-modal--welcome .fms-modal__title {
        font-size: 1.35rem;
    }

    .fms-welcome__note,
    .fms-welcome__expect,
    .fms-modal--welcome .fms-modal__actions {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
}

/* Team newsletters sit under the invite/seats grid, full width. */
.fms-group__newsletters {
    margin-top: 1rem;
}

.fms-group__newsletters .fms-newsletters__group {
    border: 0;
    padding: 0;
    margin: 0 0 .5rem;
}

/* Paywalled-content wrapper (0.56.0, Google markup — NEW-09; 0.56.1). It exists for
   the cssSelector in the article schema: a plain block around whole paragraphs, or an
   inline span inside one, with no box styling of its own. (0.56.0 used
   `display: contents`, which forwards boxes but not the block theme's selectors.)
   Inside a block theme's constrained layout the wrapper is the direct child that
   `.is-layout-constrained > *` sizes, so it takes the full width and hands the
   content / wide widths and the block gap on to its own children instead. */
div.fms-paywalled {
    display: block;
}
span.fms-paywalled {
    display: inline;
}
.is-layout-constrained > div.fms-paywalled {
    max-width: none;
}
.is-layout-constrained > div.fms-paywalled > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}
.is-layout-constrained > div.fms-paywalled > .alignwide {
    max-width: var(--wp--style--global--wide-size);
}
.is-layout-constrained > div.fms-paywalled > * + * {
    margin-block-start: var(--wp--style--block-gap, 1.2rem);
}
