/* Montego Bay skin (JM-Themes publics/montego-bay) over the ui-v2 storefront.
 *
 * Loaded after ui-v2.css and ui-v2-laravel.css, so it only has to say what differs. The theme's
 * system, measured from the prototype's own tokens: a near-black page (#1c1c1c), panels a step
 * lighter (#262626) and raised parts lighter still (#2f2f2f), hairline borders (#383838), white
 * text with two muted greys, product photos on a light panel (#f2f2f2), one red accent (#d92d20).
 * Radius 16px on cards and panels, 999px on buttons and chips, container 1240px. Space Grotesk.
 *
 * Its own classes carry the mb- prefix: the theme's .top, .wrap, .card would meet ui-v2's names.
 */

@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

html body.jm-ui-v2 {
    --mb-accent: #d92d20;
    --mb-accent-h: #b32418;
    --mb-save: #7ee2a1;
    --mb-danger: #ef6a60;
    --mb-bg: #1c1c1c;
    --mb-surface: #262626;
    --mb-raise: #2f2f2f;
    --mb-line: #383838;
    --mb-text: #fff;
    --mb-muted: #bcbcbc;
    --mb-dim: #a0a0a0;
    --mb-paper: #f2f2f2;
    --mb-radius: 16px;
    --mb-radius-sm: 10px;
    --mb-wrap: 1240px;

    background: var(--mb-bg);
    color: var(--mb-text);
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* The page's own width. The prototype measures 1240px with a 16px gutter on a phone. */
.mb-wrap {
    width: min(100% - 32px, var(--mb-wrap));
    margin-inline: auto;
}

body.jm-ui-v2 h1,
body.jm-ui-v2 h2,
body.jm-ui-v2 h3 {
    color: var(--mb-text);
    font-weight: 700;
    letter-spacing: -.02em;
}

body.jm-ui-v2 a {
    color: var(--mb-text);
}

body.jm-ui-v2 a:hover {
    color: var(--mb-accent);
}

/* ---------- header: the bar, the catalogue strip and its panel ---------- */

/* Anchors inside the page must clear the sticky header (bar 64 + strip 48). */
html {
    scroll-padding-top: 112px;
}

/* ui-v2 paints the header with .jm-ui-v2 .ui-header, so a plain .mb-top never wins: every rule
 * that answers a base one carries html body.jm-ui-v2 and both classes (the same answer the other
 * skins give). The base header is a flex row with its own padding - this one is two rows. */
html body.jm-ui-v2 .ui-header.mb-top {
    display: block;
    /* 5px over the bar on the phone (client 30.10.2026): the drawer, the name and the cart sat on
     * the very edge of the screen. It is padding and not a margin because the header is sticky at
     * top:0 - a margin would be scrolled away and the bar would go back to the edge the moment the
     * page moved. The wide bar keeps its own look, so the 1024px block takes it back. */
    padding: 5px 0 0;
    min-height: 0;
    background: var(--mb-bg);
    border-bottom: 1px solid var(--mb-line);
}

/* The phone's bar wraps: drawer, logo and cart on the first row, the search on its own below -
 * which is how the prototype gives the field a full row without a second search component. */
html body.jm-ui-v2 .mb-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 56px;
}

/* ui-v2 caps .ui-logo at 160px for its own wordmark; this theme lets the name take the room it
 * needs, as the prototype does, and gives way with an ellipsis only when the bar runs short
 * (measured: a 223px name was being clipped at 130px on a 1440px screen with 292px to spare). */
html body.jm-ui-v2 .ui-logo.mb-logo,
html body.jm-ui-v2 .mb-logo-still {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: none;
    color: var(--mb-text);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-logo i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0;
}

/* On the phone's wrapping bar the logo must be allowed to end up narrower than its name: with a
 * content-sized basis the row breaks and the cart drops to a second line instead (measured at
 * 390px). A zero basis lets it take what is left beside the drawer and the cart, and ellipsise. */
html body.jm-ui-v2 .ui-logo.mb-logo {
    flex: 1 1 0;
}

html body.jm-ui-v2 .mb-logo img {
    max-height: 34px;
    width: auto;
}

/* A long shop name must not push the cart off the bar: it gives way with an ellipsis. */
html body.jm-ui-v2 .mb-logo > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

html body.jm-ui-v2 .mb-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* The sprite is a definition, not a picture: without this it lays out as a 150px block
 * (measured on the stand). */
.mb-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* <use> clones the symbol into the consuming <svg>, so it inherits from THIS element, not from
 * the sprite that holds the definition: the sprite's fill="none" stroke="currentColor" never
 * reaches it, and every icon came out filled black (the magnifier was a solid dot). The stroke
 * has to be stated here. */
.mb-i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- the search field, open in the bar ---------- */

/* .mb-search-slot is the Livewire component's root: it has to carry the stretching, because the
 * component owns that element and the form inside it cannot reach the bar's flex line. */
html body.jm-ui-v2 .mb-search-slot {
    order: 9;
    flex: 1 0 100%;
    display: flex;
    min-width: 0;
    padding-bottom: 12px;
}

html body.jm-ui-v2 .mb-search {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 44px;
    padding: 0 4px 0 14px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 12px;
    color: var(--mb-dim);
    transition: border-color .15s, background .15s;
}

html body.jm-ui-v2 .mb-search:hover {
    border-color: #5a5a5a;
}

html body.jm-ui-v2 .mb-search:focus-within {
    border-color: var(--mb-text);
    background: var(--mb-raise);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-search-ic {
    display: flex;
    cursor: text;
}

html body.jm-ui-v2 .mb-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    color: var(--mb-text);
    font: inherit;
    outline: none;
}

html body.jm-ui-v2 .mb-search input::placeholder {
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-search input::-webkit-search-cancel-button {
    display: none;
}

html body.jm-ui-v2 .mb-search-go {
    flex: none;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-search-go:hover {
    background: #e6e6e6;
}

/* The suggestions hang under the field, inside it, so they follow its width on every screen. */
html body.jm-ui-v2 .mb-suggest {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% + 8px);
    z-index: 20;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 6px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgb(0 0 0 / .45);
}

html body.jm-ui-v2 .mb-sg-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-sg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-sg-row:hover {
    background: var(--mb-raise);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-sg-row img {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--mb-paper);
    object-fit: contain;
}

html body.jm-ui-v2 .mb-sg-t {
    flex: 1;
    min-width: 0;
}

html body.jm-ui-v2 .mb-sg-t strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html body.jm-ui-v2 .mb-sg-p {
    flex: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

html body.jm-ui-v2 .mb-sg-p small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-sg-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 4px;
    border-top: 1px solid var(--mb-line);
    color: var(--mb-muted);
    font-size: 14px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-sg-all:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-sg-all .mb-i {
    width: 16px;
    height: 16px;
}

html body.jm-ui-v2 .mb-sg-none {
    margin: 0;
    padding: 14px 12px;
    color: var(--mb-muted);
    font-size: 14px;
}

/* ---------- the cart pill ---------- */

html body.jm-ui-v2 .mb-cart-slot .ui-mini-cart {
    position: relative;
}

html body.jm-ui-v2 .mb-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

html body.jm-ui-v2 .mb-cart::-webkit-details-marker {
    display: none;
}

html body.jm-ui-v2 .mb-cart:hover {
    background: #e6e6e6;
}

html body.jm-ui-v2 .mb-cart-count {
    position: absolute;
    top: -4px;
    left: 22px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--mb-accent);
    color: var(--mb-text);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

html body.jm-ui-v2 .mb-cart-count[hidden] {
    display: none;
}

html body.jm-ui-v2 .mb-popover {
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 14px;
    color: var(--mb-text);
    box-shadow: 0 16px 40px rgb(0 0 0 / .45);
}

/* ---------- the phone's drawer ---------- */

/* A disclosure, so it works without scripts too, and the backdrop is the summary's own ::after:
 * a click on it toggles the summary, which closes the panel without any JavaScript. */
html body.jm-ui-v2 .mb-drawer > summary {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-left: -10px;
    border-radius: 12px;
    color: var(--mb-text);
    cursor: pointer;
    list-style: none;
}

html body.jm-ui-v2 .mb-drawer > summary::-webkit-details-marker {
    display: none;
}

html body.jm-ui-v2 .mb-drawer > summary:hover {
    background: var(--mb-surface);
}

html body.jm-ui-v2 .mb-drawer[open] > summary::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgb(0 0 0 / .6);
}

html body.jm-ui-v2 .mb-drawer-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: min(88vw, 400px);
    background: var(--mb-bg);
    border-right: 1px solid var(--mb-line);
    animation: mb-drawer-in .25s ease;
}

@keyframes mb-drawer-in {
    from { transform: translateX(-100%); }
    to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html body.jm-ui-v2 .mb-drawer-panel {
        animation: none;
    }
}

html body.jm-ui-v2 .mb-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: 56px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-drawer-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--mb-text);
    cursor: pointer;
}

html body.jm-ui-v2 .mb-drawer-close:hover {
    background: var(--mb-surface);
}

html body.jm-ui-v2 .mb-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
}

html body.jm-ui-v2 .mb-d-main {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--mb-line);
    list-style: none;
}

html body.jm-ui-v2 .mb-d-main a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 8px;
    margin: 0 -8px;
    border-radius: 12px;
    color: var(--mb-text);
    font-size: 17px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-d-main a:hover {
    background: var(--mb-surface);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-d-main .mb-i {
    width: 22px;
    height: 22px;
    color: var(--mb-muted);
}

html body.jm-ui-v2 .mb-d-main small {
    margin-left: auto;
    color: var(--mb-dim);
    font-size: 14px;
    font-weight: 400;
}

html body.jm-ui-v2 .mb-drawer-body .menu ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-drawer-body .menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--mb-muted);
    font-size: 16px;
}

html body.jm-ui-v2 .mb-drawer-body .menu a:hover {
    color: var(--mb-text);
}

/* ---------- the catalogue strip under the bar ---------- */

html body.jm-ui-v2 .mb-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: 48px;
    border-top: 1px solid var(--mb-line);
    font-size: 14px;
    color: var(--mb-muted);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

html body.jm-ui-v2 .mb-nav::-webkit-scrollbar {
    display: none;
}

/* Only the strip's own links, never the panel's: .mb-nav a would carry one more type selector
 * than .mb-mega-card, win on specificity and lay the panel's cards out as 36px pills (measured -
 * the side cards came out as one row with the title wrapped). */
html body.jm-ui-v2 .mb-nav > a,
html body.jm-ui-v2 .mb-nav > .menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    color: inherit;
}

html body.jm-ui-v2 .mb-nav > a:hover,
html body.jm-ui-v2 .mb-nav > .menu a:hover {
    color: var(--mb-text);
    background: var(--mb-surface);
}

html body.jm-ui-v2 .mb-nav > a[aria-current],
html body.jm-ui-v2 .mb-nav > .menu a[aria-current] {
    color: var(--mb-text);
    font-weight: 600;
}

html body.jm-ui-v2 .mb-nav > .menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The spacer pushes the shop's own menu to the right edge, as the prototype's does. */
html body.jm-ui-v2 .mb-nav-sp {
    flex: 1;
}

/* The size has to be stated: ui-v2 gives every .ui-header summary 24px for its own "hamburger"
 * character, and a rule that only sets the weight inherits those 24px (measured against the
 * prototype - 24px here against its 14px, the one part of the header that differed). */
html body.jm-ui-v2 .mb-cat > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    margin-left: -12px;
    border-radius: 10px;
    color: var(--mb-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

html body.jm-ui-v2 .mb-cat > summary::-webkit-details-marker {
    display: none;
}

html body.jm-ui-v2 .mb-cat[open] > summary {
    background: var(--mb-surface);
}

html body.jm-ui-v2 .mb-cat-chev {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}

html body.jm-ui-v2 .mb-cat[open] > summary .mb-cat-chev {
    transform: rotate(180deg);
}

html body.jm-ui-v2 .mb-mega {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    max-height: min(74vh, 620px);
    overflow-y: auto;
    background: var(--mb-bg);
    border-bottom: 1px solid var(--mb-line);
    box-shadow: 0 24px 48px rgb(0 0 0 / .5);
}

html body.jm-ui-v2 .mb-mega-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    padding: 28px 0 32px;
    white-space: normal;
}

html body.jm-ui-v2 .mb-mega-h {
    margin: 0 0 12px;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-mega-list {
    columns: 3;
    column-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-mega-list li {
    break-inside: avoid;
}

html body.jm-ui-v2 .mb-mega-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    margin: 0 -12px;
    border-radius: 10px;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-mega-list a:hover {
    background: var(--mb-surface);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-mega-list small {
    color: var(--mb-dim);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-mega-side {
    display: grid;
    gap: 10px;
    align-content: start;
}

html body.jm-ui-v2 .mb-mega-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    height: auto;
    padding: 16px 18px;
    border: 1px solid var(--mb-line);
    border-radius: 14px;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-mega-card:hover {
    border-color: #8a8a8a;
    background: var(--mb-surface);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-mega-card strong {
    font-size: 16px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-mega-card small {
    grid-column: 1;
    color: var(--mb-dim);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-mega-card .mb-i {
    grid-row: 1 / 3;
    grid-column: 2;
    width: 18px;
    height: 18px;
    color: var(--mb-muted);
}

/* ---------- the header across screens ---------- */

/* The promoted categories give way one by one as the strip runs out of room, so the menu at the
 * right edge never wraps. The same breakpoints the prototype uses. */
@media (max-width: 1279px) {
    html body.jm-ui-v2 .mb-nav > .mb-nav-t4 { display: none; }
}

@media (max-width: 1219px) {
    html body.jm-ui-v2 .mb-nav > .mb-nav-t3 { display: none; }
}

@media (max-width: 1139px) {
    html body.jm-ui-v2 .mb-nav > .mb-nav-t2 { display: none; }
}

@media (max-width: 1079px) {
    html body.jm-ui-v2 .mb-nav > .mb-nav-t1 { display: none; }
}

/* A phone and a tablet: the drawer carries the menu, the strip and its panel step aside. */
@media (max-width: 1023px) {
    html body.jm-ui-v2 .mb-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    /* The frosted bar of the prototype, but only where the drawer is gone. backdrop-filter makes
     * the header a containing block for position:fixed descendants, and the drawer panel inside
     * it was then laid out against the 104px header instead of the screen: it came out as a strip
     * under the bar, with no backdrop at all (measured on the stand at 390px). */
    html body.jm-ui-v2 .ui-header.mb-top {
        padding: 0;
        background: rgb(28 28 28 / .92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    html body.jm-ui-v2 .mb-bar {
        flex-wrap: nowrap;
        gap: 16px;
        min-height: 64px;
    }

    html body.jm-ui-v2 .mb-drawer {
        display: none;
    }

    /* Wide enough for the whole name: it takes what it needs and nothing more. */
    html body.jm-ui-v2 .ui-logo.mb-logo {
        flex: 0 1 auto;
    }

    html body.jm-ui-v2 .mb-search-slot {
        order: 0;
        flex: 1;
        max-width: 560px;
        margin-inline: auto;
        padding-bottom: 0;
    }
}

/* ---------- pages: the heading band, breadcrumbs and the categories grid ---------- */

/* The content column. ui-v2 keeps its own 1120px with a 14px gutter, which left the page 1092
 * wide under a 1240 header (measured at 1440 against the prototype's 1240). The theme uses one
 * width everywhere, so .ui-main carries it - and the gutter with it, because pages this skin has
 * not taken over yet rely on .ui-main for their margins.
 *
 * padding-inline, not the padding shorthand: .ui-route-cart .ui-main and its neighbour add a
 * padding-bottom of their own, and a shorthand here would be fighting them for it. */
html body.jm-ui-v2 .ui-main {
    max-width: calc(var(--mb-wrap) + 32px);
    padding-inline: 16px;
    background: var(--mb-bg);
    color: var(--mb-text);
}

/* Inside .ui-main the gutter is already there, so the theme's own wrapper must not take a second
 * one off; outside it (the header) .mb-wrap keeps its own. */
html body.jm-ui-v2 .ui-main .mb-wrap {
    width: 100%;
    max-width: var(--mb-wrap);
}

html body.jm-ui-v2 .ui-footer-grid,
html body.jm-ui-v2 .ui-foot-legal {
    max-width: var(--mb-wrap);
}

/* Breadcrumbs. The engine's component is one flat row of spans with a "/" between them; the
 * theme's is an <ol>, but the look is the same once the row wraps instead of scrolling
 * sideways and the separator is dimmer than the links. Values from the prototype's sheet. */
html body.jm-ui-v2 .ui-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 0 0;
    overflow: visible;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mb-dim);
}

html body.jm-ui-v2 .ui-crumbs .ui-crumb {
    display: flex;
    align-items: center;
    margin: 0;
}

html body.jm-ui-v2 .ui-crumbs a {
    color: var(--mb-muted);
}

html body.jm-ui-v2 .ui-crumbs a:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .ui-crumbs [aria-current] {
    color: var(--mb-text);
    /* ui-v2 bolds the page you are on; the theme leaves the whole trail at one weight. */
    font-weight: 400;
}

html body.jm-ui-v2 .ui-crumb-sep {
    margin: 0;
    color: #555;
}

@media (min-width: 768px) {
    html body.jm-ui-v2 .ui-crumbs {
        padding-top: 20px;
    }
}

/* On a phone the heading and the filter stand one under the other: side by side they squeezed
 * "212 categories - 2085 medicines" into a four-line column (measured on the stand at 390px). */
html body.jm-ui-v2 .mb-page-h {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 0 8px;
}

html body.jm-ui-v2 .mb-page-h h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -.02em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    html body.jm-ui-v2 .mb-page-h {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding-top: 24px;
    }

    html body.jm-ui-v2 .mb-page-h h1 {
        font-size: clamp(32px, 4vw, 48px);
    }
}

html body.jm-ui-v2 .mb-page-sub {
    margin-top: 10px;
    color: var(--mb-muted);
    font-size: 15px;
}

@media (min-width: 768px) {
    html body.jm-ui-v2 .mb-page-sub {
        font-size: 16px;
    }
}

html body.jm-ui-v2 .mb-find {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 12px;
}

html body.jm-ui-v2 .mb-find input {
    min-width: 0;
    background: none;
    border: 0;
    color: var(--mb-text);
    font: inherit;
    outline: none;
}

html body.jm-ui-v2 .mb-sec {
    padding: 32px 0;
}

html body.jm-ui-v2 .mb-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 16px 0;
    list-style: none;
}

/* The way to the search closes the page, as the theme's hub does. */
html body.jm-ui-v2 .mb-hub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
}

html body.jm-ui-v2 .mb-hub p {
    margin: 0;
    color: var(--mb-muted);
    font-size: 16px;
}

@media (min-width: 768px) {
    html body.jm-ui-v2 .mb-hub {
        padding: 20px 24px;
    }
}

html body.jm-ui-v2 .mb-cat-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 14px 16px;
    background: var(--mb-surface);
    border: 1px solid transparent;
    border-radius: var(--mb-radius);
    color: var(--mb-text);
    transition: border-color .15s, background .15s;
}

html body.jm-ui-v2 .mb-cat-tile:hover {
    border-color: #4a4a4a;
    background: var(--mb-raise);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-cat-tile strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

html body.jm-ui-v2 .mb-cat-tile span {
    display: block;
    margin-top: 4px;
    color: var(--mb-muted);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-cat-tile .mb-i {
    margin-left: auto;
    color: var(--mb-dim);
    transition: transform .15s, color .15s;
}

html body.jm-ui-v2 .mb-cat-tile:hover .mb-i {
    transform: translateX(3px);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-none {
    color: var(--mb-muted);
}

@media (min-width: 768px) {
    html body.jm-ui-v2 .mb-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 24px 0 16px;
    }

    html body.jm-ui-v2 .mb-cat-tile {
        min-height: 88px;
        padding: 18px 20px;
    }

    html body.jm-ui-v2 .mb-cat-tile strong {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    html body.jm-ui-v2 .mb-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- footer: the support strip, the columns, payment and the legal line ---------- */

html body.jm-ui-v2 .ui-footer.mb-foot {
    margin-top: 56px;
    padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
    background: var(--mb-bg);
    border-top: 1px solid var(--mb-line);
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-foot .mb-wrap {
    width: min(100% - 32px, var(--mb-wrap));
    margin-inline: auto;
}

html body.jm-ui-v2 .mb-f-help {
    display: grid;
    gap: 12px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-f-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    padding: 16px 20px;
    background: var(--mb-surface);
    border: 1px solid transparent;
    border-radius: var(--mb-radius);
    color: var(--mb-text);
    transition: border-color .15s, background .15s;
}

html body.jm-ui-v2 a.mb-f-card:hover {
    border-color: #4a4a4a;
    background: var(--mb-raise);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-f-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mb-bg);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-f-t {
    flex: 1;
    min-width: 0;
}

html body.jm-ui-v2 .mb-f-t strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-f-t small {
    display: block;
    margin-top: 2px;
    color: var(--mb-dim);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-f-t .mb-pays {
    margin-top: 8px;
}

html body.jm-ui-v2 .mb-f-go {
    width: 18px;
    height: 18px;
    color: var(--mb-muted);
    transition: transform .15s;
}

html body.jm-ui-v2 a.mb-f-card:hover .mb-f-go {
    transform: translateX(3px);
    color: var(--mb-text);
}

/* Flex, not the prototype's four-column grid: the engine has two footer menus, and a column is
 * left out when its menu is empty. A fixed grid would leave a hole; the ratios are the same. */
html body.jm-ui-v2 .mb-f-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 40px;
    padding: 32px 0;
}

html body.jm-ui-v2 .mb-f-brand {
    flex: 1.3 1 260px;
}

html body.jm-ui-v2 .mb-f-col {
    flex: 1 1 180px;
    min-width: 0;
}

html body.jm-ui-v2 .mb-f-perks {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

html body.jm-ui-v2 .mb-f-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mb-muted);
}

html body.jm-ui-v2 .mb-f-perks .mb-i {
    width: 18px;
    height: 18px;
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-f-h {
    margin: 0 0 14px;
    color: var(--mb-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-f-col .menu ul,
html body.jm-ui-v2 .mb-f-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-f-col .menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: var(--mb-muted);
}

html body.jm-ui-v2 .mb-f-col .menu a:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-f-contact p {
    margin: 0 0 6px;
    color: var(--mb-muted);
}

html body.jm-ui-v2 .mb-f-contact a {
    color: var(--mb-muted);
}

html body.jm-ui-v2 .mb-f-contact a:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-f-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--mb-line);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-f-pay > span {
    color: var(--mb-dim);
}

/* The payment methods are words in outlined chips, as the theme shows them. */
html body.jm-ui-v2 .mb-pays {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-pays li {
    padding: 5px 12px;
    border: 1px solid var(--mb-line);
    border-radius: 8px;
    color: var(--mb-muted);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--mb-line);
    color: var(--mb-dim);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-to-top:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-to-top .mb-i {
    width: 16px;
    height: 16px;
}

/* The phone folds each menu under its heading; the base script opens them from 800px. */
html body.jm-ui-v2 .mb-f-acc > summary.mb-f-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin: 0;
    cursor: pointer;
    list-style: none;
}

html body.jm-ui-v2 .mb-f-acc > summary::-webkit-details-marker {
    display: none;
}

@media (min-width: 640px) {
    html body.jm-ui-v2 .mb-f-help {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-bottom: 40px;
    }
}

@media (min-width: 800px) {
    html body.jm-ui-v2 .mb-f-acc > summary.mb-f-h {
        min-height: 0;
        margin-bottom: 14px;
        cursor: default;
    }
}

@media (min-width: 1024px) {
    html body.jm-ui-v2 .mb-f-grid {
        padding: 40px 0;
    }
}

/* ---------- home: the categories row ---------- */

html body.jm-ui-v2 .mb-sec-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

html body.jm-ui-v2 .mb-sec-h h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    /* ui-v2 tightens every heading to 1.3; the theme leaves them at the page's own 1.5. */
    line-height: 1.5;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-sec-h a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mb-muted);
    font-size: 14px;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-sec-h a:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-sec-h .mb-i {
    width: 16px;
    height: 16px;
}

html body.jm-ui-v2 .mb-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html body.jm-ui-v2 .mb-chips {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--mb-line);
    border-radius: 999px;
    color: var(--mb-muted);
    font-size: 14px;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-chips a:hover {
    color: var(--mb-text);
    border-color: #8a8a8a;
}

/* The way to the whole list closes the row, as the theme's does: filled, not outlined. */
html body.jm-ui-v2 .mb-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 999px;
    color: var(--mb-text);
    font-size: 14px;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-all-link:hover {
    border-color: #8a8a8a;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-all-link .mb-i {
    width: 16px;
    height: 16px;
}

/* ---------- home: the opening band ---------- */

html body.jm-ui-v2 .mb-hero {
    display: grid;
    gap: 16px;
    padding: 32px 0 8px;
}

html body.jm-ui-v2 .mb-hero-h h1 {
    margin: 10px 0 0;
    font-size: clamp(32px, 7vw, 52px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    max-width: 16ch;
}

/* A paragraph written above the heading is the eyebrow - by position, so the admin types text,
 * not class names. */
html body.jm-ui-v2 .mb-hero-h p {
    margin: 0;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-hero-x p {
    margin: 0;
    color: var(--mb-muted);
    font-size: 17px;
    max-width: 46ch;
}

html body.jm-ui-v2 .mb-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

html body.jm-ui-v2 .mb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
}

html body.jm-ui-v2 .mb-btn-main {
    background: var(--mb-text);
    color: var(--mb-bg);
}

html body.jm-ui-v2 .mb-btn-main:hover {
    background: #e6e6e6;
    color: var(--mb-bg);
}

html body.jm-ui-v2 .mb-btn-ghost {
    border: 1px solid var(--mb-line);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-btn-ghost:hover {
    border-color: #8a8a8a;
    color: var(--mb-text);
}

/* The theme's facts row: a title and a line under it in each cell, hairline-separated, running
 * the width of the band. The same shape serves the engine's promise strip, which stands in when
 * the shop has written no advantages yet - there each cell has a title only. */
html body.jm-ui-v2 .mb-facts,
html body.jm-ui-v2 .mb-hero .ui-usp {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: var(--mb-text);
    font-size: 15px;
    background: var(--mb-line);
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    overflow: hidden;
}

html body.jm-ui-v2 .mb-facts > li,
html body.jm-ui-v2 .mb-hero .ui-usp > div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 20px;
    background: var(--mb-bg);
    border: 0;
    color: var(--mb-text);
    font-size: 15px;
}

/* In the stand-in strip the label IS the title of the cell, so it carries the weight that the
 * <strong> carries in a written-out fact. */
html body.jm-ui-v2 .mb-hero .ui-usp > div {
    font-weight: 600;
}

html body.jm-ui-v2 .mb-facts svg,
html body.jm-ui-v2 .mb-hero .ui-usp svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-facts strong {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

/* The second line is the shop's own sentence, so it may arrive with a link in it. */
html body.jm-ui-v2 .mb-facts span {
    display: block;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 400;
}

html body.jm-ui-v2 .mb-facts span p {
    margin: 0;
}

html body.jm-ui-v2 .mb-facts span a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body.jm-ui-v2 .mb-facts span a:hover {
    color: var(--mb-text);
}

/* The engine's promise strip, dressed as the theme's facts row: hairline-separated cells that
 * run the width of the band. */
@media (min-width: 640px) {
    html body.jm-ui-v2 .mb-facts,
    html body.jm-ui-v2 .mb-hero .ui-usp {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (min-width: 900px) {
    html body.jm-ui-v2 .mb-hero {
        grid-template-columns: 1.3fr 1fr;
        gap: 16px 48px;
        align-items: end;
        padding: 40px 0 8px;
    }

    html body.jm-ui-v2 .mb-facts,
    html body.jm-ui-v2 .mb-hero .ui-usp {
        grid-column: 1 / -1;
    }
}

/* ---------- catalogue tiles ---------- */

html body.jm-ui-v2 .mb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 16px;
    background: var(--mb-surface);
    border: 1px solid transparent;
    border-radius: var(--mb-radius);
    transition: border-color .15s, background .15s;
}

html body.jm-ui-v2 .mb-card:hover {
    border-color: #4a4a4a;
    background: var(--mb-raise);
}

/* The overlay makes the whole tile one target; the button inside keeps its own layer. */
html body.jm-ui-v2 .mb-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--mb-radius);
}

html body.jm-ui-v2 .mb-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--mb-paper);
    border-radius: var(--mb-radius-sm);
    overflow: hidden;
}

/* The catalogue's photographs come on white: multiply drops that square into the panel. */
html body.jm-ui-v2 .mb-art img {
    width: 72%;
    height: auto;
    max-height: 92%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

html body.jm-ui-v2 .mb-card h3 {
    margin: 16px 4px 0;
    color: var(--mb-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

html body.jm-ui-v2 .mb-packs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 4px 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-packs li {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--mb-raise);
    color: var(--mb-muted);
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-card:hover .mb-packs li {
    background: #3a3a3a;
}

html body.jm-ui-v2 .mb-packs-more {
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: auto 4px 0;
    padding-top: 16px;
}

html body.jm-ui-v2 .mb-price {
    margin: 0;
    color: var(--mb-text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
}

html body.jm-ui-v2 .mb-price span {
    display: block;
    color: var(--mb-dim);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
}

html body.jm-ui-v2 .mb-add {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-add:hover {
    background: #e6e6e6;
    color: var(--mb-bg);
}

/* The phone's button is the cart alone: a round one the width of its own height, so the price
 * beside it keeps the room it needs. The sheet is written from the phone up, so this IS the
 * phone's rule - the words are put back in the 768px block below.
 *
 * Scoped to the tile on purpose: the purchase panel on the product page carries .mb-add too, and
 * there the button is the row's "Add to cart" - a bare circle in its place would say nothing. */
html body.jm-ui-v2 .mb-card .mb-add {
    justify-content: center;
    width: 36px;
    padding: 0;
}

html body.jm-ui-v2 .mb-card .mb-add-i {
    width: 18px;
    height: 18px;
}

/* Clipped, not removed: display:none would take the link's name away with it, and the only thing
 * left for a screen reader would be a button called nothing. */
html body.jm-ui-v2 .mb-card .mb-add-t {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    html body.jm-ui-v2 .mb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    /* Room enough for the words again - and then the cart is the one that goes. */
    html body.jm-ui-v2 .mb-card .mb-add {
        width: auto;
        padding: 0 16px;
    }

    html body.jm-ui-v2 .mb-card .mb-add-i {
        display: none;
    }

    html body.jm-ui-v2 .mb-card .mb-add-t {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip-path: none;
    }
}

@media (min-width: 1024px) {
    html body.jm-ui-v2 .mb-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- home: the two wide tiles under the wall ---------- */

/* Values taken from the prototype's own sheet, not by eye: the tile is outlined, not filled, and
 * only its border answers the pointer. The icon sits on the panel colour, which on an unfilled
 * tile is what lifts it off the page. */
html body.jm-ui-v2 .mb-extras {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

html body.jm-ui-v2 .mb-tile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    color: var(--mb-text);
    transition: border-color .15s;
}

html body.jm-ui-v2 .mb-tile:hover {
    border-color: #8a8a8a;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-tile-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--mb-surface);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-tile > div {
    min-width: 0;
}

html body.jm-ui-v2 .mb-tile h3 {
    margin: 0;
    color: var(--mb-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

html body.jm-ui-v2 .mb-tile p {
    margin: 2px 0 0;
    color: var(--mb-dim);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-tile-go {
    flex: none;
    display: grid;
    place-items: center;
    margin-left: auto;
    color: var(--mb-muted);
}

@media (min-width: 1024px) {
    html body.jm-ui-v2 .mb-extras {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- product page ---------- */

html body.jm-ui-v2 .mb-pd {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0;
    align-items: start;
}

html body.jm-ui-v2 .mb-pd-art {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
}

html body.jm-ui-v2 .mb-pd-art img {
    width: 78%;
    height: auto;
    max-height: 92%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

html body.jm-ui-v2 .mb-eyebrow {
    margin: 0;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-eyebrow a {
    color: inherit;
}

html body.jm-ui-v2 .mb-eyebrow a:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-pd h1 {
    margin: 8px 0 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

html body.jm-ui-v2 .mb-pd-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mb-save);
}

html body.jm-ui-v2 .mb-stock svg {
    width: 16px;
    height: 16px;
}

html body.jm-ui-v2 .mb-pd-desc {
    margin-top: 16px;
    max-width: 56ch;
    color: var(--mb-muted);
    font-size: 16px;
}

html body.jm-ui-v2 .mb-pd-desc p {
    margin: 0 0 10px;
}

html body.jm-ui-v2 .mb-pd-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin-top: 16px;
    font-size: 15px;
}

html body.jm-ui-v2 .mb-pd-meta dt {
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-pd-meta dd {
    margin: 0;
    color: var(--mb-muted);
}

/* ---------- the packs ---------- */

html body.jm-ui-v2 .mb-buybox {
    margin-top: 28px;
}

html body.jm-ui-v2 .mb-packs-h {
    margin: 0 0 10px;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* One grid for the heading row and for every pack, so a column heading always stands over its
 * column. Measured when they were two grids: the empty cell over the buttons collapsed to zero
 * in the heading and to 110px in the rows, and every heading drifted left by that much. */
html body.jm-ui-v2 .mb-pk-table {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
}

html body.jm-ui-v2 .mb-pk-table.is-bare {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto;
}

html body.jm-ui-v2 .mb-pk-head,
html body.jm-ui-v2 .mb-pks,
html body.jm-ui-v2 .mb-pk {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    gap: 16px;
    align-items: center;
}

html body.jm-ui-v2 .mb-pks {
    row-gap: 0;
}

/* Where subgrid is not understood, the two keep their own identical tracks - the heading drifts
 * by the width of the button, as it did before, but nothing breaks. */
@supports not (grid-template-columns: subgrid) {
    html body.jm-ui-v2 .mb-pk-head,
    html body.jm-ui-v2 .mb-pk {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
    }

    html body.jm-ui-v2 .mb-pk-table.is-bare .mb-pk-head,
    html body.jm-ui-v2 .mb-pk-table.is-bare .mb-pk {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto;
    }

    html body.jm-ui-v2 .mb-pks {
        display: block;
    }
}

html body.jm-ui-v2 .mb-pk-head {
    padding: 8px 16px;
    color: var(--mb-dim);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-pks {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    overflow: hidden;
}

html body.jm-ui-v2 .mb-pk {
    padding: 14px 16px;
    border-top: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-pk:first-child {
    border-top: 0;
}

html body.jm-ui-v2 .mb-pk:hover,
html body.jm-ui-v2 .mb-pk.is-best {
    background: var(--mb-surface);
}

html body.jm-ui-v2 .mb-pk-q strong {
    margin-right: 8px;
    font-size: 16px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: 2px;
}

html body.jm-ui-v2 .mb-pk-save {
    display: block;
    margin-top: 4px;
    color: var(--mb-save);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-pk-pp strong {
    font-size: 16px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-pk-pp span {
    display: block;
    color: var(--mb-dim);
    font-size: 12px;
}

html body.jm-ui-v2 .mb-pk-p {
    text-align: right;
}

html body.jm-ui-v2 .mb-pk-p strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

html body.jm-ui-v2 .mb-pk-out {
    color: var(--mb-dim);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-assure {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
    color: var(--mb-muted);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-assure span {
    display: flex;
    align-items: center;
    gap: 8px;
}

html body.jm-ui-v2 .mb-assure .mb-i {
    width: 18px;
    height: 18px;
}

html body.jm-ui-v2 .mb-pk-go,
html body.jm-ui-v2 .mb-status {
    margin: 16px 0 0;
}

/* ---------- the written-out description ---------- */

html body.jm-ui-v2 .mb-acc {
    margin-top: 32px;
}

html body.jm-ui-v2 .mb-acc .ui-sec-details {
    border-top: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-acc .ui-sec-details:last-of-type {
    border-bottom: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-acc .ui-sec-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--mb-text);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

html body.jm-ui-v2 .mb-acc .ui-sec-details > summary::-webkit-details-marker {
    display: none;
}

html body.jm-ui-v2 .mb-acc .ui-sec-details > summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--mb-dim);
    border-bottom: 2px solid var(--mb-dim);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}

html body.jm-ui-v2 .mb-acc .ui-sec-details[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
}

html body.jm-ui-v2 .mb-acc .ui-sec,
html body.jm-ui-v2 .mb-acc .ui-sub {
    margin: 0;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}

html body.jm-ui-v2 .mb-acc .ui-sec-details > *:not(summary) {
    padding-bottom: 20px;
    max-width: 68ch;
    color: var(--mb-muted);
}

@media (min-width: 900px) {
    html body.jm-ui-v2 .mb-pd {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 48px;
        padding: 24px 0 16px;
    }

    html body.jm-ui-v2 .mb-pd-media {
        position: sticky;
        top: 132px;
    }
}

/* ---------- product: "at a glance" beside the written-out text ---------- */

html body.jm-ui-v2 .mb-pd-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
}

html body.jm-ui-v2 .mb-side h2,
html body.jm-ui-v2 .mb-info h2 {
    margin: 0 0 16px;
    color: var(--mb-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-side h3 {
    margin: 24px 0 10px;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-side h3:first-of-type {
    margin-top: 0;
}

html body.jm-ui-v2 .mb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-tags a,
html body.jm-ui-v2 .mb-tags span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--mb-line);
    border-radius: 999px;
    color: var(--mb-muted);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-tags a:hover {
    border-color: #8a8a8a;
    color: var(--mb-text);
}

/* The price column's heading stands over the prices, which are set to the right edge. */
html body.jm-ui-v2 .mb-pk-table.is-bare .mb-pk-head > span:nth-child(2),
html body.jm-ui-v2 .mb-pk-table:not(.is-bare) .mb-pk-head > span:nth-child(3) {
    text-align: right;
}

@media (min-width: 900px) {
    html body.jm-ui-v2 .mb-pd-info {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 48px;
    }
}

/* ---------- category page ---------- */

/* The strip of categories to switch to. It scrolls sideways, and the page's colour is laid over
 * both ends so a chip that is half out of view fades instead of being cut. */
html body.jm-ui-v2 .mb-tabs-wrap {
    position: relative;
    margin-top: 16px;
}

html body.jm-ui-v2 .mb-tabs {
    display: flex;
    gap: 8px;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 16px;
}

html body.jm-ui-v2 .mb-tabs::-webkit-scrollbar {
    display: none;
}

html body.jm-ui-v2 .mb-tabs a {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--mb-line);
    border-radius: 999px;
    color: var(--mb-muted);
    font-size: 15px;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-tabs a:hover {
    border-color: #8a8a8a;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-tabs a small {
    color: var(--mb-dim);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-tabs a[aria-current] {
    background: var(--mb-text);
    border-color: var(--mb-text);
    color: var(--mb-bg);
    font-weight: 600;
}

html body.jm-ui-v2 .mb-tabs a[aria-current] small {
    color: #555;
}

html body.jm-ui-v2 .mb-tabs .mb-t-all {
    background: var(--mb-surface);
}

html body.jm-ui-v2 .mb-tabs-wrap::before,
html body.jm-ui-v2 .mb-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 4px;
    z-index: 1;
    pointer-events: none;
}

html body.jm-ui-v2 .mb-tabs-wrap::before {
    left: 0;
    width: 32px;
    background: linear-gradient(270deg, transparent, var(--mb-bg));
}

html body.jm-ui-v2 .mb-tabs-wrap::after {
    right: 0;
    width: 48px;
    background: linear-gradient(90deg, transparent, var(--mb-bg));
}

/* The count on the left, the sort on the right. The sort is the engine's own row of links, so
 * it keeps working without scripting and sorts the whole category, not the page in view. */
html body.jm-ui-v2 .mb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 16px;
}

html body.jm-ui-v2 .mb-count {
    margin: 0;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-count span {
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-sort select {
    height: 40px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/16px;
    color: var(--mb-text);
    font: inherit;
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-sort select:hover {
    border-color: #8a8a8a;
}

html body.jm-ui-v2 .mb-sort-go {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-surface);
    color: var(--mb-text);
    font: inherit;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-grid-sec {
    padding-bottom: 32px;
}

html body.jm-ui-v2 .mb-pages {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

html body.jm-ui-v2 .mb-pages a,
html body.jm-ui-v2 .mb-pages span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    color: var(--mb-muted);
    font-size: 14px;
    line-height: 38px;
    text-align: center;
}

html body.jm-ui-v2 .mb-pages a:hover {
    border-color: #8a8a8a;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-pages [aria-current] {
    background: var(--mb-surface);
    border-color: #8a8a8a;
    color: var(--mb-text);
    font-weight: 600;
}

html body.jm-ui-v2 .mb-empty {
    margin-top: 8px;
    padding: 40px 24px;
    border: 1px dashed var(--mb-line);
    border-radius: var(--mb-radius);
    text-align: center;
}

html body.jm-ui-v2 .mb-empty h2 {
    margin: 0 0 8px;
    color: var(--mb-text);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

html body.jm-ui-v2 .mb-desc {
    padding-bottom: 32px;
    color: var(--mb-muted);
    max-width: 80ch;
}

html body.jm-ui-v2 .mb-desc h2,
html body.jm-ui-v2 .mb-desc h3 {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mb-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-more:hover {
    color: var(--mb-text);
}

/* ---------- information pages ---------- */

html body.jm-ui-v2 .mb-info-h {
    padding-bottom: 8px;
}

html body.jm-ui-v2 .mb-info-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 0 16px;
}

html body.jm-ui-v2 .mb-i-nav p {
    margin: 0 0 10px;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-i-nav ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.jm-ui-v2 .mb-i-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-i-nav a:hover {
    background: var(--mb-surface);
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-i-nav a[aria-current] {
    background: var(--mb-surface);
    color: var(--mb-text);
    font-weight: 600;
}

/* The text itself. The shop writes it in the admin, so the theme styles what comes out of the
 * editor - headings, paragraphs, lists and links - rather than asking for classes. */
html body.jm-ui-v2 .mb-prose {
    max-width: 720px;
}

html body.jm-ui-v2 .mb-prose h2 {
    margin: 36px 0 12px;
    color: var(--mb-text);
    font-size: 22px;
    font-weight: 700;
    /* ui-v2 tightens headings to 1.3; the theme leaves them at the page's own 1.5. */
    line-height: 1.5;
    letter-spacing: -.01em;
    text-transform: none;
}

html body.jm-ui-v2 .mb-prose h2:first-child {
    margin-top: 0;
}

html body.jm-ui-v2 .mb-prose h3 {
    margin: 24px 0 10px;
    color: var(--mb-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

html body.jm-ui-v2 .mb-prose p,
html body.jm-ui-v2 .mb-prose li {
    color: var(--mb-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* Space between paragraphs, not after the last one - as the prototype sets it. */
html body.jm-ui-v2 .mb-prose p {
    margin: 0;
}

html body.jm-ui-v2 .mb-prose p + p {
    margin-top: 12px;
}

/* The opening paragraph is the lead - by position, so the editor holds text, not classes. */
html body.jm-ui-v2 .mb-prose > p:first-child {
    color: #d6d6d6;
    font-size: 18px;
}

html body.jm-ui-v2 .mb-prose ul,
html body.jm-ui-v2 .mb-prose ol {
    margin: 12px 0;
    padding-left: 20px;
    list-style: disc;
}

html body.jm-ui-v2 .mb-prose ol {
    list-style: decimal;
}

html body.jm-ui-v2 .mb-prose li + li {
    margin-top: 6px;
}

html body.jm-ui-v2 .mb-prose a {
    color: var(--mb-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body.jm-ui-v2 .mb-prose strong {
    color: var(--mb-text);
    font-weight: 600;
}

html body.jm-ui-v2 .mb-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mb-radius-sm);
}

html body.jm-ui-v2 .mb-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

html body.jm-ui-v2 .mb-prose th,
html body.jm-ui-v2 .mb-prose td {
    padding: 10px 12px;
    border: 1px solid var(--mb-line);
    color: var(--mb-muted);
    text-align: left;
}

@media (min-width: 900px) {
    html body.jm-ui-v2 .mb-info-wrap {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 48px;
    }

    html body.jm-ui-v2 .mb-i-nav {
        position: sticky;
        top: 132px;
    }
}

/* The questions, as rows that open - the same look the product's text has. */
html body.jm-ui-v2 .mb-faq {
    margin-top: 8px;
}

html body.jm-ui-v2 .mb-faq .ui-faq {
    border-top: 1px solid var(--mb-line);
    padding: 0;
}

html body.jm-ui-v2 .mb-faq .ui-faq:last-of-type {
    border-bottom: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-faq .ui-faq > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--mb-text);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

html body.jm-ui-v2 .mb-faq .ui-faq > summary::-webkit-details-marker {
    display: none;
}

html body.jm-ui-v2 .mb-faq .ui-faq > summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--mb-dim);
    border-bottom: 2px solid var(--mb-dim);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}

html body.jm-ui-v2 .mb-faq .ui-faq[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
}

html body.jm-ui-v2 .mb-faq .ui-faq > div {
    padding-bottom: 20px;
    max-width: 68ch;
    color: var(--mb-muted);
}

/* The contact form and the shop's own contacts under it. */
html body.jm-ui-v2 .mb-contact {
    margin-top: 24px;
}

html body.jm-ui-v2 .mb-contact form {
    display: grid;
    gap: 12px;
    max-width: 560px;
}

html body.jm-ui-v2 .mb-contact label {
    display: block;
    margin-bottom: 6px;
    color: var(--mb-dim);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-contact input,
html body.jm-ui-v2 .mb-contact textarea,
html body.jm-ui-v2 .mb-contact select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 12px;
    color: var(--mb-text);
    font: inherit;
    font-size: 15px;
}

html body.jm-ui-v2 .mb-contact textarea {
    min-height: 140px;
    resize: vertical;
}

html body.jm-ui-v2 .mb-contact input:focus,
html body.jm-ui-v2 .mb-contact textarea:focus,
html body.jm-ui-v2 .mb-contact select:focus {
    border-color: var(--mb-text);
    background: var(--mb-raise);
    outline: none;
}

html body.jm-ui-v2 .mb-contact button {
    justify-self: start;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-contact button:hover {
    background: #e6e6e6;
}

/* The arithmetic question the form asks before it accepts a message: the engine draws it on a
 * light card, which on this page was a white block in the middle of the dark text. */
html body.jm-ui-v2 .mb-contact .ui-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
}

html body.jm-ui-v2 .mb-contact .ui-captcha-q {
    color: var(--mb-text);
    font-size: 15px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-contact .ui-captcha input {
    width: auto;
    min-width: 160px;
}

html body.jm-ui-v2 .mb-contact .ui-captcha-refresh {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-raise);
    color: var(--mb-text);
    cursor: pointer;
}

html body.jm-ui-v2 .mb-contact .ui-captcha-refresh:hover {
    border-color: #8a8a8a;
    background: var(--mb-raise);
}

html body.jm-ui-v2 .mb-contacts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin-top: 32px;
    font-size: 15px;
}

html body.jm-ui-v2 .mb-contacts dt {
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-contacts dd {
    margin: 0;
    color: var(--mb-muted);
}

/* ---------- cart ---------- */

html body.jm-ui-v2 .mb-shop-h {
    padding-bottom: 4px;
}

html body.jm-ui-v2 .mb-shop {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px 0 48px;
}

html body.jm-ui-v2 .mb-shop-main,
html body.jm-ui-v2 .mb-shop-side {
    min-width: 0;
}

html body.jm-ui-v2 .mb-c-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-ci {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--mb-line);
}

html body.jm-ui-v2 .mb-ci-img {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--mb-paper);
    overflow: hidden;
}

html body.jm-ui-v2 .mb-ci-img img {
    width: 84%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

html body.jm-ui-v2 .mb-ci-name {
    margin: 0;
    color: var(--mb-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

html body.jm-ui-v2 .mb-ci-name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body.jm-ui-v2 .mb-ci-meta {
    margin: 4px 0 0;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-ci-ctrl {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

html body.jm-ui-v2 .mb-step-q {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid var(--mb-line);
    border-radius: 999px;
}

html body.jm-ui-v2 .mb-step-q button {
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--mb-text);
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-step-q button:hover:not(:disabled) {
    background: var(--mb-raise);
}

html body.jm-ui-v2 .mb-step-q button:disabled {
    color: #555;
    cursor: default;
}

html body.jm-ui-v2 .mb-step-q output {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-ci-rm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mb-muted);
    cursor: pointer;
}

html body.jm-ui-v2 .mb-ci-rm:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-ci-rm svg {
    width: 16px;
    height: 16px;
}

html body.jm-ui-v2 .mb-ci-price {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

html body.jm-ui-v2 .mb-ci-price strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

html body.jm-ui-v2 .mb-ci-price small {
    display: block;
    color: var(--mb-dim);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-back-link:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-back-link .mb-i {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
}

/* The summary of the order. */
html body.jm-ui-v2 .mb-sum-card {
    padding: 24px;
    background: var(--mb-surface);
    border-radius: var(--mb-radius);
}

html body.jm-ui-v2 .mb-sum-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

html body.jm-ui-v2 .mb-sum-head h2 {
    margin: 0;
    color: var(--mb-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

html body.jm-ui-v2 .mb-sum-head .ui-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--mb-muted);
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-sum-head .ui-clear:hover {
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-sum {
    margin: 0;
}

html body.jm-ui-v2 .mb-sum > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    color: var(--mb-muted);
    font-size: 15px;
}

html body.jm-ui-v2 .mb-sum dt {
    margin: 0;
}

html body.jm-ui-v2 .mb-sum dd {
    margin: 0;
    color: var(--mb-text);
    text-align: right;
}

html body.jm-ui-v2 .mb-ship-to,
html body.jm-ui-v2 .mb-ship-row {
    display: block;
    color: var(--mb-muted);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-sum .mb-tot {
    align-items: baseline;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--mb-line);
    color: var(--mb-text);
    font-size: 17px;
    font-weight: 600;
}

html body.jm-ui-v2 .mb-sum .mb-tot dd {
    font-size: 24px;
    font-weight: 700;
}

/* The bar to free delivery - kept by the customer's word (30.10.2026). */
html body.jm-ui-v2 .mb-free {
    margin: 16px 0 20px;
}

html body.jm-ui-v2 .mb-free p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    color: var(--mb-muted);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-free strong {
    display: block;
    color: var(--mb-text);
}

html body.jm-ui-v2 .mb-free.is-reached p {
    color: var(--mb-save);
}

html body.jm-ui-v2 .mb-free.is-reached strong {
    color: var(--mb-save);
}

html body.jm-ui-v2 .mb-free .mb-i {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

html body.jm-ui-v2 .mb-free-bar {
    height: 6px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--mb-raise);
    overflow: hidden;
}

html body.jm-ui-v2 .mb-free-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--mb-text);
    transition: width .2s;
}

html body.jm-ui-v2 .mb-free.is-reached .mb-free-bar i {
    background: var(--mb-save);
}

/* The checkout button is the engine's own; here it fills the card's width. */
html body.jm-ui-v2 .mb-sum-card .checkout-button,
html body.jm-ui-v2 .mb-sum-card .ui-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font-weight: 600;
    font-size: 15px;
}

html body.jm-ui-v2 .mb-sum-card .checkout-button:hover,
html body.jm-ui-v2 .mb-sum-card .ui-button:hover {
    background: #e6e6e6;
    color: var(--mb-bg);
}

html body.jm-ui-v2 .mb-perks {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--mb-line);
    list-style: none;
    color: var(--mb-muted);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
}

html body.jm-ui-v2 .mb-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px 72px;
    border: 0;
}

html body.jm-ui-v2 .mb-empty-ic {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--mb-surface);
    color: var(--mb-muted);
}

html body.jm-ui-v2 .mb-empty-ic svg {
    width: 32px;
    height: 32px;
}

html body.jm-ui-v2 .mb-cart-empty h2 {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

html body.jm-ui-v2 .mb-empty-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 900px) {
    html body.jm-ui-v2 .mb-shop {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
    }

    html body.jm-ui-v2 .mb-shop-side {
        position: sticky;
        top: 132px;
    }

    html body.jm-ui-v2 .mb-ci {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        gap: 20px;
    }

    html body.jm-ui-v2 .mb-ci-img {
        width: 96px;
        height: 96px;
    }

    html body.jm-ui-v2 .mb-ci-name {
        font-size: 18px;
    }
}

/* ---------- search ---------- */

html body.jm-ui-v2 .mb-search-h {
    padding-bottom: 4px;
}

html body.jm-ui-v2 .mb-s-box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    margin-top: 24px;
    padding: 0 8px 0 20px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-line);
    border-radius: 16px;
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-s-box:focus-within {
    border-color: #8a8a8a;
}

html body.jm-ui-v2 .mb-s-box .mb-i {
    width: 22px;
    height: 22px;
}

html body.jm-ui-v2 .mb-s-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: none;
    border: 0;
    color: var(--mb-text);
    font: inherit;
    font-size: 18px;
    outline: none;
}

html body.jm-ui-v2 .mb-s-box input::placeholder {
    color: var(--mb-dim);
}

html body.jm-ui-v2 .mb-s-box input::-webkit-search-cancel-button {
    display: none;
}

html body.jm-ui-v2 .mb-s-go {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--mb-text);
    color: var(--mb-bg);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

html body.jm-ui-v2 .mb-s-go:hover {
    background: #e6e6e6;
}

html body.jm-ui-v2 .mb-s-hint {
    margin: 10px 0 0;
    color: var(--mb-dim);
    font-size: 14px;
}

html body.jm-ui-v2 .mb-s-sec {
    padding: 24px 0 0;
}

html body.jm-ui-v2 .mb-s-sec h2 {
    margin: 0 0 12px;
    color: var(--mb-dim);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body.jm-ui-v2 .mb-s-status {
    margin: 0;
    padding: 28px 0 16px;
    color: var(--mb-muted);
    font-size: 16px;
}

html body.jm-ui-v2 .mb-s-status strong {
    color: var(--mb-text);
}

/* .mb-chips is display:contents - it lends its items to a .mb-cat-row. On this page there is no
 * such row, so the list carries the flow itself; without this the chips stood one per line. */
html body.jm-ui-v2 .mb-s-cats,
html body.jm-ui-v2 .mb-empty-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The chips of the matching categories carry their counts, and the one being looked at is lit. */
html body.jm-ui-v2 .mb-s-cats a small {
    margin-left: 6px;
    color: var(--mb-dim);
    font-size: 13px;
}

html body.jm-ui-v2 .mb-s-cats a[aria-current] {
    background: var(--mb-text);
    border-color: var(--mb-text);
    color: var(--mb-bg);
    font-weight: 600;
}

html body.jm-ui-v2 .mb-s-cats a[aria-current] small {
    color: #555;
}

html body.jm-ui-v2 .mb-empty p {
    margin: 0;
    color: var(--mb-muted);
    font-size: 16px;
}

html body.jm-ui-v2 .mb-empty-chips {
    justify-content: center;
    margin-top: 20px;
}
