.benhar-macro-calculator {
--bfm-primary: #FF4D23;
--bfm-primary-dark: #D93E1B;
--bfm-protein: #E8503A;
--bfm-carbs: #6C63FF;
--bfm-fat: #F5A623;
--bfm-accent: #1FA971;
--bfm-ink: #14181C;
--bfm-muted: #667085;
--bfm-bg: #F6F7F9;
--bfm-card: #FFFFFF;
--bfm-border: #E4E7EC;
--bfm-danger-text: #B3261E;
--bfm-radius-sm: 10px;
--bfm-radius-md: 16px;
--bfm-radius-lg: 24px;
--bfm-shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.06), 0 1px 1px rgba(20, 24, 28, 0.04);
--bfm-shadow-md: 0 8px 24px rgba(20, 24, 28, 0.08), 0 2px 6px rgba(20, 24, 28, 0.05);
--bfm-shadow-lg: 0 20px 48px rgba(20, 24, 28, 0.14), 0 4px 12px rgba(20, 24, 28, 0.06);
--bfm-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
box-sizing: border-box;
display: block;
max-width: 760px;
margin: 2.5rem auto;
padding: 0 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
color: var(--bfm-ink);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.benhar-macro-calculator *,
.benhar-macro-calculator *::before,
.benhar-macro-calculator *::after {
box-sizing: border-box;
}
.benhar-macro-calculator button {
font-family: inherit;
background: none;
cursor: pointer;
}
.benhar-macro-calculator input {
font-family: inherit;
}
.benhar-macro-calculator [hidden] {
display: none !important;
}
.benhar-macro-calculator :focus-visible {
outline: 2.5px solid var(--bfm-primary);
outline-offset: 2px;
border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
.benhar-macro-calculator * {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
} .benhar-macro-calculator .bfm-intro {
position: relative;
text-align: center;
margin-bottom: 1.5rem;
padding-top: 0.25rem;
}
.benhar-macro-calculator .bfm-intro::before,
.benhar-macro-calculator .bfm-intro::after {
content: "";
position: absolute;
z-index: -1;
border-radius: 50%;
filter: blur(36px);
opacity: 0.28;
pointer-events: none;
}
.benhar-macro-calculator .bfm-intro::before {
width: 190px;
height: 190px;
top: -70px;
left: 6%;
background: var(--bfm-protein);
}
.benhar-macro-calculator .bfm-intro::after {
width: 150px;
height: 150px;
top: -35px;
right: 4%;
background: var(--bfm-carbs);
}
.benhar-macro-calculator .bfm-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin: 0 0 0.85rem;
padding: 0.32rem 0.8rem;
font-size: 0.6875rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--bfm-primary-dark);
background: color-mix(in srgb, var(--bfm-primary) 10%, white);
border: 1px solid color-mix(in srgb, var(--bfm-primary) 25%, transparent);
border-radius: 999px;
}
.benhar-macro-calculator .bfm-eyebrow::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--bfm-primary);
flex-shrink: 0;
}
.benhar-macro-calculator .bfm-title {
margin: 0 0 0.6rem;
font-size: clamp(1.75rem, 4vw, 2.5rem);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.1;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
background: linear-gradient(135deg, var(--bfm-ink) 35%, var(--bfm-protein) 120%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.benhar-macro-calculator .bfm-title-icon {
font-size: 0.85em;
-webkit-text-fill-color: initial;
background: none;
color: initial;
}
.benhar-macro-calculator .bfm-subtitle {
margin: 0 auto 0.5rem;
max-width: 46ch;
color: var(--bfm-muted);
font-size: 1rem;
line-height: 1.6;
}
.benhar-macro-calculator .bfm-explainer {
margin: 0 auto;
max-width: 48ch;
color: var(--bfm-muted);
font-size: 0.82rem;
opacity: 0.9;
} .benhar-macro-calculator .bfm-steps {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
list-style: none;
margin: 0 0 1.5rem;
padding: 0;
flex-wrap: wrap;
}
.benhar-macro-calculator .bfm-steps-item {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.78rem;
font-weight: 700;
color: var(--bfm-muted);
}
.benhar-macro-calculator .bfm-steps-item:not(:last-child)::after {
content: "→";
margin-left: 0.6rem;
color: var(--bfm-border);
font-weight: 400;
}
.benhar-macro-calculator .bfm-steps-dot {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.4rem;
height: 1.4rem;
border-radius: 50%;
background: var(--bfm-bg);
border: 1.5px solid var(--bfm-border);
font-size: 0.7rem;
transition: background var(--bfm-transition), border-color var(--bfm-transition), color var(--bfm-transition);
}
.benhar-macro-calculator .bfm-steps-item.bfm-is-active {
color: var(--bfm-ink);
}
.benhar-macro-calculator .bfm-steps-item.bfm-is-active .bfm-steps-dot {
background: linear-gradient(135deg, var(--bfm-primary), var(--bfm-primary-dark));
border-color: var(--bfm-primary);
color: #fff;
}
.benhar-macro-calculator .bfm-steps-item.bfm-is-done .bfm-steps-dot {
background: var(--bfm-accent);
border-color: var(--bfm-accent);
color: #fff;
} .benhar-macro-calculator .bfm-panel {
position: relative;
background: var(--bfm-card);
border-radius: var(--bfm-radius-lg);
box-shadow: var(--bfm-shadow-lg);
border: 1px solid var(--bfm-border);
padding: 1.5rem;
}
.benhar-macro-calculator .bfm-panel::before {
content: "";
position: absolute;
top: 0;
left: 1.5rem;
right: 1.5rem;
height: 4px;
border-radius: 0 0 999px 999px;
background: linear-gradient(90deg, var(--bfm-protein), var(--bfm-carbs), var(--bfm-fat));
}
@media (min-width: 640px) {
.benhar-macro-calculator .bfm-panel {
padding: 2rem;
}
} .benhar-macro-calculator .bfm-step {
margin-bottom: 2.25rem;
}
.benhar-macro-calculator .bfm-step:last-of-type {
margin-bottom: 0;
}
.benhar-macro-calculator .bfm-step-title {
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 1.05rem;
font-weight: 800;
margin: 0 0 1rem;
}
.benhar-macro-calculator .bfm-step-num {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.6rem;
height: 1.6rem;
border-radius: 50%;
background: var(--bfm-ink);
color: #fff;
font-size: 0.8rem;
flex-shrink: 0;
}
.benhar-macro-calculator .bfm-step-hint {
margin: -0.4rem 0 1rem;
color: var(--bfm-muted);
font-size: 0.875rem;
}
.benhar-macro-calculator .bfm-field-group {
margin-bottom: 1.25rem;
}
.benhar-macro-calculator .bfm-label {
display: block;
font-size: 0.8rem;
font-weight: 700;
color: var(--bfm-ink);
margin-bottom: 0.5rem;
}
.benhar-macro-calculator .bfm-field-error {
margin: 0.4rem 0 0;
font-size: 0.8rem;
font-weight: 600;
color: var(--bfm-danger-text);
} .benhar-macro-calculator .bfm-card-select {
display: grid;
gap: 0.75rem;
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) {
.benhar-macro-calculator .bfm-card-select--4col {
grid-template-columns: repeat(4, 1fr);
}
}
.benhar-macro-calculator .bfm-select-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 0.35rem;
border: 1.5px solid var(--bfm-border);
border-radius: var(--bfm-radius-md);
background: var(--bfm-card);
padding: 1rem 0.6rem;
transition: border-color var(--bfm-transition), background var(--bfm-transition), transform var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-select-card--compact {
padding: 0.85rem 0.5rem;
}
.benhar-macro-calculator .bfm-select-card:hover {
border-color: var(--bfm-primary);
transform: translateY(-1px);
box-shadow: var(--bfm-shadow-sm);
}
.benhar-macro-calculator .bfm-select-card[aria-pressed="true"] {
border-color: var(--bfm-primary);
background: color-mix(in srgb, var(--bfm-primary) 7%, white);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfm-primary) 18%, transparent);
}
.benhar-macro-calculator .bfm-select-card[aria-pressed="true"]::after {
content: "✓";
position: absolute;
top: 0.55rem;
right: 0.55rem;
width: 1.1rem;
height: 1.1rem;
border-radius: 50%;
background: var(--bfm-primary);
color: #fff;
font-size: 0.62rem;
font-weight: 800;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.benhar-macro-calculator .bfm-select-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem;
height: 2.75rem;
border-radius: 50%;
background: var(--bfm-bg);
font-size: 1.3rem;
line-height: 1;
transition: background var(--bfm-transition), color var(--bfm-transition), transform var(--bfm-transition);
}
.benhar-macro-calculator .bfm-select-card[aria-pressed="true"] .bfm-select-icon {
background: var(--bfm-primary);
color: #fff;
transform: scale(1.06);
}
.benhar-macro-calculator .bfm-select-label {
font-weight: 700;
font-size: 0.88rem;
}
.benhar-macro-calculator .bfm-select-desc {
font-size: 0.72rem;
color: var(--bfm-muted);
font-weight: 600;
} .benhar-macro-calculator .bfm-tdee-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin: 0 0 0.6rem;
padding: 0.3rem 0.7rem;
border-radius: 999px;
background: color-mix(in srgb, var(--bfm-accent) 12%, white);
color: var(--bfm-accent);
border: 1px solid color-mix(in srgb, var(--bfm-accent) 30%, transparent);
font-size: 0.75rem;
font-weight: 800;
}
.benhar-macro-calculator .bfm-inline-cta {
display: inline-flex;
align-items: baseline;
gap: 0.35rem;
margin-top: 0.6rem;
font-size: 0.8rem;
color: var(--bfm-muted);
text-decoration: none;
}
.benhar-macro-calculator .bfm-inline-cta strong {
color: var(--bfm-primary-dark);
font-weight: 800;
}
.benhar-macro-calculator .bfm-inline-cta:hover strong {
text-decoration: underline;
} .benhar-macro-calculator .bfm-input-unit {
display: flex;
align-items: center;
gap: 0.5rem;
border: 1.5px solid var(--bfm-border);
border-radius: var(--bfm-radius-md);
padding: 0 0.85rem;
background: var(--bfm-card);
transition: border-color var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-input-unit:focus-within {
border-color: var(--bfm-primary);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfm-primary) 16%, transparent);
}
.benhar-macro-calculator .bfm-text-input {
flex: 1;
min-width: 0;
border: none;
background: transparent;
font-size: 1.05rem;
font-weight: 700;
padding: 0.65rem 0;
color: var(--bfm-ink);
}
.benhar-macro-calculator .bfm-text-input:focus {
outline: none;
}
.benhar-macro-calculator .bfm-text-input--lg {
font-size: 1.6rem;
font-weight: 800;
letter-spacing: -0.02em;
padding: 0.75rem 0;
}
.benhar-macro-calculator .bfm-input-unit--calories {
max-width: 260px;
}
.benhar-macro-calculator .bfm-unit-label {
font-size: 0.8rem;
font-weight: 600;
color: var(--bfm-muted);
white-space: nowrap;
}
.benhar-macro-calculator .bfm-unit-metric,
.benhar-macro-calculator .bfm-unit-imperial {
display: none;
max-width: 220px;
}
.benhar-macro-calculator[data-unit="metric"] .bfm-unit-metric {
display: flex;
}
.benhar-macro-calculator[data-unit="imperial"] .bfm-unit-imperial {
display: flex;
} .benhar-macro-calculator .bfm-unit-toggle {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
background: var(--bfm-bg);
border: 1px solid var(--bfm-border);
border-radius: 999px;
padding: 0.3rem;
margin: 0 0 0.85rem;
max-width: 280px;
}
.benhar-macro-calculator .bfm-unit-btn {
border: none;
border-radius: 999px;
padding: 0.5rem 0.75rem;
font-weight: 700;
font-size: 0.85rem;
color: var(--bfm-muted);
transition: background var(--bfm-transition), color var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-unit-btn[aria-checked="true"] {
background: linear-gradient(135deg, var(--bfm-primary), var(--bfm-primary-dark));
color: #fff;
box-shadow: 0 6px 16px color-mix(in srgb, var(--bfm-primary) 35%, transparent);
} .benhar-macro-calculator .bfm-advanced-toggle {
border: none;
padding: 0;
font-size: 0.8rem;
font-weight: 700;
color: var(--bfm-primary-dark);
text-decoration: underline;
text-underline-offset: 2px;
}
.benhar-macro-calculator .bfm-advanced-panel {
margin-top: 0.85rem;
padding: 1rem;
border-radius: var(--bfm-radius-md);
background: var(--bfm-bg);
border: 1px solid var(--bfm-border);
}
.benhar-macro-calculator .bfm-input-unit--inline {
max-width: 240px;
}
.benhar-macro-calculator .bfm-hint {
margin: 0.6rem 0 0;
font-size: 0.78rem;
color: var(--bfm-muted);
} .benhar-macro-calculator .bfm-custom-macros {
margin-top: 1rem;
padding: 1.1rem;
border-radius: var(--bfm-radius-md);
background: var(--bfm-bg);
border: 1px solid var(--bfm-border);
}
.benhar-macro-calculator .bfm-custom-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 0.75rem;
}
.benhar-macro-calculator .bfm-custom-row:last-of-type {
margin-bottom: 0;
}
.benhar-macro-calculator .bfm-custom-row .bfm-label {
margin-bottom: 0;
flex-shrink: 0;
}
.benhar-macro-calculator .bfm-input-unit--pct {
max-width: 110px;
}
.benhar-macro-calculator .bfm-input-unit--protein:focus-within { border-color: var(--bfm-protein); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfm-protein) 16%, transparent); }
.benhar-macro-calculator .bfm-input-unit--carbs:focus-within { border-color: var(--bfm-carbs); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfm-carbs) 16%, transparent); }
.benhar-macro-calculator .bfm-input-unit--fat:focus-within { border-color: var(--bfm-fat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfm-fat) 16%, transparent); }
.benhar-macro-calculator .bfm-custom-total {
margin: 0.9rem 0 0;
text-align: center;
font-size: 0.85rem;
font-weight: 700;
color: var(--bfm-muted);
padding-top: 0.75rem;
border-top: 1px dashed var(--bfm-border);
}
.benhar-macro-calculator .bfm-custom-total strong {
font-size: 1rem;
color: var(--bfm-ink);
}
.benhar-macro-calculator .bfm-custom-total.bfm-total-ok strong {
color: var(--bfm-accent);
}
.benhar-macro-calculator .bfm-custom-total.bfm-total-bad strong {
color: var(--bfm-danger-text);
} .benhar-macro-calculator .bfm-form-footer {
margin-top: 2rem;
}
.benhar-macro-calculator .bfm-calc-error {
text-align: center;
margin: 0 0 0.75rem;
font-size: 0.8rem;
font-weight: 600;
color: var(--bfm-danger-text);
}
.benhar-macro-calculator .bfm-calculate-btn {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
border: none;
border-radius: 999px;
padding: 1rem 1.5rem;
font-size: 1.05rem;
font-weight: 800;
color: #fff;
background: linear-gradient(135deg, var(--bfm-primary), var(--bfm-primary-dark));
box-shadow: 0 10px 24px color-mix(in srgb, var(--bfm-primary) 35%, transparent);
transition: transform var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-calculate-btn::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
pointer-events: none;
}
.benhar-macro-calculator .bfm-calculate-btn:hover {
transform: translateY(-2px);
box-shadow: 0 14px 30px color-mix(in srgb, var(--bfm-primary) 40%, transparent);
}
.benhar-macro-calculator .bfm-calculate-btn:active {
transform: translateY(0);
} .benhar-macro-calculator .bfm-results {
margin-top: 1rem;
opacity: 0;
transform: translateY(14px);
transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1), transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.benhar-macro-calculator .bfm-results.bfm-is-visible {
opacity: 1;
transform: translateY(0);
} .benhar-macro-calculator .bfm-result-hero {
position: relative;
overflow: hidden;
text-align: center;
padding: 1.75rem 1rem;
border-radius: var(--bfm-radius-lg);
background: linear-gradient(180deg, color-mix(in srgb, var(--bfm-protein) 6%, white), white 65%);
border: 1px solid var(--bfm-border);
margin-bottom: 1.5rem;
box-shadow: var(--bfm-shadow-md);
}
.benhar-macro-calculator .bfm-result-hero::before,
.benhar-macro-calculator .bfm-result-hero::after {
content: "";
position: absolute;
z-index: 0;
border-radius: 50%;
filter: blur(40px);
opacity: 0.2;
pointer-events: none;
}
.benhar-macro-calculator .bfm-result-hero::before {
width: 200px;
height: 200px;
top: -80px;
left: -60px;
background: var(--bfm-protein);
}
.benhar-macro-calculator .bfm-result-hero::after {
width: 200px;
height: 200px;
bottom: -90px;
right: -60px;
background: var(--bfm-carbs);
}
.benhar-macro-calculator .bfm-result-hero > * {
position: relative;
z-index: 1;
}
.benhar-macro-calculator .bfm-result-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin: 0 0 1.1rem;
padding: 0.3rem 0.8rem;
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--bfm-muted);
background: color-mix(in srgb, var(--bfm-ink) 5%, white);
border: 1px solid var(--bfm-border);
border-radius: 999px;
}
@keyframes bfm-pop-in {
0% { transform: scale(0.85); opacity: 0; }
60% { transform: scale(1.03); opacity: 1; }
100% { transform: scale(1); opacity: 1; }
}
.benhar-macro-calculator .bfm-results.bfm-is-visible .bfm-result-donut {
animation: bfm-pop-in 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.benhar-macro-calculator .bfm-result-donut {
position: relative;
width: 200px;
height: 200px;
margin: 0 auto 1.5rem;
}
.benhar-macro-calculator .bfm-donut-svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
filter: drop-shadow(0 4px 14px rgba(20, 24, 28, 0.18));
}
.benhar-macro-calculator .bfm-donut-track {
fill: none;
stroke: var(--bfm-border);
stroke-width: 16;
}
.benhar-macro-calculator .bfm-donut-seg {
fill: none;
stroke-width: 16;
stroke-linecap: round;
stroke-dasharray: 0 502.65;
stroke-dashoffset: 0;
transition: stroke-dasharray 700ms cubic-bezier(0.16, 1, 0.3, 1), stroke-dashoffset 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.benhar-macro-calculator .bfm-donut-seg--protein { stroke: var(--bfm-protein); }
.benhar-macro-calculator .bfm-donut-seg--carbs { stroke: var(--bfm-carbs); }
.benhar-macro-calculator .bfm-donut-seg--fat { stroke: var(--bfm-fat); }
.benhar-macro-calculator .bfm-donut-center {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.15rem;
}
.benhar-macro-calculator .bfm-result-number {
font-size: clamp(2rem, 7vw, 2.5rem);
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1;
background: linear-gradient(135deg, var(--bfm-ink), var(--bfm-protein));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.benhar-macro-calculator .bfm-result-unit {
font-size: 0.72rem;
font-weight: 700;
color: var(--bfm-muted);
text-transform: uppercase;
letter-spacing: 0.06em;
} .benhar-macro-calculator .bfm-macro-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.65rem;
margin-bottom: 1rem;
}
.benhar-macro-calculator .bfm-macro-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.2rem;
padding: 1.1rem 0.4rem 0.85rem;
border-radius: var(--bfm-radius-md);
background: var(--bfm-card);
border: 1.5px solid var(--bfm-border);
text-align: center;
transition: transform var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-macro-item:hover {
transform: translateY(-2px);
box-shadow: var(--bfm-shadow-sm);
}
.benhar-macro-calculator .bfm-macro-item::before {
font-size: 1.5rem;
line-height: 1;
margin-bottom: 0.3rem;
}
.benhar-macro-calculator .bfm-macro-item--protein::before { content: "🥩"; }
.benhar-macro-calculator .bfm-macro-item--carbs::before { content: "🍚"; }
.benhar-macro-calculator .bfm-macro-item--fat::before { content: "🥑"; }
.benhar-macro-calculator .bfm-macro-item--protein { border-top: 3px solid var(--bfm-protein); }
.benhar-macro-calculator .bfm-macro-item--carbs { border-top: 3px solid var(--bfm-carbs); }
.benhar-macro-calculator .bfm-macro-item--fat { border-top: 3px solid var(--bfm-fat); }
.benhar-macro-calculator .bfm-macro-label {
font-size: 0.7rem;
font-weight: 700;
color: var(--bfm-muted);
text-transform: uppercase;
letter-spacing: 0.03em;
}
.benhar-macro-calculator .bfm-macro-value {
font-size: 1.3rem;
font-weight: 800;
}
.benhar-macro-calculator .bfm-macro-item--protein .bfm-macro-value { color: var(--bfm-protein); }
.benhar-macro-calculator .bfm-macro-item--carbs .bfm-macro-value { color: var(--bfm-carbs); }
.benhar-macro-calculator .bfm-macro-item--fat .bfm-macro-value { color: var(--bfm-fat); }
.benhar-macro-calculator .bfm-macro-sub {
font-size: 0.68rem;
color: var(--bfm-muted);
font-weight: 600;
} .benhar-macro-calculator .bfm-macro-bar {
display: flex;
width: 100%;
height: 12px;
border-radius: 999px;
overflow: hidden;
background: var(--bfm-bg);
margin-bottom: 0.5rem;
}
.benhar-macro-calculator .bfm-macro-bar-seg {
height: 100%;
transition: width 500ms ease;
}
.benhar-macro-calculator .bfm-macro-bar-seg--protein { background: var(--bfm-protein); }
.benhar-macro-calculator .bfm-macro-bar-seg--carbs { background: var(--bfm-carbs); }
.benhar-macro-calculator .bfm-macro-bar-seg--fat { background: var(--bfm-fat); }
.benhar-macro-calculator .bfm-macro-bar-labels {
display: flex;
justify-content: space-between;
font-size: 0.72rem;
font-weight: 700;
color: var(--bfm-muted);
flex-wrap: wrap;
gap: 0.4rem;
} .benhar-macro-calculator .bfm-share-card {
text-align: center;
padding: 1.25rem 1rem;
border-radius: var(--bfm-radius-md);
background: var(--bfm-ink);
color: #fff;
margin-bottom: 1.5rem;
}
.benhar-macro-calculator .bfm-share-card-brand {
margin: 0 0 0.2rem;
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
color: color-mix(in srgb, var(--bfm-fat) 70%, white);
}
.benhar-macro-calculator .bfm-share-card-title {
margin: 0 0 0.3rem;
font-size: 1.05rem;
font-weight: 800;
}
.benhar-macro-calculator .bfm-share-card-goal {
margin: 0 0 0.9rem;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.75);
font-weight: 600;
}
.benhar-macro-calculator .bfm-share-card-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.6rem 1rem;
font-size: 0.82rem;
font-weight: 700;
} .benhar-macro-calculator .bfm-section-title {
font-size: 1rem;
font-weight: 800;
margin: 0 0 0.85rem;
}
.benhar-macro-calculator .bfm-breakdown-section,
.benhar-macro-calculator .bfm-guidance-section {
margin-bottom: 1.5rem;
}
.benhar-macro-calculator .bfm-breakdown-list {
list-style: none;
margin: 0;
padding: 0;
border: 1px solid var(--bfm-border);
border-radius: var(--bfm-radius-md);
overflow: hidden;
}
.benhar-macro-calculator .bfm-breakdown-list li {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.7rem 1rem;
font-size: 0.85rem;
background: var(--bfm-card);
}
.benhar-macro-calculator .bfm-breakdown-list li:nth-child(odd) {
background: var(--bfm-bg);
}
.benhar-macro-calculator .bfm-breakdown-list li span:first-child {
color: var(--bfm-muted);
font-weight: 600;
}
.benhar-macro-calculator .bfm-breakdown-list li span:last-child {
font-weight: 800;
}
.benhar-macro-calculator .bfm-guidance-list {
margin: 0;
padding-left: 1.15rem;
color: var(--bfm-muted);
font-size: 0.85rem;
line-height: 1.7;
}
.benhar-macro-calculator .bfm-guidance-list li {
margin-bottom: 0.35rem;
}
.benhar-macro-calculator .bfm-guidance-list li:last-child {
margin-bottom: 0;
} .benhar-macro-calculator .bfm-action-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
@media (max-width: 420px) {
.benhar-macro-calculator .bfm-action-row {
grid-template-columns: 1fr;
}
}
.benhar-macro-calculator .bfm-action-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.45rem;
padding: 0.85rem 0.75rem;
border: none;
border-radius: 999px;
font-weight: 800;
font-size: 0.9rem;
color: #fff;
transition: transform var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-action-btn.bfm-share-btn {
background: linear-gradient(135deg, var(--bfm-primary), var(--bfm-primary-dark));
box-shadow: 0 10px 22px color-mix(in srgb, var(--bfm-primary) 35%, transparent);
}
.benhar-macro-calculator .bfm-action-btn.bfm-share-btn:hover {
transform: translateY(-2px);
box-shadow: 0 14px 28px color-mix(in srgb, var(--bfm-primary) 42%, transparent);
}
.benhar-macro-calculator .bfm-action-btn.bfm-share-btn:active {
transform: translateY(0);
box-shadow: 0 6px 14px color-mix(in srgb, var(--bfm-primary) 30%, transparent);
}
.benhar-macro-calculator .bfm-action-btn.bfm-download-btn {
background: linear-gradient(135deg, var(--bfm-ink), var(--bfm-carbs));
box-shadow: 0 10px 22px rgba(20, 24, 28, 0.28);
}
.benhar-macro-calculator .bfm-action-btn.bfm-download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 14px 28px rgba(20, 24, 28, 0.34);
}
.benhar-macro-calculator .bfm-action-btn.bfm-download-btn:active {
transform: translateY(0);
box-shadow: 0 6px 14px rgba(20, 24, 28, 0.24);
}
.benhar-macro-calculator .bfm-share-fallback {
margin-bottom: 0.75rem;
padding: 1rem;
border-radius: var(--bfm-radius-md);
background: var(--bfm-bg);
border: 1px solid var(--bfm-border);
}
.benhar-macro-calculator .bfm-share-fallback-title {
margin: 0 0 0.6rem;
font-size: 0.8rem;
font-weight: 700;
color: var(--bfm-muted);
}
.benhar-macro-calculator .bfm-share-fallback-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.benhar-macro-calculator .bfm-share-chip {
padding: 0.5rem 0.9rem;
border-radius: 999px;
border: 1.5px solid var(--bfm-border);
background: var(--bfm-card);
font-size: 0.8rem;
font-weight: 700;
transition: border-color var(--bfm-transition), background var(--bfm-transition);
}
.benhar-macro-calculator .bfm-share-chip:hover {
border-color: var(--bfm-primary);
background: color-mix(in srgb, var(--bfm-primary) 6%, white);
}
.benhar-macro-calculator .bfm-share-status {
min-height: 1.2em;
text-align: center;
font-size: 0.8rem;
font-weight: 700;
color: var(--bfm-accent);
margin: 0 0 0.5rem;
} .benhar-macro-calculator .bfm-cta-row {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem;
margin-bottom: 1rem;
}
@media (min-width: 560px) {
.benhar-macro-calculator .bfm-cta-row {
grid-template-columns: 1fr 1fr;
}
}
.benhar-macro-calculator .bfm-cta-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.3rem;
text-align: center;
text-decoration: none;
padding: 1rem;
border-radius: var(--bfm-radius-md);
background: linear-gradient(135deg, var(--bfm-ink), color-mix(in srgb, var(--bfm-ink) 55%, var(--bfm-protein)));
color: #fff;
font-size: 0.78rem;
font-weight: 600;
transition: transform var(--bfm-transition), box-shadow var(--bfm-transition);
}
.benhar-macro-calculator .bfm-cta-btn--secondary {
background: var(--bfm-card);
color: var(--bfm-ink);
border: 1.5px solid var(--bfm-border);
}
.benhar-macro-calculator .bfm-cta-btn strong {
font-size: 0.98rem;
font-weight: 800;
transition: transform var(--bfm-transition);
display: inline-block;
}
.benhar-macro-calculator .bfm-cta-btn:hover {
transform: translateY(-2px);
box-shadow: var(--bfm-shadow-md);
}
.benhar-macro-calculator .bfm-cta-btn:hover strong {
transform: translateX(4px);
} .benhar-macro-calculator .bfm-reset-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
margin: 0.5rem auto 0;
padding: 0.5rem 1rem;
border: none;
background: transparent;
color: var(--bfm-muted);
font-weight: 700;
font-size: 0.85rem;
border-radius: 999px;
transition: color var(--bfm-transition), background var(--bfm-transition);
}
.benhar-macro-calculator .bfm-reset-btn:hover {
color: var(--bfm-ink);
background: var(--bfm-bg);
} .benhar-macro-calculator .bfm-disclaimer {
margin: 1.25rem 0 0;
text-align: center;
font-size: 0.75rem;
line-height: 1.5;
color: var(--bfm-muted);
opacity: 0.85;
} @media (max-width: 380px) {
.benhar-macro-calculator .bfm-panel {
padding: 1.1rem;
border-radius: var(--bfm-radius-md);
}
.benhar-macro-calculator .bfm-result-donut {
width: 170px;
height: 170px;
}
.benhar-macro-calculator .bfm-macro-grid {
gap: 0.4rem;
}
.benhar-macro-calculator .bfm-steps {
gap: 0.3rem;
}
.benhar-macro-calculator .bfm-steps-item {
font-size: 0.68rem;
}
}