/*
 * Memphis Fire: a ceiling on growing text, and button text that fits its button (BQ-GARDE-118, parts 1 and 2).
 * PROPOSED NUMBERS: Chef approves them before this is switched on. They are the three values marked PROPOSED.
 *
 * Cause, measured live 2026-11-28: Flatsome's Custom CSS (the inline <style id="custom-css">) sets
 *   body { font-size: calc(100% + 0.5vw) }                    and, at 2560 px and wider,
 *   body { font-size: calc(120% + 0.8vw) }
 * so body text is 17.95 px at 390, 23.2 at 1440, 25.6 at 1920 and 39.7 at 2560, with no top. Buttons are sized in em
 * of that (Flatsome: base .97em, is-xsmall .7em, is-small .8em, is-large 1.15em, is-larger 1.3em), so VIEW MENU is
 * 26 px at 1366 and 45.6 px at 2560, and RESERVATIONS spills its button.
 *
 * `html body` outranks the Custom CSS's `body`, so these win wherever the theme prints its sheet.
 */

/* 1. Body text stops growing at its 1440 px size. Below 1440 nothing changes. PROPOSED: 23.2px. */
html body {
    font-size: min(calc(100% + 0.5vw), 23.2px);
}
@media screen and (min-width: 2560px) {
    html body {
        font-size: 23.2px;
    }
}

/* 2. Button text has its own, smaller ceiling, keeping each size's proportion below it.
   PROPOSED: 18px for buttons, 16px for small and extra-small ones. */
html body .button {
    font-size: min(0.97em, 18px);
}
html body .button.is-large {
    font-size: min(1.15em, 18px);
}
html body .button.is-larger {
    font-size: min(1.3em, 18px);
}
html body .button.is-small {
    font-size: min(0.8em, 16px);
}
html body .button.is-xsmall {
    font-size: min(0.7em, 16px);
}

/* 3. Full-width ("expand") buttons have no side padding in Flatsome (`.expand, .full-width {padding: 0 !important}`),
   so a long word touches or leaves the edge. Give them room at the sides. */
html body .button.expand {
    padding-left: 0.6em !important;
    padding-right: 0.6em !important;
}

/* 4. "Select options" in a narrow product card wraps to two lines on phones: the card button keeps Flatsome's
   1.2em side padding inside a 146 px card. Narrower side padding there, and the label stays on one line. */
html body .product-small .button {
    padding-left: 0.6em;
    padding-right: 0.6em;
    white-space: nowrap;
}
