/**
 * StellarXcell visual fixes (t154u published with t156u / t157u) — child-theme override.
 *
 * 1) Place the six primary menu items with a stellarxcellshop.com-like
 *    top-nav proportion on the WordPress global header (#rbb-default-header).
 *    Desktop only. Search, language, socials, Buy, and Call Us are not moved.
 *
 *    Shop reference (viewport ≈ 1615): group starts at 30.1% (x=486),
 *    inter-item gaps ~22px. The group is slightly left of true center.
 *    This replaces the t153u true-center rule and does not use flush
 *    flex-end against Call Us.
 *
 *    #desktop_menu is stretched across the header so Catalog / Product
 *    Introduction mega menus stay full-width (they position against this
 *    container). The six links are inset with padding; only #menu-primary
 *    (not nested mega uls) gets the 22px item gap. pointer-events on the
 *    stretched container are disabled so Call Us stays clickable.
 *
 *    Live six-item group is ~808px wide, wider than the preview stand-in,
 *    so a literal 30.1% start would overlap Call Us below ~1560px:
 *      ≥1560px: padding-left 30.1%;
 *      1280–1559px: padding-right 284px (75 + Call Us ~185 + 24px gap);
 *      1024–1279px: padding-right 224px (15 + 185 + 24).
 *
 * 2) Pack wells stay at the t153u size: max-width 160px on templates
 *    12632 / 14797 / 14798, titles tightened only, 12-tile grids 1922 / 14783
 *    not targeted.
 */
@media (min-width: 1024px) {
  .rbb-default-header .header-bottom {
    position: relative;
  }
  .rbb-default-header .header-bottom > .flex.items-center.justify-between {
    justify-content: flex-end !important;
  }
  .rbb-default-header #desktop_menu.rbb-header-center {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding-left: 30.1%;
    pointer-events: none;
  }
  .rbb-default-header #desktop_menu.rbb-header-center #menu-primary,
  .rbb-default-header #desktop_menu.rbb-header-center .sub-menu,
  .rbb-default-header #desktop_menu.rbb-header-center li,
  .rbb-default-header #desktop_menu.rbb-header-center a {
    pointer-events: auto;
  }
  .rbb-default-header #menu-primary,
  .rbb-default-header #desktop_menu > ul,
  .rbb-default-header #rbb-site-navigation > ul {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 22px !important;
    width: max-content;
    margin-left: 0;
  }
  .rbb-default-header #menu-primary > li,
  .rbb-default-header #desktop_menu > ul > li {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Keep Catalog / Product Introduction megas as wide as the header bar. */
  .rbb-default-header #desktop_menu .sub-menu.children.mega-menu,
  .rbb-default-header #desktop_menu ul.mega-menu {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none;
    margin-left: 0 !important;
    transform: none !important; /* theme uses translateX(-50%) to center on the item; that shifts a full-width mega off-screen once #desktop_menu spans the header */
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .rbb-default-header #desktop_menu.rbb-header-center {
    padding-left: 0;
    justify-content: flex-end;
    padding-right: 224px; /* 15px pad + ~185px Call Us + 24px gap */
  }
  .rbb-default-header #desktop_menu.rbb-header-center #menu-primary,
  .rbb-default-header #desktop_menu.rbb-header-center > ul {
    margin-left: auto;
  }
}
@media (min-width: 1280px) and (max-width: 1559px) {
  .rbb-default-header #desktop_menu.rbb-header-center {
    padding-left: 0;
    justify-content: flex-end;
    padding-right: 284px; /* 75px pad + ~185px Call Us + 24px gap */
  }
  .rbb-default-header #desktop_menu.rbb-header-center #menu-primary,
  .rbb-default-header #desktop_menu.rbb-header-center > ul {
    margin-left: auto;
  }
}

.elementor-12632 .elementor-widget-image,
.elementor-14797 .elementor-widget-image,
.elementor-14798 .elementor-widget-image {
  text-align: center;
}
.elementor-12632 .elementor-widget-image img,
.elementor-14797 .elementor-widget-image img,
.elementor-14798 .elementor-widget-image img {
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Tighten titles only — do not rewrite copy. Prevents column overflow
   when the well is narrower than 200px. */
.elementor-12632 .elementor-widget-heading,
.elementor-14797 .elementor-widget-heading,
.elementor-14798 .elementor-widget-heading {
  max-width: 100%;
}
.elementor-12632 .elementor-heading-title,
.elementor-14797 .elementor-heading-title,
.elementor-14798 .elementor-heading-title {
  font-size: 14px !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
