/* Better Body Affiliate Live Hours – dashboard. Override the variables in your theme to rebrand. */
.bbal {
	--bbal-accent: #0f766e;
	--bbal-accent-soft: #e6f4f2;
	--bbal-live: #e11d48;
	--bbal-warn: #b45309;
	--bbal-warn-soft: #fef3c7;
	--bbal-ink: #1c2526;
	--bbal-muted: #667173;
	--bbal-line: #e4e8e8;
	--bbal-bg: #f6f8f8;
	--bbal-card: #fff;
	--bbal-on-accent: #fff;
	--bbal-accent-2: #87bbb6;
	--bbal-accent-3: #c3dedb;
	--bbal-live-soft: #fde7ec;
	--bbal-live-line: #f7bbc8;
	--bbal-radius: 14px;
	--bbal-btn-radius: 10px;
	--bbal-field-radius: 9px;
	--bbal-total-bg: var(--bbal-accent);
	--bbal-total-ink: var(--bbal-on-accent);
	--bbal-total-line: var(--bbal-accent);
	color: var(--bbal-ink);
	color-scheme: var(--bbal-scheme, light);
	font-family: var(--bbal-font, inherit);
	font-size: var(--bbal-size, 15px);
	line-height: 1.5;
	max-width: var(--bbal-max, 1180px);
	background: var(--bbal-page-bg, transparent);
	padding: var(--bbal-page-pad, 0);
	border-radius: var(--bbal-radius);
	margin: 0 auto;
}
.bbal *, .bbal *::before, .bbal *::after { box-sizing: border-box; }
.bbal h2, .bbal h3, .bbal h4 { margin: 0; line-height: 1.25; color: var(--bbal-ink); }
.bbal h2 { font-size: 1.7em; }
.bbal h3 { font-size: 1.12em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bbal h4 { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: var(--bbal-muted); margin: 18px 0 6px; }
.bbal .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bbal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.bbal-eyebrow { margin: 0 0 2px; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: var(--bbal-accent); font-weight: 600; }
.bbal-month select, .bbal select, .bbal input[type=number], .bbal input[type=text], .bbal input[type=url], .bbal input[type=date] {
	font: inherit; padding: 8px 10px; border: 1px solid var(--bbal-line); border-radius: var(--bbal-field-radius); background: var(--bbal-card); color: var(--bbal-ink); min-height: 40px;
}

.bbal-card { background: var(--bbal-card); border: 1px solid var(--bbal-line); border-radius: var(--bbal-radius); padding: 20px; margin-bottom: 18px; }
.bbal-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.bbal-grid > .bbal-card { margin-bottom: 0; }
.bbal-grid + .bbal-card { margin-top: 18px; }

/* Stats */
.bbal-stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.bbal-stat { background: var(--bbal-card); border: 1px solid var(--bbal-line); border-radius: var(--bbal-radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bbal-stat strong { font-size: 1.65em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.bbal-stat-total { background: var(--bbal-total-bg); border-color: var(--bbal-total-line); color: var(--bbal-total-ink); }
.bbal-stat-total strong { color: var(--bbal-total-ink); }
.bbal-stat-total .bbal-label, .bbal-stat-total .bbal-sub { color: var(--bbal-total-ink); opacity: .85; }
.bbal-label { font-size: .78em; color: var(--bbal-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.bbal-sub { font-size: .85em; color: var(--bbal-muted); }

.bbal-bar { position: relative; height: 10px; border-radius: 6px; background: var(--bbal-bg); margin-top: 8px; display: flex; overflow: visible; }
.bbal-bar span { height: 100%; }
.bbal-bar span:first-child { border-radius: 6px 0 0 6px; }
.bbal-bar .ok, .bbal-legend i.ok { background: var(--bbal-accent); }
.bbal-bar .pend, .bbal-legend i.pend { background: repeating-linear-gradient(45deg, var(--bbal-accent-2), var(--bbal-accent-2) 4px, var(--bbal-accent-3) 4px, var(--bbal-accent-3) 8px); }
.bbal-bar .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--bbal-warn); transform: translateX(-1px); }
.bbal-bar .mark.req { background: var(--bbal-ink); }
.bbal-legend { font-size: .75em; color: var(--bbal-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.bbal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.bbal-legend i:first-child { margin-left: 0; }
.bbal-legend i.mark { width: 3px; background: var(--bbal-warn); border-radius: 0; }
.bbal-legend i.mark.req { background: var(--bbal-ink); }

/* Buttons */
.bbal-btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: var(--bbal-btn-radius); padding: 10px 16px; cursor: pointer; min-height: 42px; line-height: 1.2; }
.bbal-btn:disabled { opacity: .6; cursor: wait; }
.bbal-btn.primary { background: var(--bbal-accent); color: var(--bbal-on-accent); }
.bbal-btn.primary:hover { filter: brightness(1.08); }
.bbal-btn.danger { background: var(--bbal-live); color: #fff; }
.bbal-btn.ghost { background: var(--bbal-card); border-color: var(--bbal-line); color: var(--bbal-ink); }
.bbal-btn.ghost:hover { border-color: var(--bbal-accent); color: var(--bbal-accent); }
.bbal-big { width: 100%; font-size: 1.05em; padding: 14px; margin-top: 14px; }
.bbal-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Timer */
.bbal-help { color: var(--bbal-muted); margin: 0 0 14px; font-size: .92em; }
.bbal-dur { display: flex; gap: 10px; }
.bbal-dur label { flex: 1; display: flex; align-items: center; gap: 8px; }
.bbal-dur input { width: 100%; font-size: 1.6em !important; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 56px !important; }
.bbal-dur span { color: var(--bbal-muted); }
.bbal-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.bbal-chip { font: inherit; font-size: .88em; border: 1px solid var(--bbal-line); background: var(--bbal-card); border-radius: var(--bbal-btn-radius); padding: 5px 14px; cursor: pointer; color: var(--bbal-ink); }
.bbal-chip.on, .bbal-chip:hover { background: var(--bbal-accent-soft); border-color: var(--bbal-accent); color: var(--bbal-accent); }
.bbal-field { display: flex; flex-direction: column; gap: 4px; font-size: .85em; color: var(--bbal-muted); font-weight: 600; }
.bbal-field input, .bbal-field select { font-weight: 400; color: var(--bbal-ink); font-size: 1.05em; width: 100%; }
.bbal-meta { font-size: .85em; color: var(--bbal-muted); text-align: center; margin: 10px 0; }

.bbal-timer { text-align: center; }
.bbal-ring { position: relative; width: 220px; height: 220px; margin: 4px auto 6px; }
.bbal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bbal-ring circle { fill: none; stroke-width: 8; }
.bbal-ring .track { stroke: var(--bbal-bg); }
.bbal-ring .prog { stroke: var(--bbal-accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.bbal-timer.ending .prog { stroke: var(--bbal-live); }
.bbal-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.bbal-countdown { font-size: 2.3em; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bbal-elapsed { font-size: .82em; color: var(--bbal-muted); font-variant-numeric: tabular-nums; }
.bbal-live-dot { color: var(--bbal-live); font-weight: 700; font-size: .75em; letter-spacing: .12em; display: inline-flex; align-items: center; gap: 6px; }
.bbal-live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bbal-live); animation: bbal-pulse 1.4s infinite; }
@keyframes bbal-pulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.5); } 70% { box-shadow: 0 0 0 8px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }
.bbal-evidence { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--bbal-line); display: flex; justify-content: center; }
.bbal-msg { font-size: .9em; margin-top: 10px; }
.bbal-msg:empty { display: none; }
.bbal-msg.ok { color: var(--bbal-accent); }
.bbal-msg.err { color: var(--bbal-live); }
.bbal-empty { color: var(--bbal-muted); margin: 0; }

/* Account */
.bbal-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.bbal-dl dt { color: var(--bbal-muted); font-size: .92em; }
.bbal-dl dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
.bbal-note { font-size: .85em; color: var(--bbal-muted); background: var(--bbal-bg); border-radius: var(--bbal-field-radius); padding: 10px 12px; margin: 14px 0 0; }

/* Screenshots */
.bbal-shot { display: inline-flex; align-items: center; gap: 8px; font-size: .85em; }
.bbal-shot img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bbal-line); display: block; }
.bbal-shot.compact img { width: 36px; height: 36px; }
.bbal-shot.compact { margin-right: 8px; }
.bbal-upload { position: relative; display: inline-block; cursor: pointer; border: 1.5px dashed var(--bbal-line); border-radius: var(--bbal-field-radius); padding: 8px 12px; color: var(--bbal-accent); font-weight: 600; white-space: nowrap; }
.bbal-upload.busy { opacity: .6; pointer-events: none; }
.bbal-upload input, .bbal-shot-act input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }
.bbal-shot.compact .bbal-upload { padding: 3px 9px; font-size: .95em; }
.bbal-none { color: var(--bbal-muted); }
.bbal-ev-cell { white-space: nowrap; }

/* Tables */
.bbal-table-wrap { overflow-x: auto; }
.bbal-table { width: 100%; border-collapse: collapse; font-size: .92em; margin: 0; }
.bbal-table th { text-align: left; font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--bbal-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--bbal-line); background: none; }
.bbal-table td { padding: 10px; border-bottom: 1px solid var(--bbal-line); vertical-align: middle; font-variant-numeric: tabular-nums; background: none; }
.bbal-table tr:last-child td { border-bottom: 0; }
.bbal-status { display: inline-block; font-size: .8em; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--bbal-bg); color: var(--bbal-muted); white-space: nowrap; }
.bbal-status.st-approved { background: var(--bbal-accent-soft); color: var(--bbal-accent); }
.bbal-status.st-pending { background: var(--bbal-warn-soft); color: var(--bbal-warn); }
.bbal-status.st-rejected, .bbal-status.st-running { background: var(--bbal-live-soft); color: var(--bbal-live); }
.bbal-admin-note { display: block; font-size: .8em; color: var(--bbal-muted); margin-top: 4px; max-width: 220px; }
.bbal-tip { color: var(--bbal-muted); cursor: help; }
.bbal-count { font-size: .75em; font-weight: 500; color: var(--bbal-muted); }

/* Content */
.bbal-content-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bbal-content-progress > div { background: var(--bbal-bg); border-radius: calc(var(--bbal-radius) * .72); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.bbal-content-progress strong { font-size: 1.3em; }
.bbal-mini { display: block; height: 6px; border-radius: 4px; background: var(--bbal-card); overflow: hidden; }
.bbal-mini span { display: block; height: 100%; background: var(--bbal-accent); }
.bbal-content-form { display: grid; grid-template-columns: 160px 160px 1fr; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--bbal-line); border-radius: calc(var(--bbal-radius) * .72); margin-bottom: 14px; }
.bbal-content-form .bbal-wide { grid-column: span 1; }
.bbal-content-form .bbal-wide + .bbal-wide { grid-column: 1 / 3; }
.bbal-content-form .bbal-msg { grid-column: 1 / -1; margin: 0; }
.bbal-content-list { list-style: none; margin: 0; padding: 0; }
.bbal-content-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--bbal-line); font-size: .92em; }
.bbal-content-list li:last-child { border-bottom: 0; }
.bbal-content-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bbal-accent); }
.bbal-cdate { color: var(--bbal-muted); width: 52px; flex: none; font-variant-numeric: tabular-nums; }
.bbal-cplat { font-weight: 600; width: 90px; flex: none; }

.bbal-login form p { margin: 0 0 10px; }
.bbal-login label { display: block; font-size: .9em; }
.bbal-login input[type=text], .bbal-login input[type=password] { width: 100%; padding: 9px 10px; border: 1px solid var(--bbal-line); border-radius: var(--bbal-field-radius); }
.bbal-login input[type=submit] { background: var(--bbal-accent); color: var(--bbal-on-accent); border: 0; border-radius: var(--bbal-btn-radius); padding: 10px 20px; font-weight: 600; cursor: pointer; }

/* Responsive */
@media (max-width: 960px) {
	.bbal-stats { grid-template-columns: 1fr 1fr; }
	.bbal-stat-hours { grid-column: 1 / -1; }
	.bbal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.bbal-card { padding: 16px; }
	.bbal-stat strong { font-size: 1.35em; }
	.bbal-content-form { grid-template-columns: 1fr 1fr; }
	.bbal-content-form .bbal-wide, .bbal-content-form .bbal-wide + .bbal-wide { grid-column: 1 / -1; }
	.bbal-content-form button { grid-column: 1 / -1; }
	.bbal-table thead { display: none; }
	.bbal-table, .bbal-table tbody, .bbal-table tr, .bbal-table td { display: block; width: 100%; }
	.bbal-table tr { border: 1px solid var(--bbal-line); border-radius: calc(var(--bbal-radius) * .72); padding: 6px 10px; margin-bottom: 10px; }
	.bbal-table td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
	.bbal-table td::before { content: attr(data-th); color: var(--bbal-muted); font-size: .85em; text-align: left; }
	.bbal-ring { width: 190px; height: 190px; }
}

/* ---------- Live timer popup, pop-out window, end summary ---------- */
.bbal-links { margin-top: 10px; gap: 14px; }
.bbal-link { font: inherit; font-size: .88em; font-weight: 600; background: none; border: 0; padding: 4px 2px; color: var(--bbal-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bbal-link:hover { text-decoration-thickness: 2px; }
.bbal-check-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9em; color: var(--bbal-ink); cursor: pointer; }
.bbal-check-row input { width: 18px; height: 18px; accent-color: var(--bbal-accent); margin: 0; }
.bbal-hint { font-size: .82em; color: var(--bbal-muted); text-align: center; margin: 8px 0 0; }
.bbal-confirm { background: var(--bbal-live-soft); border: 1px solid var(--bbal-live-line); border-radius: calc(var(--bbal-radius) * .85); padding: 14px; margin-top: 6px; }
.bbal-confirm p { margin: 0 0 10px; font-weight: 600; }
.bbal-confirm[hidden], .bbal-controls[hidden] { display: none; }
.bbal-view-title { justify-content: center; font-size: 1.25em; margin-bottom: 10px; }
.bbal-timer-lg .bbal-ring { width: 260px; height: 260px; }
.bbal-timer-lg .bbal-countdown { font-size: 2.45em; }
.bbal-popout .bbal-countdown { font-size: 2.2em; }
.bbal-evidence.two { gap: 12px; flex-wrap: wrap; }
.bbal-upload.busy { animation: bbal-busy 1s ease-in-out infinite alternate; }
@keyframes bbal-busy { from { opacity: .5; } to { opacity: 1; } }

html.bbal-noscroll, html.bbal-noscroll body { overflow: hidden; }
.bbal-modal { border-radius: 0; position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 24, .55); display: none; align-items: center; justify-content: center; padding: 16px; max-width: none; margin: 0; }
.bbal-modal.open { display: flex; animation: bbal-fade .18s ease-out; }
.bbal-modal-box { position: relative; background: var(--bbal-card); border-radius: calc(var(--bbal-radius) + 6px); width: 100%; max-width: 460px; color: var(--bbal-ink); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 24px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: bbal-pop .22s ease-out; }
.bbal-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bbal-bg); color: var(--bbal-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.bbal-x:hover { background: var(--bbal-line); }
@keyframes bbal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bbal-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.bbal-ended { text-align: center; }
.bbal-check-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--bbal-accent-soft); color: var(--bbal-accent); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.bbal-ended .bbal-sub { display: block; margin-bottom: 16px; }
.bbal-ended-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bbal-ended-stats > div { background: var(--bbal-bg); border-radius: calc(var(--bbal-radius) * .85); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.bbal-ended-stats strong { font-size: 1.5em; font-variant-numeric: tabular-nums; }
.bbal-ended .bbal-dl { text-align: left; margin-bottom: 4px; }
.bbal-ended .bbal-evidence { border-top: 1px dashed var(--bbal-line); }
.bbal-ended .bbal-note { text-align: left; }

/* Stand-alone pop-out window */
body.bbal-popout-body { margin: 0; min-height: 100vh; background: #f6f8f8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; align-items: center; justify-content: center; }
.bbal-popout { border-radius: 0; width: 100%; max-width: 440px; padding: 28px 20px; background: var(--bbal-card); min-height: 100vh; }
@media (min-height: 820px) and (min-width: 480px) { .bbal-popout { min-height: 0; border-radius: 20px; border: 1px solid var(--bbal-line); } }

@media (max-width: 640px) {
	.bbal-modal { padding: 0; align-items: flex-end; }
	.bbal-modal-box { border-radius: 20px 20px 0 0; max-height: 100vh; padding: 26px 18px 20px; }
	.bbal-timer-lg .bbal-ring { width: 230px; height: 230px; }
	.bbal-timer-lg .bbal-countdown { font-size: 2.1em; }
}

/* Evidence slots */
.bbal-shot { position: relative; }
.bbal-shot-info { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.bbal-shot-acts { display: inline-flex; gap: 8px; }
.bbal-shot-act { position: relative; font: inherit; font-size: .9em; background: none; border: 0; padding: 0; color: var(--bbal-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; overflow: hidden; }
.bbal-shot-act[data-act=shot-remove] { color: var(--bbal-muted); }
.bbal-shot-act[data-act=shot-remove]:hover { color: var(--bbal-live); }
.bbal-shot-act.busy { opacity: .6; pointer-events: none; }
.bbal-shot.compact .bbal-shot-info { flex-direction: row; align-items: center; gap: 4px; }
.bbal-shot.compact .bbal-shot-label { display: none; }
.bbal-shot.compact .bbal-shot-act { text-decoration: none; font-size: 1.05em; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.bbal-shot.compact .bbal-shot-act:hover { background: var(--bbal-bg); }
.bbal-file-field { margin-top: 12px; }
.bbal-file-field input[type=file] { font-size: .95em; padding: 6px; border: 1.5px dashed var(--bbal-line); border-radius: var(--bbal-field-radius); background: var(--bbal-card); }
.bbal-file-field .bbal-sub { font-weight: 400; }

/* Month switching */
.bbal.is-loading .bbal-stats, .bbal.is-loading .bbal-card:not(.bbal-timer-card) { opacity: .45; transition: opacity .15s; pointer-events: none; }
.bbal-viewing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--bbal-accent-soft); color: var(--bbal-ink); border-radius: calc(var(--bbal-radius) * .72); padding: 10px 14px; margin-bottom: 14px; font-size: .92em; }
.bbal-month { display: flex; align-items: center; gap: 10px; }
.bbal-month-status { font-size: .85em; color: var(--bbal-muted); }
.bbal-month-status.err { color: var(--bbal-live); }
.bbal.is-loading .bbal-month-status::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border: 2px solid var(--bbal-line); border-top-color: var(--bbal-accent); border-radius: 50%; animation: bbal-spin .7s linear infinite; }
@keyframes bbal-spin { to { transform: rotate(360deg); } }

/* Payouts */
.bbal-pay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px; }
.bbal-pay-grid > div { background: var(--bbal-bg); border-radius: calc(var(--bbal-radius) * .72); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bbal-pay-grid strong { font-size: 1.35em; font-variant-numeric: tabular-nums; }
.bbal-pay-grid .bbal-status { align-self: flex-start; }
.bbal-pay-out { box-shadow: inset 0 0 0 1.5px var(--bbal-accent-3); }
.bbal-payouts h4 { margin-top: 18px; }
.bbal-payouts tr.is-current td { background: var(--bbal-accent-soft); }
.bbal-total-pay { margin-top: 2px; font-weight: 600; }
@media (max-width: 960px) { .bbal-pay-grid { grid-template-columns: 1fr 1fr; } }

/* Collapsible sections */
.bbal-collapse-head { margin: 0; }
h3.bbal-collapse-head { margin-bottom: 0; }
h4.bbal-collapse-head { margin: 18px 0 0; text-transform: none; letter-spacing: 0; font-size: 1em; }
.bbal-collapse-toggle { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; color: var(--bbal-ink); font: inherit; font-weight: 600; border-radius: 6px; }
h4 .bbal-collapse-toggle { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: var(--bbal-muted); }
.bbal-collapse-toggle:focus-visible { outline: 2px solid var(--bbal-accent); outline-offset: 3px; }
.bbal-collapse-toggle .bbal-count { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .85em; }
h4 .bbal-collapse-toggle .bbal-count { font-size: 1.1em; }
.bbal-collapse-title { white-space: nowrap; }
.bbal-chev { margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--bbal-bg); position: relative; }
.bbal-chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--bbal-ink); border-bottom: 2px solid var(--bbal-ink); transform: translate(-50%, -30%) rotate(-135deg); transition: transform .2s ease; }
.bbal-collapse:not(.is-open) .bbal-chev::before { transform: translate(-50%, -70%) rotate(45deg); }
/* No hover/active colour on the toggle or its arrow (also overrides theme button hover styles). */
.bbal .bbal-collapse-toggle,
.bbal .bbal-collapse-toggle:hover,
.bbal .bbal-collapse-toggle:focus,
.bbal .bbal-collapse-toggle:active { background: transparent !important; background-image: none !important; box-shadow: none !important; border: 0 !important; color: var(--bbal-ink) !important; text-decoration: none !important; transform: none !important; }
.bbal h4 .bbal-collapse-toggle, .bbal h4 .bbal-collapse-toggle:hover, .bbal h4 .bbal-collapse-toggle:focus, .bbal h4 .bbal-collapse-toggle:active { color: var(--bbal-muted) !important; }
.bbal .bbal-collapse-toggle:hover .bbal-chev, .bbal .bbal-collapse-toggle:active .bbal-chev { background: var(--bbal-bg); }
.bbal-collapse-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease, opacity .2s ease; }
.bbal-collapse-inner { min-height: 0; overflow: hidden; }
.bbal-collapse-inner::before { content: ""; display: block; height: 12px; }
.bbal-collapse:not(.is-open) .bbal-collapse-body { grid-template-rows: 0fr; opacity: 0; }
.bbal-collapse.no-anim .bbal-collapse-body, .bbal-collapse.no-anim .bbal-chev::before { transition: none; }
.bbal-card-collapsible { padding-top: 14px; padding-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .bbal-collapse-body, .bbal-chev::before { transition: none; } }
