/* Franchise header bar (every page while a visitor is with a franchise) */
.mf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .5rem 1rem;
  background: #f4f1ea; border-bottom: 1px solid #e3ddcf; font-size: .875rem; color: #3b3a36; }
.mf-bar__brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 600; }
.mf-bar__logo { max-height: 36px; width: auto; }
.mf-bar__powered { color: #6b6a63; }
.mf-bar__contact { margin-left: auto; display: flex; gap: 1rem; }
.mf-bar__contact a { color: inherit; }
@media (max-width: 600px) { .mf-bar__powered { display: none; } .mf-bar__contact { margin-left: 0; } }

/* Storefront page */
.mf-store { max-width: 1200px; margin: 0 auto; padding: 0 16px 3rem; }
.mf-hero { margin: 1.5rem 0 2rem; border-radius: 12px; background: #f4f1ea; text-align: center; overflow: hidden; }
.mf-hero--banner { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), var(--mf-banner) center / cover; color: #fff; }
.mf-hero__inner { padding: 3rem 1rem; }
.mf-hero__logo img { max-height: 110px; width: auto; border-radius: 8px; background: #fff; padding: 6px; }
.mf-hero__title { margin: 1rem 0 .25rem; font-size: clamp(1.6rem, 4vw, 2.4rem); color: inherit; }
.mf-hero__sub { margin: 0 0 1.5rem; opacity: .85; }
.mf-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.mf-btn--ghost { background: transparent !important; border: 1px solid currentColor !important; color: inherit !important; }
.mf-section { margin: 2.5rem 0; }
.mf-section h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.mf-about__text { max-width: 70ch; }
.mf-about__address { color: #6b6a63; }
.mf-more { text-align: center; margin-top: 1.5rem; }

/* Checkout: franchise / referral credit line */
.mf-attrib-note { font-size: .875rem; color: #3b3a36; background: #f4f1ea; padding: .6rem .8rem; border-radius: 6px; }

/* My Account: franchise dashboard and Refer & earn */
.mf-dash h2 { margin-top: 0; }
.mf-warn { background: #fff4e5; border-left: 4px solid #e08a00; padding: .6rem .8rem; }
.mf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 1rem 0; }
.mf-card { border: 1px solid #e3ddcf; border-radius: 8px; padding: .8rem; display: flex; flex-direction: column; gap: .2rem; background: #fff; }
.mf-card__label { font-size: .8rem; color: #6b6a63; }
.mf-card strong { font-size: 1.3rem; }
.mf-card__note { font-size: .75rem; color: #6b6a63; }
.mf-progress { height: 10px; background: #eee8da; border-radius: 99px; overflow: hidden; }
.mf-progress span { display: block; height: 100%; background: #3f7d3a; }
.mf-progress__text { font-size: .875rem; color: #3b3a36; }
.mf-share { margin: 2rem 0; }
.mf-share__grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
@media (max-width: 640px) { .mf-share__grid { grid-template-columns: 1fr; } }
.mf-copy { width: 100%; cursor: pointer; font-family: ui-monospace, monospace; font-size: .85rem; }
.mf-copy.mf-copied { outline: 2px solid #3f7d3a; }
.mf-code { font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .05em; }
.mf-qr { text-align: center; }
.mf-qr img { display: block; margin: 0 auto .5rem; image-rendering: pixelated; border: 1px solid #e3ddcf; }
.mf-table-wrap { overflow-x: auto; }
.mf-table td, .mf-table th { white-space: nowrap; }
.mf-void td { color: #9a988f; text-decoration: line-through; }
.mf-credit-banner { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 8px; background: #edf5ea; border: 1px solid #cfe3c8; }

/* Storefront change requests */
.mf-ok { background: #edf5ea; border-left: 4px solid #3f7d3a; padding: .6rem .8rem; }
.mf-note { background: #f4f1ea; border-left: 4px solid #b8a77a; padding: .6rem .8rem; }
.mf-change { margin: 2rem 0; }
.mf-change summary { cursor: pointer; font-weight: 600; margin-bottom: .75rem; }
.mf-change__form input.input-text, .mf-change__form textarea { width: 100%; max-width: 32rem; }
.mf-change__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.mf-change__label { display: block; font-weight: 600; margin-bottom: .25rem; }
.mf-change__preview { display: block; max-width: 100%; max-height: 120px; width: auto; height: auto; border: 1px solid #e3ddcf; border-radius: 6px; margin-bottom: .5rem; background: #fff; }
.mf-change__empty { display: block; color: #6b6a63; margin-bottom: .5rem; }
.mf-change small { display: block; color: #6b6a63; }
