/* Go2fete Prime: public page, member dashboard and admin pages. */
.g2f-prime { --prime: #FA1068; --prime-dark: #c2186b; --ink: #1d2426; --muted: #5c6a6e; --line: #e6eaeb; --soft: #fff1f6; --gold: #b7791f; }
.g2f-prime__wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }

.g2f-prime__hero { background: linear-gradient(135deg, #1d2426 0%, #3a1426 100%); color: #fff; border-radius: 18px; padding: 40px 32px; margin: 24px 0; }
.g2f-prime__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffc2d8; }
.g2f-prime__hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 12px 0; color: #fff; }
.g2f-prime__hero p { font-size: 17px; line-height: 1.55; color: #e7e9ea; max-width: 620px; margin: 0; }
.g2f-prime__note { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: #fff8e6; color: #7a4d00; font-size: 14px; }

.g2f-prime__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.g2f-prime__step, .g2f-prime__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.g2f-prime__step i { color: var(--prime); font-size: 22px; }
.g2f-prime__step strong { display: block; margin: 10px 0 4px; color: var(--ink); }
.g2f-prime__step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.g2f-prime__example { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.g2f-prime__example dl { display: flex; gap: 28px; margin: 0; }
.g2f-prime__example dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.g2f-prime__example dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.g2f-prime__example dd.is-save { color: var(--prime-dark); }

.g2f-prime__plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.g2f-prime__plan { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 24px; }
.g2f-prime__plan:hover { border-color: var(--prime); }
.g2f-prime__plan h3 { margin: 0; font-size: 18px; color: var(--ink); }
.g2f-prime__price { font-size: 32px; font-weight: 800; color: var(--ink); }
.g2f-prime__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.g2f-prime__plan p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.g2f-prime__plan form { margin: 0; }

.g2f-prime__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 0; background: var(--prime); color: #fff !important; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px; white-space: nowrap; }
.g2f-prime__btn:hover { background: var(--prime-dark); }
.g2f-prime__btn--light { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.g2f-prime__btn--light:hover { background: #f5f7f7; }
.g2f-prime__btn--block { width: 100%; }

.g2f-prime__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.g2f-prime__tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.g2f-prime__tile span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.g2f-prime__tile strong { display: block; margin-top: 6px; font-size: 26px; color: var(--ink); }
.g2f-prime__tile.is-main { background: var(--soft); border-color: #ffd0e1; }
.g2f-prime__tile.is-main strong { color: var(--prime-dark); }

.g2f-prime button.g2f-prime__btn { height: auto; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.g2f-prime__status { padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; }
.g2f-prime__status h2 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.g2f-prime__status p { margin: 0; color: var(--muted); line-height: 1.5; }
.g2f-prime__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g2f-prime__acts form { margin: 0; }

.g2f-prime__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f2; color: var(--muted); vertical-align: middle; }
.g2f-prime__chip.is-active { background: #e7f6ec; color: #1e7b3c; }
.g2f-prime__chip.is-past_due { background: #fff4e5; color: #9a5b00; }
.g2f-prime__chip.is-expiring { background: #fffaeb; color: #b54708; }
.g2f-prime__chip.is-canceled, .g2f-prime__chip.is-expired, .g2f-prime__chip.is-ended { background: #fdecec; color: #a12c2c; }
.g2f-prime__chip.is-gold { background: #fdf3dc; color: var(--gold); }

/* Wide tables scroll sideways inside their card rather than being cut off. */
.g2f-prime__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g2f-prime__scroll .g2f-prime__table { min-width: 900px; }
.g2f-prime__scroll th:last-child, .g2f-prime__scroll td:last-child { text-align: right; }
.g2f-prime__table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* custom.css gives every table fixed, equal columns with the overflow hidden,
   which cut off wide cells (the "Cancel + refund" buttons) instead of letting
   .g2f-prime__scroll scroll them. Size the columns to their content. */
.g2f-prime__table { table-layout: auto; overflow: visible; margin-top: 0; box-shadow: none; border-radius: 0; }
.g2f-prime__table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.g2f-prime__table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.g2f-prime__table td.num, .g2f-prime__table th.num { text-align: right; }
.g2f-prime__empty { color: var(--muted); padding: 12px 0; }
.g2f-prime__section { margin-top: 20px; }
.g2f-prime__section h3 { font-size: 16px; margin: 0 0 10px; color: var(--ink); }

.g2f-prime__form { display: grid; gap: 14px; max-width: 560px; }
.g2f-prime__form label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.g2f-prime__form input[type=text], .g2f-prime__form input[type=number], .g2f-prime__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.g2f-prime__form .error-message { color: #a12c2c; font-size: 13px; margin-top: 4px; }
.g2f-prime__help { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* Directly on the page's photo backdrop (not in a white card): light text. */
.g2f-prime > .g2f-prime__help { color: #c8c8cc; }
.g2f-prime__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.g2f-prime__filters input[type=search] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 240px; }

/* Checkout prompt for non-members (element prime_checkout_nudge). */
.g2f-prime__nudge { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #fff1f6; border: 1px solid #ffd0e1; font-size: 14px; line-height: 1.45; color: #1d2426; }
.g2f-prime__nudge > i { color: #b7791f; margin-top: 3px; }
.g2f-prime__nudge strong, .g2f-prime__nudge span { display: block; }
.g2f-prime__nudge span { color: #5c6a6e; }
.g2f-prime__nudge a { display: inline-block; margin-top: 4px; color: #c2186b; font-weight: 700; }

/* Join page and card panel: Stripe's Payment Element on go2fete's own pages. */
.g2f-prime__back { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 16px; color: var(--muted); text-decoration: none; font-size: 14px; }
.g2f-prime__joingrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .g2f-prime__joingrid { grid-template-columns: 1fr; } }
.g2f-prime__summary h1 { margin: 10px 0 8px; font-size: 26px; color: var(--ink); }
.g2f-prime__summary > p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.g2f-prime__summary dl { margin: 16px 0; display: grid; gap: 10px; }
.g2f-prime__summary dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.g2f-prime__summary dt { color: var(--muted); }
.g2f-prime__summary dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.g2f-prime__pay h2 { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.g2f-prime__element { min-height: 120px; margin-bottom: 14px; }
.g2f-prime__cardmsg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff0f0; border: 1px solid #ffc9c9; color: #b00020; font-size: 14px; }
.g2f-prime__pay .g2f-prime__btn[disabled] { opacity: .6; cursor: wait; }
#prime-card-panel .g2f-prime__pay { max-width: 520px; }

/* Cancel with a refund */
.g2f-prime__btn--danger { background: #fff; color: #b42318 !important; border: 1px solid #f1b5ae; }
.g2f-prime__btn--danger:hover { background: #fef3f2; }
.g2f-prime__btn--small { padding: 6px 12px; font-size: 13px; text-transform: none; letter-spacing: normal; }
.g2f-prime__link { background: none; border: 0; padding: 4px 2px; line-height: 1; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.g2f-prime__quote { margin: 0 0 16px; display: grid; gap: 10px; max-width: 420px; }
.g2f-prime__quote div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.g2f-prime__quote dt { color: var(--muted); }
.g2f-prime__quote dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.g2f-prime__quote dd.is-save { color: var(--prime-dark); }
.g2f-prime__section > p { line-height: 1.55; color: var(--ink); }

/* Dashboard: the membership card (element prime_card). Card left and
   details right on wide screens; stacked on phones. */
.g2f-prime__mcard { margin-top: 16px; padding: 28px 32px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.g2f-prime__mcard-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g2f-prime__mcard-tray { padding: 28px; border-radius: 20px; background: #f4f2ef; }
.g2f-prime__mcard-hint { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.g2f-prime__mcard-hint:hover { color: inherit; }
.g2f-prime__mcard-hint:focus-visible { outline: 2px solid #FA1068; outline-offset: 2px; }
.g2f-prime__mcard-hint i { font-size: 11px; }
.g2f-prime__mcard-info { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.g2f-prime__mcard-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.g2f-prime__mcard-info h3 { margin: 6px 0 0; font-family: Raleway, sans-serif; font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: normal; color: #111827; }
.g2f-prime__mcard-info p { margin: 8px 0 0; color: #4b5563; line-height: 1.55; font-size: 15px; }
.g2f-prime__mcard-rows { margin: 0; display: grid; gap: 0; }
.g2f-prime__mcard-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.g2f-prime__mcard-rows div:last-child { border-bottom: 0; }
.g2f-prime__mcard-rows dt { margin: 0; font-weight: 400; color: #6b7280; }
.g2f-prime__mcard-rows dd { margin: 0; font-weight: 600; color: #111827; text-align: right; }
.g2f-prime__mcard-rows dd.is-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.g2f-prime__mcard-rows dd a { color: #c0105a; text-decoration: none; }
.g2f-prime__mcard-rows dd a:hover { color: #FA1068; text-decoration: underline; }
.g2f-prime__mcard-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.g2f-prime .g2f-prime__mcard-btn { height: 44px; margin: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #374151 !important; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: normal; text-transform: none; text-decoration: none !important; cursor: pointer; }
.g2f-prime .g2f-prime__mcard-btn:hover, .g2f-prime .g2f-prime__mcard-btn:focus { background: #f9fafb; color: #374151 !important; border-color: #d0d5dd; }
.g2f-prime .g2f-prime__mcard-btn.is-primary { padding: 0 20px; border: 0; background: #e00d5c; color: #fff !important; font-weight: 700; }
.g2f-prime .g2f-prime__mcard-btn.is-primary:hover, .g2f-prime .g2f-prime__mcard-btn.is-primary:focus { background: #c0105a; color: #fff !important; }
.g2f-prime .g2f-prime__mcard-btn:focus-visible { outline: 2px solid #FA1068; outline-offset: 2px; }
.g2f-prime .g2f-prime__mcard-btn.is-wallet { padding: 0 18px 0 16px; border: 0; background: #000; color: #fff !important; text-align: left; }
.g2f-prime .g2f-prime__mcard-btn.is-wallet:hover, .g2f-prime .g2f-prime__mcard-btn.is-wallet:focus { background: #1f1f1f; color: #fff !important; }
.g2f-prime .g2f-prime__mcard-btn.is-wallet i { font-size: 22px; }
.g2f-prime .g2f-prime__mcard-btn.is-wallet span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 700; line-height: 1; }
.g2f-prime .g2f-prime__mcard-btn.is-wallet small { font-size: 10px; font-weight: 500; line-height: 1; opacity: .85; }
@media (max-width: 900px) {
    .g2f-prime__mcard { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; justify-items: center; }
    .g2f-prime__mcard-info { max-width: 520px; width: 100%; }
    .g2f-prime__mcard-acts .g2f-prime__mcard-btn { flex: 1 1 140px; }
}
@media (max-width: 420px) {
    .g2f-prime__mcard-tray { padding: 0; background: none; }
}

/* Prime admin tabs and the partner list. */
.g2f-prime__tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 16px; }
.g2f-prime__tabs a { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #374151 !important; text-decoration: none; }
.g2f-prime__tabs a:hover { background: #f2f4f7; }
.g2f-prime__tabs a.is-active { background: #FA1068; color: #fff !important; }
.g2f-prime__tabs a span { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.g2f-prime__tabs a.is-active span { background: rgba(255, 255, 255, .25); color: #fff; }
.g2f-prime__tabs a span.is-alert { background: #FA1068; color: #fff; }
.g2f-prime__tabs a.is-active span.is-alert { background: #fff; color: #FA1068; }
.g2f-prime__tabs--status { margin-bottom: 8px; }
.g2f-prime__tile small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.g2f-prime__table--partners th.sel, .g2f-prime__table--partners td.sel { width: 36px; }
.g2f-prime__biz { display: flex; align-items: center; gap: 12px; }
.g2f-prime__biz a { color: var(--ink); text-decoration: none; }
.g2f-prime__biz a:hover { color: #e00d5c; }
.g2f-prime__logo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; object-fit: cover; }
.g2f-prime__logo--tile { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; }
.g2f-prime__badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; background: #f2f4f7; color: #475467; }
.g2f-prime__badge.is-approved { background: #ecfdf3; color: #067647; }
.g2f-prime__badge.is-pending { background: #fffaeb; color: #b54708; }
.g2f-prime__badge.is-paused { background: #f2f4f7; color: #475467; }
.g2f-prime__badge.is-declined { background: #fef3f2; color: #b42318; }
.g2f-prime__inline { margin: 0; }
.g2f-prime__switch { position: relative; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: #d0d5dd; cursor: pointer; transition: background .15s; }
.g2f-prime__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .15s; }
.g2f-prime__switch[aria-checked="true"] { background: #FA1068; }
.g2f-prime__switch[aria-checked="true"]::after { left: 19px; }
.g2f-prime__switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(250, 16, 104, .25); }
.g2f-prime__switch[disabled] { opacity: .45; cursor: not-allowed; }
.g2f-prime__benefiticon { display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: #fff0f5; color: #FA1068; }
.g2f-prime__bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #1d2426; color: #fff; }
.g2f-prime__bulk[hidden] { display: none; }
.g2f-prime__bulkcount { font-weight: 700; margin-right: auto; }
.g2f-prime__link { background: none; border: 0; color: #ffc2d8; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.g2f-prime__btn--small { padding: 7px 14px; font-size: 13px; }
.g2f-prime__dialog { border: 0; border-radius: 16px; padding: 22px; width: min(440px, calc(100vw - 32px)); color: var(--ink); }
.g2f-prime__dialog::backdrop { background: rgba(16, 24, 40, .55); }
.g2f-prime__dialog h2 { margin: 0 0 6px; font-size: 18px; }
.g2f-prime__dialog label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.g2f-prime__dialog textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.g2f-prime__dialog .g2f-prime__acts { margin-top: 14px; justify-content: flex-end; }
/* Buttons side by side in a table cell (benefits' Preview / Send): one line, one height. */
.g2f-prime__table .g2f-prime__acts { flex-wrap: nowrap; }
.g2f-prime__table .g2f-prime__acts .g2f-prime__btn--small { height: 34px; padding: 0 14px; line-height: 1; }

/* Partner edit and add */
.g2f-prime__crumb { margin-bottom: 4px; font-size: 13px; color: #c8c8cc; }
.g2f-prime__crumb a { color: #fff; text-decoration: none; }
.g2f-prime__crumb a:hover { text-decoration: underline; }
.g2f-prime__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g2f-prime--partner .g2f-pf-rail textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.g2f-prime--partner .g2f-pf-rail input[type=number] { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.g2f-prime__review form { margin: 0 0 14px; }
.g2f-prime__review label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.g2f-prime__review textarea { margin-bottom: 8px; }
.g2f-prime__review .g2f-prime__btn--block { width: 100%; }
.g2f-prime__activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g2f-prime__activity li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.g2f-prime__activity i { flex: 0 0 18px; margin-top: 3px; text-align: center; color: var(--muted); }
.g2f-prime__activity small { display: block; color: var(--muted); font-size: 12px; }

/* Partner strip on the landing page (cards come from prime-partners.css) */
.g2f-prime .g2f-pp.g2f-prime__partners { max-width: none; margin: 28px 0; padding: 0; }
.g2f-prime__partners h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }
.g2f-prime__partners > p { margin: 14px 0 0; }
.g2f-prime .g2f-prime__more { color: #e00d5c; font-weight: 700; text-decoration: none; }
.g2f-prime .g2f-prime__more:hover { color: #c0105a; text-decoration: underline; }

/* Not a member yet (Prime/dashboard): the card they would get, with their
   name on it, beside the price. The QR space waits in the card's gold. */
.g2f-prime__join h2 { margin: 0; font-family: Raleway, sans-serif; font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: normal; color: #111827; }
.g2f-prime__join-card .g2f-mcard__face { cursor: default; }
.g2f-mcard .g2f-prime__join-slot { border-color: var(--mc-border); color: var(--mc-gold); padding: 0 14px; }
.g2f-mcard .g2f-prime__join-slot .g2f-mcard__void-title { font-weight: 600; line-height: 1.35; }
.g2f-prime__join-plans { display: grid; gap: 16px; }
.g2f-prime__join-plan + .g2f-prime__join-plan { padding-top: 16px; border-top: 1px solid #f3f4f6; }
.g2f-prime .g2f-prime__join-plan p { margin: 0; }
.g2f-prime .g2f-prime__join-plan-name { font-size: 15px; color: #4b5563; }
.g2f-prime__join-plan-name strong { margin-right: 6px; color: #111827; }
.g2f-prime .g2f-prime__join-plan-text { margin-top: 4px; font-size: 14px; line-height: 1.5; color: #6b7280; }
.g2f-prime__join-plan .g2f-prime__mcard-btn { margin-top: 12px; }
.g2f-prime .g2f-prime__join-small { margin: 0; font-size: 13px; line-height: 1.5; color: #6b7280; }
@media (max-width: 900px) {
    .g2f-prime__join h2 { font-size: 24px; }
    .g2f-prime .g2f-prime__join-plan .g2f-prime__mcard-btn { width: 100%; }
}

/* Admin tabs sit on the page backdrop (a dark photo on most installs), so they
   get their own white bar instead of borrowing the panel behind them. On a
   narrow screen the bar scrolls sideways rather than wrapping. */
.g2f-prime__tabs { width: fit-content; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.g2f-prime__tabs::-webkit-scrollbar { display: none; }
.g2f-prime__tabs a { flex: none; white-space: nowrap; }

/* "See the back of the card" is a real button; the site's base styles turn
   every button into an uppercase pill. Its own lettering back. */
.g2f-prime .g2f-prime__mcard-hint { height: auto; margin: 0; line-height: 1.3; letter-spacing: normal; text-transform: none; font-weight: 500; white-space: normal; }

/* Links in the card section keep the Prime pink (the site greys plain links). */
.g2f-prime .g2f-prime__mcard-info p a { color: #c0105a; font-weight: 600; text-decoration: none; }
.g2f-prime .g2f-prime__mcard-info p a:hover { color: #FA1068; text-decoration: underline; }

/* Decline: a quiet red outline button (the class is used here only and had no
   style, so it fell back to the pink button with red text). */
.g2f-prime .g2f-pp__btn--dangerlight { background: #fff; color: #b42318 !important; border: 1px solid #f1b5ae; }
.g2f-prime .g2f-pp__btn--dangerlight:hover, .g2f-prime .g2f-pp__btn--dangerlight:focus { background: #fef3f2; color: #912018 !important; }

/* Prime admin tables: plain white headers. The site's global thead gradient
   is meant for white header text and fights the muted labels used here. */
.g2f-prime__table thead { background: none; color: inherit; }
.g2f-prime__table thead th { background: #fff; color: #667085; }

/* A notice on the page backdrop needs its own box to be readable. */
.g2f-prime__notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fffaeb; color: #93370d; font-size: 14px; line-height: 1.5; }
.g2f-prime a.g2f-prime__textlink { color: #c0105a; font-weight: 600; text-decoration: none; }
.g2f-prime a.g2f-prime__textlink:hover { color: #FA1068; text-decoration: underline; }

/* Pagination: CakePHP prints each link as an <li>; keep them in a plain row. */
.g2f-prime__pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.g2f-prime__pager li { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.g2f-prime__pager li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.g2f-prime__pager li a:hover { border-color: var(--prime); color: var(--prime-dark); }
.g2f-prime__pager li.disabled a { opacity: .45; pointer-events: none; }
.g2f-prime__pager .g2f-prime__pager-total { margin-right: auto; font-size: 13px; }

/* Admin tables on narrow screens: scroll sideways instead of crushing the columns. */
@media (max-width: 900px) {
    .g2f-prime__table:not(.g2f-prime__table--benefits) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .g2f-prime__table:not(.g2f-prime__table--benefits) th,
    .g2f-prime__table:not(.g2f-prime__table--benefits) td { white-space: nowrap; word-break: normal; }
}
/* Benefits: each benefit stacks as its own block on phones. */
@media (max-width: 700px) {
    .g2f-prime__table--benefits,
    .g2f-prime__table--benefits tbody,
    .g2f-prime__table--benefits tr,
    .g2f-prime__table--benefits td { display: block; width: auto; }
    .g2f-prime__table--benefits thead { display: none; }
    .g2f-prime__table--benefits tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .g2f-prime__table--benefits tr:first-child { padding-top: 0; }
    .g2f-prime__table--benefits tr:last-child { border-bottom: 0; padding-bottom: 0; }
    .g2f-prime__table--benefits td { border: 0; padding: 4px 0; word-break: normal; }
    .g2f-prime__table--benefits td:first-child { padding-bottom: 10px; }
    .g2f-prime__table--benefits td[data-label] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
    .g2f-prime__table--benefits td[data-label]::before { content: attr(data-label); flex: 0 0 96px; font-size: 13px; color: var(--muted); }
}

/* Benefits page: what partner businesses get. */
.g2f-prime__card + .g2f-prime__card { margin-top: 20px; }
.g2f-prime__cardtitle { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.g2f-prime__form--wide { max-width: 760px; margin-top: 14px; }
.g2f-prime__bizlist { display: grid; gap: 12px; }
.g2f-prime__bizrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; margin: 0; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); }
/* Line the Remove button up with the inputs, below the labels. */
.g2f-prime__bizrow-act { padding-top: 26px; }
.g2f-prime__form input[aria-invalid=true], .g2f-prime__form textarea[aria-invalid=true] { border-color: #a12c2c; }
@media (max-width: 700px) {
    .g2f-prime__bizrow { grid-template-columns: minmax(0, 1fr); }
    .g2f-prime__bizrow-act { padding-top: 0; }
}
