/*
 * Private Label formula pages: blocks built with Build Content (resources/views/blocks/*).
 * Scoped to .mn-fb. Colours and type follow the private label redesign
 * (formulas/index-redesign): Chivo, ink #14201A, greens #2F7A18 / #5AB935, blue #33A7F0.
 */

.mn-fb {
    --mn-ink: #14201a;
    --mn-ink-soft: #46524b;
    --mn-muted: #66736b;
    --mn-green: #2f7a18;
    --mn-green-bright: #5ab935;
    --mn-blue: #33a7f0;
    --mn-soft: #f3f7f0;
    --mn-gray: #f9f9f9;
    --mn-line: #e1e6df;
    --mn-radius: 20px;
    --mn-shadow: 0 24px 60px rgba(15, 26, 19, .12);

    font-family: Chivo, system-ui, sans-serif;
    color: var(--mn-ink);
    line-height: 1.6;
    background: #fff;
}

.mn-fb *,
.mn-fb *::before,
.mn-fb *::after {
    box-sizing: border-box;
}

.mn-fb a {
    color: var(--mn-green);
}

.mn-fb .m-0 {
    margin: 0;
}

/* ----------------------------------------------------------------- layout */

.mn-fb-section {
    padding: 64px 0;
}

/* Two plain sections in a row share one gap. After a tinted or gray panel or a CTA band the
   next section keeps its full top padding, so it doesn't sit against the panel's edge. */
.mn-fb-section:not(.mn-fb-tinted):not(.mn-fb-gray):not(.mn-fb-cta) + .mn-fb-section:not(.mn-fb-tinted):not(.mn-fb-gray):not(.mn-fb-cta) {
    padding-top: 16px;
}

.mn-fb-tinted {
    background: var(--mn-soft);
}

.mn-fb-gray {
    background: var(--mn-gray);
}

/* The site's own container widths (.container: 1184px, and 100rem on very wide screens),
   so blocks line up with the product section above them. */
.mn-fb-container {
    width: 100%;
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 100em) {
    .mn-fb-container {
        max-width: 100rem;
    }
}

/* Text-led blocks use the full container; only running text keeps a readable line length. */
.mn-fb-measure .mn-fb-prose,
.mn-fb-measure .mn-fb-intro,
.mn-fb-measure .mn-fb-lead {
    max-width: 80ch;
}

.mn-fb-overview:not(.is-left) .mn-fb-prose,
.mn-fb-overview:not(.is-left) .mn-fb-lead {
    margin-left: auto;
    margin-right: auto;
}

.mn-fb-measure .mn-fb-faq-a {
    max-width: 90ch;
}

.mn-fb-narrow {
    max-width: 760px;
}

.mn-fb-center {
    text-align: center;
}

/* ------------------------------------------------------------------- type */

.mn-fb-heading {
    margin: 0 0 16px;
    color: var(--mn-ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mn-fb-heading-display { font-size: clamp(34px, 4.2vw, 48px); }
.mn-fb-heading-h1 { font-size: clamp(30px, 3.6vw, 42px); }
.mn-fb-heading-h2 { font-size: clamp(26px, 3vw, 34px); }
.mn-fb-heading-h3 { font-size: clamp(22px, 2.4vw, 26px); }
.mn-fb-heading-h4 { font-size: 20px; }
.mn-fb-heading-h5 { font-size: 18px; }
.mn-fb-heading-small { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

.mn-fb-eyebrow {
    margin-bottom: 8px;
    color: var(--mn-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mn-fb-lead {
    font-size: 18px;
    color: var(--mn-ink-soft);
}

.mn-fb-intro {
    margin: 0 0 20px;
    color: var(--mn-ink-soft);
}

.mn-fb-caption {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--mn-muted);
}

.mn-fb-prose > :first-child { margin-top: 0; }
.mn-fb-prose > :last-child { margin-bottom: 0; }
.mn-fb-prose p { margin: 0 0 1em; }
.mn-fb-prose ul,
.mn-fb-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.mn-fb-prose li { margin-bottom: .35em; }
.mn-fb-prose strong { color: var(--mn-ink); }

/* ----------------------------------------------------------------- buttons */

.mn-fb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.mn-fb-overview:not(.is-left) .mn-fb-actions {
    justify-content: center;
}

/* The site's pill button: green (#5ab935) by default, blue on hover; uppercase label and arrow. */
.mn-fb .mn-fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 2px solid #5ab935;
    border-radius: 999px;
    background: #5ab935;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.mn-fb .mn-fb-btn::after {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mn-fb .mn-fb-btn:hover,
.mn-fb .mn-fb-btn:focus-visible {
    color: #fff;
    background: #33a7f0;
    border-color: #33a7f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(134, 36, 11, .1);
}

.mn-fb .mn-fb-btn:focus-visible {
    outline: 3px solid var(--mn-ink);
    outline-offset: 3px;
}

/* On the green quote band: a white button, and an outlined one. */
.mn-fb .mn-fb-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--mn-green);
}

.mn-fb .mn-fb-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .85);
    color: #fff;
}

.mn-fb .mn-fb-btn-light:hover,
.mn-fb .mn-fb-btn-light:focus-visible,
.mn-fb .mn-fb-btn-outline:hover,
.mn-fb .mn-fb-btn-outline:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--mn-green);
}

.mn-fb .mn-fb-link {
    font-weight: 700;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .mn-fb .mn-fb-btn { transition: none; }
    .mn-fb .mn-fb-btn:hover,
    .mn-fb .mn-fb-btn:focus-visible { transform: none; }
}

/* ------------------------------------------------------------------ images */

.mn-fb-img {
    position: relative;
    overflow: hidden;
}

.mn-fb-img .pictureContainer {
    position: relative;
    width: 100%;
    margin: 0 !important;
}

.mn-fb-img .pictureContainer picture {
    position: absolute;
    inset: 0;
    display: block;
}

.mn-fb-img .pictureContainer img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

/* Product photos (packshots on white) are shown whole. */
.mn-fb-img-product {
    background: #fff;
}

/* More specific than the site's ".pictureContainer picture.object-fit img { object-fit: cover }". */
.mn-fb .mn-fb-img-product .pictureContainer picture img {
    object-fit: contain;
    padding: 6%;
}

.mn-fb-rounded {
    border-radius: var(--mn-radius);
    box-shadow: var(--mn-shadow);
}

.mn-fb-img-empty {
    position: relative;
    border: 2px dashed var(--mn-line);
    border-radius: var(--mn-radius);
    background: var(--mn-soft);
}

.mn-fb-img-empty.is-pending {
    border-color: var(--mn-blue);
    background: #eef6fd;
}

.mn-fb-img-empty-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mn-muted);
    font-size: 15px;
}

.mn-fb-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--mn-blue);
    border-right-color: transparent;
    border-radius: 50%;
    animation: mn-fb-spin .8s linear infinite;
}

@keyframes mn-fb-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------ centered overview */

.mn-fb-overview .mn-fb-container {
    text-align: center;
}

.mn-fb-overview.is-left .mn-fb-container {
    text-align: left;
}

.mn-fb-overview .mn-fb-prose ul,
.mn-fb-overview .mn-fb-prose ol {
    display: inline-block;
    text-align: left;
}

/* ------------------------------------------- photo and text, benefit rows */

.mn-fb-image-text > .mn-fb-container,
.mn-fb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.mn-fb-image-text.is-text-only > .mn-fb-container,
.mn-fb-split.is-text-only {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
}

/* Photo on the right by default; first in the source for mobile. */
.mn-fb-image-text:not(.is-photo-left) .mn-fb-split-media,
.mn-fb-split:not(.is-photo-left) .mn-fb-split-media {
    order: 2;
}

.mn-fb-rows-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.mn-fb-rows-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.mn-fb-row-num {
    display: block;
    margin-bottom: 8px;
    color: var(--mn-green-bright);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
}

@media (max-width: 900px) {
    .mn-fb-section { padding: 44px 0; }

    .mn-fb-image-text > .mn-fb-container,
    .mn-fb-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .mn-fb-image-text .mn-fb-split-media,
    .mn-fb-split .mn-fb-split-media {
        order: 0 !important;
    }

    .mn-fb-rows-list { gap: 44px; }
}

/* ------------------------------------------------------------------- cards */

.mn-fb-card-grid {
    display: grid;
    grid-template-columns: repeat(var(--mn-fb-cols, 3), minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.mn-fb-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mn-line);
    border-radius: var(--mn-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 26, 19, .06);
}

.mn-fb-card-body {
    padding: 24px;
}

.mn-fb-card .mn-fb-heading {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .mn-fb-card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------- checklist */

.mn-fb-panel {
    padding: 32px;
    border: 1px solid var(--mn-line);
    border-radius: var(--mn-radius);
    background: #fff;
}

.mn-fb-tinted .mn-fb-panel,
.mn-fb-gray .mn-fb-panel {
    border-color: transparent;
}

.mn-fb-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mn-fb-list li {
    position: relative;
    padding: 10px 0 10px 36px;
    border-bottom: 1px solid var(--mn-line);
}

.mn-fb-list li:last-child {
    border-bottom: 0;
}

.mn-fb-list li strong {
    margin-right: 4px;
}

.mn-fb-list-checks li::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mn-green-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.mn-fb-list-bullets li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mn-green-bright);
}

.mn-fb-list-numbers {
    counter-reset: mn-fb-item;
}

.mn-fb-list-numbers li::before {
    counter-increment: mn-fb-item;
    content: counter(mn-fb-item);
    position: absolute;
    top: 11px;
    left: 0;
    width: 24px;
    color: var(--mn-green);
    font-weight: 700;
}

/* ------------------------------------------------------------ key figures */

.mn-fb-figure-grid {
    display: grid;
    grid-template-columns: repeat(var(--mn-fb-cols, 3), minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 0;
}

.mn-fb-figure {
    display: flex;
    flex-direction: column-reverse;
    padding: 28px 20px;
    border-radius: var(--mn-radius);
    background: var(--mn-soft);
    text-align: center;
}

.mn-fb-figure-value {
    margin: 0 0 6px;
    color: var(--mn-green);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.1;
}

.mn-fb-figure-label {
    margin: 0;
    color: var(--mn-ink-soft);
    font-weight: 400;
}

@media (max-width: 700px) {
    .mn-fb-figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------- steps */

.mn-fb-timeline {
    position: relative;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.mn-fb-timeline-step {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 24px;
}

.mn-fb-timeline-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: var(--mn-line);
}

.mn-fb-timeline-num {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mn-green);
    color: #fff;
    font-weight: 700;
}

.mn-fb-timeline-title {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.mn-fb-timeline-text {
    margin: 4px 0 0;
    color: var(--mn-ink-soft);
}

/* ----------------------------------------------------------------- tables */

.mn-fb-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--mn-line);
    border-radius: var(--mn-radius);
}

.mn-fb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.mn-fb-table th,
.mn-fb-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mn-line);
    text-align: left;
    vertical-align: top;
}

.mn-fb-table tbody tr:last-child th,
.mn-fb-table tbody tr:last-child td {
    border-bottom: 0;
}

.mn-fb-table thead th {
    background: var(--mn-green);
    color: #fff;
    font-weight: 700;
}

.mn-fb-table tbody th {
    width: 34%;
    background: var(--mn-soft);
    font-weight: 700;
}

.mn-fb-plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mn-fb-plain-list li + li {
    margin-top: 4px;
}

.mn-fb-builder-note {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff8e1;
    color: #6b4e00;
    font-size: 13px;
}

/* -------------------------------------------------------------- callout */

.mn-fb-callout {
    padding: 24px 28px;
    border-left: 4px solid var(--mn-green-bright);
    border-radius: 0 var(--mn-radius) var(--mn-radius) 0;
    background: var(--mn-soft);
}

.mn-fb-callout-note {
    border-left-color: var(--mn-blue);
    background: #eef6fd;
}

.mn-fb-callout-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.mn-fb-callout-quote {
    margin: 0;
    font-size: 20px;
    font-style: italic;
}

/* ----------------------------------------------------------------- video */

.mn-fb-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--mn-radius);
    background: var(--mn-soft);
}

.mn-fb-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------- FAQ */

.mn-fb-faq-list {
    margin-top: 24px;
    border-top: 1px solid var(--mn-line);
}

.mn-fb-faq-item {
    border-bottom: 1px solid var(--mn-line);
}

.mn-fb-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.mn-fb-faq-q::-webkit-details-marker {
    display: none;
}

.mn-fb-faq-q-text {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.mn-fb-faq-toggle {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mn-soft);
}

.mn-fb-faq-toggle::before,
.mn-fb-faq-toggle::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 8px;
    width: 12px;
    height: 2px;
    background: var(--mn-green);
    transition: transform .2s ease;
}

.mn-fb-faq-toggle::after {
    transform: rotate(90deg);
}

.mn-fb-faq-item[open] .mn-fb-faq-toggle::after {
    transform: rotate(0deg);
}

.mn-fb-faq-a {
    padding: 0 44px 20px 0;
    color: var(--mn-ink-soft);
}

/* --------------------------------------------------------------- CTA band */

.mn-fb-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 48px;
    border-radius: var(--mn-radius);
    background: linear-gradient(120deg, #2f7a18, #5ab935);
    color: #fff;
}

.mn-fb-cta-band .mn-fb-heading {
    margin-bottom: 6px;
    color: #fff;
}

.mn-fb-cta-text {
    margin: 0;
    color: rgba(255, 255, 255, .9);
}

.mn-fb-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 700px) {
    .mn-fb-cta-band { padding: 28px 24px; }
    .mn-fb-cta-actions,
    .mn-fb-cta-actions .mn-fb-btn { width: 100%; }
    .mn-fb-container { padding: 0 20px; }
    .mn-fb-panel { padding: 22px; }
    .mn-fb-table th,
    .mn-fb-table td { padding: 12px 14px; }
}
