/* Premium purchase flow — site design language (purple var(--bmm-accent), sharp 2px corners, Fraunces) */

.pf-frame {
    --pf-accent: var(--bmm-accent);
    --pf-accent-soft: color-mix(in srgb, var(--bmm-accent) 8%, transparent);
    --pf-ink: #14121a;
    --pf-ink-soft: #3d3a47;
    --pf-muted: #6b6776;
    --pf-paper: #ffffff;
    --pf-paper-tint: #faf8ff;
    --pf-line: #e5e2ec;
    --pf-line-soft: #f0eef5;
    color: var(--pf-ink);
}

.pf-hero {
    position: relative;
    background: var(--pf-paper);
    border: 1px solid var(--pf-line);
    padding: 18px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.pf-hero .pf-crn { position: absolute; width: 12px; height: 12px; border: 1px solid var(--pf-accent); opacity: .75; }
.pf-hero .pf-crn.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pf-hero .pf-crn.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.pf-hero .pf-crn.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.pf-hero .pf-crn.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.pf-hero img { width: 88px; height: auto; display: block; }
.pf-hero h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500; font-size: 22px;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.pf-hero h2 em { font-style: italic; color: var(--pf-accent); font-weight: 400; }
.pf-hero .pf-sub { font-size: 13px; color: var(--pf-ink-soft); }

.pf-card {
    position: relative;
    background: linear-gradient(180deg, #fff, #faf6ff);
    border: 1px solid var(--pf-accent);
    overflow: hidden;
}
.pf-card .pf-crn { position: absolute; width: 12px; height: 12px; border: 1px solid var(--pf-accent); opacity: .75; }
.pf-card .pf-crn.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pf-card .pf-crn.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.pf-card .pf-crn.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.pf-card .pf-crn.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.pf-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--pf-line);
    background: #fff;
}
.pf-tab {
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    border-right: 1px solid var(--pf-line);
    color: var(--pf-muted);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    user-select: none;
    background: none;
    appearance: none;
    font: inherit;
    width: 100%;
}
.pf-tab:last-child { border-right: none; }
.pf-tab:hover { background: var(--pf-paper-tint); }
.pf-tab.is-active {
    background: var(--pf-accent-soft);
    color: var(--pf-accent);
    border-bottom: 2px solid var(--pf-accent);
    margin-bottom: -1px;
}
.pf-tab .pf-tab-name {
    display: block; margin-bottom: 2px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 14px; font-weight: 500;
}
.pf-tab.is-active .pf-tab-name { font-weight: 600; }
.pf-tab .pf-tab-save {
    font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--pf-accent); font-weight: 700;
}
.pf-tab[data-plan="month"] .pf-tab-save,
.pf-tab[data-plan="once"] .pf-tab-save { color: var(--pf-muted); }

.pf-pane { padding: 24px 26px; display: none; flex-direction: column; gap: 12px; }
.pf-pane.is-active { display: flex; }

.pf-price-row { display: flex; align-items: baseline; gap: 10px; }
.pf-price-amt {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 44px; font-weight: 500;
    line-height: 1; color: var(--pf-ink);
}
.pf-price-per { font-size: 13px; color: var(--pf-muted); }
.pf-price-fine { font-size: 12px; color: var(--pf-muted); margin-top: -4px; }
.pf-price-fine strong { color: var(--pf-ink-soft); }
.pf-desc { font-size: 13px; color: var(--pf-ink-soft); line-height: 1.55; margin: 4px 0 6px; }

.pf-feat { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; font-size: 12px; color: var(--pf-ink-soft); }
.pf-feat li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.pf-feat li::before { content: "›"; color: var(--pf-accent); font-weight: 700; }

.pf-cta-wrap { margin-top: 8px; }
.pf-cta-note { text-align: center; font-size: 11px; color: var(--pf-muted); margin-top: 6px; }

/* Pricing-page condensed variant */
.pf-pricing {
    border: 1px solid var(--pf-line);
    background: #fff;
    padding: 18px;
    text-align: center;
    position: relative;
}
.pf-pricing .pf-crn { position: absolute; width: 12px; height: 12px; border: 1px solid var(--pf-accent); opacity: .75; }
.pf-pricing .pf-crn.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pf-pricing .pf-crn.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.pf-pricing-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--pf-line); margin: 14px 0; font-size: 11px; }
.pf-pricing-tabs .pf-mini {
    padding: 7px 4px; cursor: pointer; text-align: center;
    border-right: 1px solid var(--pf-line);
    color: var(--pf-muted); letter-spacing: .04em;
    background: none; appearance: none; font: inherit; width: 100%;
}
.pf-pricing-tabs .pf-mini:last-child { border-right: none; }
.pf-pricing-tabs .pf-mini.is-active { background: var(--pf-accent-soft); color: var(--pf-accent); font-weight: 600; }
.pf-pricing-big {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 38px; font-weight: 500; line-height: 1; margin-bottom: 2px;
}
.pf-pricing-small { font-size: 11px; color: var(--pf-muted); margin-bottom: 12px; }
.pf-pricing-game-label { text-align: left; font-size: 11px; color: var(--pf-muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .14em; }
.pf-pricing select { width: 100%; padding: 8px 10px; border: 1px solid var(--pf-line); border-radius: 0; font-size: 12px; font-family: inherit; background: #fff; }
.pf-pricing-cta {
    display: block; margin-top: 14px; padding: 10px;
    background: var(--pf-accent); color: #fff;
    font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 13px;
    border: none; cursor: pointer; width: 100%;
    text-decoration: none; text-align: center;
}
.pf-pricing-cta:hover { background: #6e2cd8; color: #fff; }

/* Hide an element from the layout — used for non-active PayPal forms */
.pf-hidden { display: none !important; }

/* Override of PayPal button alignment (the original m2m partial used class .paypal_button) */
.pf-frame .paypal_button { text-align: center; }
.pf-frame .paypal_button input[type="image"] { max-width: 100%; }
