/* ============================================================
   BB Mega Wide Menu — v1.4.6
   Panels are teleported to <body> by frontend.js so that
   position:fixed + width:100vw works inside Themer headers
   regardless of any container CSS transforms.
   ============================================================ */


/* ── Module wrapper ─────────────────────────────────────────── */

.fl-module-bbmwm .fl-module-content {
    margin: 0;
}

.bbmwm-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.bbmwm-nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

/* ── Menu bar ───────────────────────────────────────────────── */

.bbmwm-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.bbmwm-item {
    flex-shrink: 0;
}

.bbmwm-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    color: inherit;
    font-family: var(--fl-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

/* Active underline bar */
.bbmwm-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: transparent;
    border-radius: 2px 2px 0 0;
    transition: background 0.2s ease;
}

.bbmwm-item:hover > .bbmwm-link::after,
.bbmwm-item.bbmwm-open > .bbmwm-link::after,
.bbmwm-item.bbmwm-current > .bbmwm-link::after {
    background: currentColor;
}

/* Dropdown indicator arrow */
.bbmwm-indicator {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

.bbmwm-item.bbmwm-open > .bbmwm-link .bbmwm-indicator {
    transform: rotate(180deg);
}

/* Heading-only item (added via the "Mega Menu Heading" meta box) */
.bbmwm-link-heading {
    cursor: default;
}
.bbmwm-link-heading::after {
    display: none !important;
}

/* ── Dropdown Panel ─────────────────────────────────────────── */

.bbmwm-panel {
    position: fixed;
    top: 0;              /* set by JS: nav.getBoundingClientRect().bottom */
    left: 0;
    width: 100vw;
    background: #ffffff;
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    font-family: var(--fl-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    color: #333333;
}

.bbmwm-panel.bbmwm-panel-ready {
    display: block;
}

.bbmwm-panel.bbmwm-panel-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bbmwm-panel-inner {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* ── Left title column ──────────────────────────────────────── */

.bbmwm-panel-left {
    flex: 0 0 22%;
    padding-right: 48px;
    box-sizing: border-box;
}

.bbmwm-panel-left-title {
    display: block;
    font-family: var(--fl-heading-font-family, var(--fl-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif));
    font-size: 24px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    line-height: 1.25;
    transition: color 0.15s;
}

/* ── Right content (columns) ────────────────────────────────── */

.bbmwm-panel-right {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 48px;
}

.bbmwm-panel-group {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 280px;
}

.bbmwm-group-heading {
    font-family: var(--fl-heading-font-family, var(--fl-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
    font-size: 13px;
    font-weight: 700;
    color: inherit;
    margin: 0 0 16px;
}

.bbmwm-group-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
    margin-bottom: 16px;
}

/* ── Panel links ────────────────────────────────────────────── */

.bbmwm-panel-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbmwm-panel-links li {
    margin-bottom: 12px;
}

.bbmwm-panel-link {
    font-size: 15px;
    font-weight: 400;
    color: inherit;
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}

.bbmwm-panel-links-flat {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbmwm-panel-links-flat li {
    margin: 0 56px 12px 0;
}

.bbmwm-panel-links-flat li:last-child {
    margin-right: 0;
}

/* ── Column grid (set via data-cols attribute) ─────────────── */

.bbmwm-panel[data-cols] .bbmwm-panel-right {
    display: grid;
    gap: 32px 48px;
    align-items: start;
    flex-wrap: nowrap;
}
.bbmwm-panel[data-cols="2"] .bbmwm-panel-right { grid-template-columns: repeat(2, 1fr); }
.bbmwm-panel[data-cols="3"] .bbmwm-panel-right { grid-template-columns: repeat(3, 1fr); }
.bbmwm-panel[data-cols="4"] .bbmwm-panel-right { grid-template-columns: repeat(4, 1fr); }
.bbmwm-panel[data-cols="5"] .bbmwm-panel-right { grid-template-columns: repeat(5, 1fr); }

/* ============================================================
   Style 2 — Card layout
   Dark panel by default; every colour is overridable from the
   BB "Cards (Style 2)" style section.
   ============================================================ */

/* Style 2 is a CONTAINED dropdown anchored under its nav item (JS sets top/left),
   not a full-viewport bar. Width is driven by the card column count.
   The double-class selector (.bbmwm-panel.bbmwm-panel-style2) guarantees these
   win over the base ".bbmwm-panel { width:100vw }" regardless of CSS load order. */
.bbmwm-panel.bbmwm-panel-style2 {
    width: 520px;                 /* default: 2 columns */
    max-width: calc(100vw - 24px);
    background: linear-gradient(180deg, #0b1b30 0%, #0e2236 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
}

/* Invisible hover bridge across the 8px gap under the nav bar, so hovering from
   the nav item onto the panel never drops the dropdown. */
.bbmwm-panel.bbmwm-panel-style2::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.bbmwm-panel.bbmwm-panel-style2[data-cardcols="3"] { width: 760px; }
.bbmwm-panel.bbmwm-panel-style2[data-cardcols="4"] { width: 1000px; }

.bbmwm-panel-style2 .bbmwm-panel-inner {
    display: block;
    max-width: none;
    margin: 0;
    padding: 20px;
}

.bbmwm-panel-style2 .bbmwm-panel-right {
    display: block;
    flex: none;
    gap: 0;
}

.bbmwm-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

.bbmwm-cards[data-cols="1"] { grid-template-columns: 1fr; }
.bbmwm-cards[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.bbmwm-cards[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.bbmwm-cards[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

/* ── Card ── */
.bbmwm-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease;
}

.bbmwm-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Heading-only card (non-clickable) */
.bbmwm-card-static { cursor: default; }
.bbmwm-card-static:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.09);
}

/* ── Icon box ── */
.bbmwm-card-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bbmwm-card:hover .bbmwm-card-icon {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.09);
}

.bbmwm-card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

/* ── Card text ── */
.bbmwm-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bbmwm-card-title {
    font-family: var(--fl-heading-font-family, var(--fl-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.bbmwm-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

/* Neutralise theme link styling (red borders, underlines, focus outlines) that
   can leak onto the card <a>. This scoped selector (0,3,0) outranks typical
   theme "a" rules; the user's Card Border / colours override it via !important. */
.bbmwm-panel.bbmwm-panel-style2 .bbmwm-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-decoration: none;
    outline: none;
}
.bbmwm-panel.bbmwm-panel-style2 .bbmwm-card:hover,
.bbmwm-panel.bbmwm-panel-style2 .bbmwm-card:focus {
    text-decoration: none;
    outline: none;
}

/* ── Tall menus: let the card grid scroll inside the container ── */
.bbmwm-panel-style2 .bbmwm-panel-inner {
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ── Staggered card reveal on open (opacity only — no conflict with hover lift) ── */
@keyframes bbmwm-card-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card {
    animation: bbmwm-card-in 0.3s ease both;
}
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card:nth-child(2) { animation-delay: 0.04s; }
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card:nth-child(3) { animation-delay: 0.08s; }
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card:nth-child(4) { animation-delay: 0.12s; }
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card:nth-child(5) { animation-delay: 0.16s; }
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card:nth-child(6) { animation-delay: 0.20s; }
.bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card:nth-child(n+7) { animation-delay: 0.22s; }

/* ── Keyboard focus rings (accessibility) ── */
.bbmwm-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}
.bbmwm-panel.bbmwm-panel-style2 .bbmwm-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}
.bbmwm-toggle:focus-visible,
.bbmwm-mobile-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
    .bbmwm-panel,
    .bbmwm-panel.bbmwm-panel-open {
        transform: none;
        transition: opacity 0.15s ease;
    }
    .bbmwm-card,
    .bbmwm-card:hover,
    .bbmwm-card-icon,
    .bbmwm-indicator {
        transition: none;
        transform: none;
    }
    .bbmwm-panel.bbmwm-panel-open .bbmwm-cards .bbmwm-card {
        animation: none;
    }
}

/* ── Cards: tablet / narrow-desktop — shrink the contained panel too ── */
@media (max-width: 1024px) {
    .bbmwm-panel.bbmwm-panel-style2[data-cardcols="3"],
    .bbmwm-panel.bbmwm-panel-style2[data-cardcols="4"] {
        width: 520px;
    }
    .bbmwm-cards[data-cols="3"],
    .bbmwm-cards[data-cols="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bbmwm-panel.bbmwm-panel-style2,
    .bbmwm-panel.bbmwm-panel-style2[data-cardcols="3"],
    .bbmwm-panel.bbmwm-panel-style2[data-cardcols="4"] {
        width: calc(100vw - 24px);
    }
    .bbmwm-cards,
    .bbmwm-cards[data-cols="2"],
    .bbmwm-cards[data-cols="3"],
    .bbmwm-cards[data-cols="4"] {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile header row (logo + close) ───────────────────────── */

.bbmwm-mobile-header-row {
    display: none;
    list-style: none;
}

.bbmwm-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #333333;
    flex-shrink: 0;
}

/* ── Mobile accordion sub-menu ─────────────────────────────── */

.bbmwm-mobile-sub {
    display: none;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.bbmwm-mobile-sub-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px;
}
.bbmwm-mobile-group-head {
    font-size: 11px;
    font-weight: 700;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 14px 24px 6px;
    opacity: 0.7;
}
.bbmwm-mobile-sub-list li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.bbmwm-mobile-sub-list li:first-child {
    border-top: none;
}
.bbmwm-mobile-link {
    display: block;
    padding: 11px 24px;
    font-size: 15px;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.bbmwm-mobile-link:hover {
    background: rgba(0, 0, 0, 0.04);
}
.bbmwm-mobile-sub-item .bbmwm-mobile-link {
    padding-left: 36px;
    font-size: 14px;
    opacity: 0.85;
}

/* ── Hamburger toggle ───────────────────────────────────────── */

.bbmwm-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    margin-left: auto;
    z-index: 100000;
    flex-shrink: 0;
    color: #333333;
}

.bbmwm-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    min-height: 2px;
    flex-shrink: 0;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bbmwm-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bbmwm-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bbmwm-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile backdrop ────────────────────────────────────────── */

.bbmwm-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99997;
    cursor: pointer;
}

.bbmwm-backdrop.bbmwm-backdrop-open {
    display: block;
}

/* ── Mobile / off-canvas ─────────────────────────────────────────
   Driven by JS-applied classes, NOT a fixed media query, so the
   switch happens at the module's configured Mobile Breakpoint
   (768px or 1025px). frontend.js adds:
     • .bbmwm-is-mobile   on .bbmwm-wrap  (below the breakpoint)
     • .bbmwm-mobile-mode on .bbmwm-menu  (after teleporting to <body>)
   ─────────────────────────────────────────────────────────────── */

.bbmwm-wrap.bbmwm-is-mobile .bbmwm-toggle {
    display: flex;
}

.bbmwm-menu.bbmwm-mobile-mode {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99998 !important;
    border-top: none !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.bbmwm-menu.bbmwm-mobile-mode.bbmwm-mobile-open {
    transform: translateX(0) !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-mobile-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
    min-height: 70px !important;
    box-sizing: border-box !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-mobile-logo-img {
    display: block !important;
    height: auto !important;
    max-width: 100% !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-mobile-close {
    display: flex !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link:not(.bbmwm-link-btn) {
    padding: 16px 20px !important;
    width: 100% !important;
    justify-content: space-between !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link::after {
    display: none !important;
}

.bbmwm-menu.bbmwm-mobile-mode .bbmwm-item.bbmwm-open .bbmwm-mobile-sub {
    display: block;
}

/* Desktop dropdown panels stay hidden in mobile/off-canvas mode automatically:
   .bbmwm-panel is display:none until JS adds .bbmwm-panel-open/-ready, and JS
   refuses to open panels below the breakpoint (and calls closeAll() on resize). */

/* ============================================================
   Overlay Menu — desktop "MENU" button + full-menu overlay
   ============================================================ */

/* ── MENU button ── */
.bbmwm-ovbtn,
.bbmwm-ovbtn:hover,
.bbmwm-ovbtn:focus,
.bbmwm-ovbtn:focus-visible,
.bbmwm-ovbtn:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.bbmwm-ovbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    margin-left: 14px;
    padding: 12px 16px;
    min-width: 64px;
    background: #b32024;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: background 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bbmwm-ovbtn:hover { opacity: 0.92; }

.bbmwm-ovbtn-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.bbmwm-ovbtn-bars span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.bbmwm-ovbtn-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* Hide MENU button on mobile (off-canvas hamburger takes over) */
.bbmwm-wrap.bbmwm-is-mobile .bbmwm-ovbtn { display: none; }

/* "MENU button only" mode — hide the inline nav items on desktop */
.bbmwm-wrap.bbmwm-ov-only:not(.bbmwm-is-mobile) .bbmwm-menu { display: none; }
.bbmwm-wrap.bbmwm-ov-only .bbmwm-nav { justify-content: flex-end; }

/* ── Overlay backdrop ── */
.bbmwm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 10, 10, 0.45);
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bbmwm-overlay.bbmwm-ov-open {
    opacity: 1;
    pointer-events: auto;
}

body.bbmwm-ov-noscroll { overflow: hidden; }

/* ── Overlay box (the white panel) ── */
/* margin-top is set by frontend.js so the panel opens right BELOW the
   MENU button; the value here is only a fallback. */
.bbmwm-ov-box {
    position: relative;
    background: #ffffff;
    color: #111111;
    max-width: 1140px;
    width: calc(100% - 48px);
    margin: 90px auto 48px;
    padding: 44px 52px 36px;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    transform: translateY(-10px);
    transition: transform 0.2s ease;
}

.bbmwm-overlay.bbmwm-ov-open .bbmwm-ov-box { transform: translateY(0); }

/* ── Close × (always pinned top-RIGHT) ── */
.bbmwm-ov-close,
.bbmwm-ov-close:hover,
.bbmwm-ov-close:focus,
.bbmwm-ov-close:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.bbmwm-overlay .bbmwm-ov-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    float: none !important;
    margin: 0 !important;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s, color 0.15s;
}

.bbmwm-overlay .bbmwm-ov-close:hover { background: #e4e4e4; color: #111; }

/* ── Groups — masonry columns (compact, like the reference design).
   Groups stack tightly one under another inside each column, so a short
   group ("WHY US?") doesn't create a huge empty row like CSS grid does. ── */
.bbmwm-ov-grid {
    display: block;
    columns: 3;
    column-gap: 48px;
}

.bbmwm-ov-box[data-cols="2"] .bbmwm-ov-grid { columns: 2; }
.bbmwm-ov-box[data-cols="3"] .bbmwm-ov-grid { columns: 3; }
.bbmwm-ov-box[data-cols="4"] .bbmwm-ov-grid { columns: 4; }

.bbmwm-ov-group {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin: 0 0 26px;
}

.bbmwm-ov-heading {
    display: block;
    font-family: var(--fl-heading-font-family, var(--fl-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif));
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    margin: 0 0 10px;
    line-height: 1.3;
}

a.bbmwm-ov-heading:hover { text-decoration: underline; }

.bbmwm-ov-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbmwm-ov-links li { margin: 0 0 9px; }
.bbmwm-ov-links li:last-child { margin-bottom: 0; }

.bbmwm-ov-link {
    position: relative;
    display: block;
    padding-left: 16px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.bbmwm-ov-link::before {
    content: '\203A';
    position: absolute;
    left: 0;
    top: -1px;
    font-weight: 800;
    color: #b32024;
}

.bbmwm-ov-link:hover { color: #b32024; }

/* ── CTA button ── */
.bbmwm-ov-cta-group { margin-top: 2px; }

.bbmwm-ov-cta {
    display: inline-block;
    padding: 14px 34px;
    background: #b32024;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.15s, transform 0.15s;
}

.bbmwm-ov-cta:hover { opacity: 0.92; transform: translateY(-1px); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .bbmwm-ov-box { padding: 44px 30px 32px; }
    .bbmwm-ov-grid,
    .bbmwm-ov-box[data-cols="3"] .bbmwm-ov-grid,
    .bbmwm-ov-box[data-cols="4"] .bbmwm-ov-grid { columns: 2; }
}

@media (max-width: 560px) {
    .bbmwm-ov-grid,
    .bbmwm-ov-box[data-cols="2"] .bbmwm-ov-grid,
    .bbmwm-ov-box[data-cols="3"] .bbmwm-ov-grid,
    .bbmwm-ov-box[data-cols="4"] .bbmwm-ov-grid { columns: 1; }
}

/* ── Menu items flagged "Show as Button" ── */

/* Overlay: button inside a links list — no › marker, some breathing room */
.bbmwm-ov-links li.bbmwm-ov-btn-li {
    padding-left: 0;
    margin-top: 12px;
}

/* Smaller button variant used inside dropdown panels + mobile menu */
.bbmwm-ov-cta-sm {
    padding: 10px 22px;
    font-size: 12.5px;
}

/* Style-1 panel: spacing around a button item */
.bbmwm-panel-btn-li {
    margin-top: 6px;
}

/* Mobile off-canvas: give the button its own row spacing */
.bbmwm-mobile-btn-li {
    padding: 10px 0;
}

.bbmwm-mobile-btn-li .bbmwm-ov-cta {
    display: inline-block;
}

/* ── TOP-LEVEL item flagged "Show as Button", inside the mobile drawer ──
   The desktop nav bar keeps its normal link look; only the off-canvas
   drawer turns the item into a real button row. Colors / padding / radius /
   typography are overridden by the module's Style → CTA / Button options
   (see frontend.css.php), so these are plain declarations, not !important. */
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-item.bbmwm-item-btn {
    border-bottom: none !important;
    padding: 16px 20px !important;
    text-align: center !important;
}

.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn,
.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn:hover,
.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn:focus,
.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 70%;
    box-sizing: border-box !important;
    background: #b32024;
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity 0.15s, transform 0.15s;
}

.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn:hover {
    opacity: 0.92;
}

/* No active-underline bar / dropdown caret inside a button row */
.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn::after {
    display: none !important;
}

.bbmwm-mobile-mode .bbmwm-item-btn > .bbmwm-link-btn .bbmwm-indicator {
    display: none !important;
}

/* ── Mobile: neutralize theme link/focus styles leaking into the menu ── */
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link:hover,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link:focus,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link:active,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-mobile-link,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-mobile-link:hover,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-mobile-link:focus {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent;
}

/* Keep the theme's link-blue out of the mobile menu items */
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link:not(.bbmwm-link-btn):focus,
.bbmwm-menu.bbmwm-mobile-mode .bbmwm-link:not(.bbmwm-link-btn):active {
    color: inherit;
}
