/* MAAS V37: existing compact navigation plus scoped footer/search corrections. */
footer .links-menu-77::before {
  content: "";
  display: block;
  width: 70%;
  height: 0;
  margin: 18px auto;
  border-top: 2px solid transparent;
  border-image: linear-gradient(to right, transparent 0%, #c6a56b88 18%, #c6a56b 36%, #f4dfb1 50%, #c6a56b 64%, #c6a56b88 82%, transparent 100%) 1;
  filter: drop-shadow(0 0 2px #c6a56b33);
  pointer-events: none;
}
.maas-mobile-menu-label, .maas-mobile-view-all, .maas-mobile-bottom { display: none; }
footer .maas-footer-whatsapp-line {
  display: inline-flex !important; flex-direction: row !important; align-items: center;
  justify-content: center; gap: 9px; width: fit-content; min-height: 44px;
  padding: 0 !important; color: inherit; text-decoration: none; white-space: nowrap;
}
footer .maas-footer-whatsapp-line::before, footer .maas-footer-whatsapp-line::after,
footer .maas-footer-whatsapp-row::before { content: none !important; display: none !important; }
footer .maas-footer-whatsapp-line .fa-whatsapp { color: #25d366 !important; font-size: 22px; line-height: 1; flex: none; }
footer .maas-footer-whatsapp-number { direction: ltr; unicode-bidi: isolate; }
footer .links-menu-77 li:has(.links-text:empty) { display: none; }
@media (hover: hover) {
  .accordion-menu-19 .j-menu > li > a:hover,
  .maas-mobile-category-menu li > a:hover,
  .mobile-main-menu-wrapper #main-menu li > a:hover {
    background: color-mix(in srgb, var(--maas-steel) 12%, var(--maas-white)) !important;
  }
}
.accordion-menu-19 .j-menu > li > a:focus-visible,
.maas-mobile-category-menu li > a:is(:active, :focus-visible),
.mobile-main-menu-wrapper #main-menu li > a:is(:active, :focus-visible) {
  background: color-mix(in srgb, var(--maas-steel) 12%, var(--maas-white)) !important;
}
@media (max-width: 767px) {
  html.maas-mobile-compact { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  html.maas-mobile-compact body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .maas-mobile-compact .mobile-header .mobile-bar > .menu-trigger { width: 84px; min-width: 84px; flex: 0 0 84px; }
  .maas-mobile-compact .mobile-header .menu-trigger button {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; min-width: 0; min-height: 44px; padding-inline: 4px;
  }
  .maas-mobile-compact .mobile-header .menu-trigger button::before { position: static; transform: none; margin: 0; font-size: 22px; }
  .maas-mobile-compact .mobile-header .menu-trigger button > span:not(.maas-mobile-menu-label) { display: none; }
  .maas-mobile-compact .mobile-header .menu-trigger button > .maas-mobile-menu-label { display: inline !important; font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff; }
  .maas-mobile-compact .mobile-main-menu-container {
    /* Keep the closed drawer rendered so both opening and closing can interpolate. */
    display: block !important; visibility: hidden; pointer-events: none;
    left: 0; right: auto; margin: 0; width: min(88vw, 360px); max-width: calc(100vw - 24px);
    transform: translateX(-100%) !important;
    transition: transform 300ms cubic-bezier(.22,.61,.36,1), visibility 0s linear 300ms;
    max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  [dir="rtl"].maas-mobile-compact .mobile-main-menu-container { left: auto; right: 0; transform: translateX(100%) !important; }
  .maas-mobile-compact.mobile-main-menu-container-open .mobile-main-menu-container { transform: translateX(0) !important; visibility: visible; pointer-events: auto; transition-delay: 0s, 0s; }
  .mobile-main-menu-container .mobile-wrapper-header { background-image: var(--maas-mobile-approved-gradient, var(--maas-canvas)) !important; color: #fff; }
  /* One border-box owns the field; 44px controls fit within its 46px height. */
  .maas-mobile-compact .mobile-search-wrapper {
    width: 100%; max-width: 100%; box-sizing: border-box; height: auto !important; min-height: 0 !important;
    margin: 0 !important; padding: 8px 12px 10px !important; background: transparent;
  }
  .maas-mobile-compact.mobile-header-active .mobile-search-wrapper #search { width: 100%; height: auto !important; min-height: 0 !important; }
  .maas-mobile-compact .mobile-search-wrapper #search > .dropdown-menu {
    position: static; width: 100%; height: auto; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .maas-mobile-compact .mobile-search-wrapper .header-search {
    display: flex; align-items: stretch; width: 100%; height: 46px; min-height: 46px; box-sizing: border-box;
    margin: 0; padding: 0; border: 1px solid var(--maas-border); border-radius: 6px; background: #fff;
  }
  .maas-mobile-compact .mobile-search-wrapper .twitter-typeahead { display: block !important; flex: 1 1 auto; min-width: 0; width: auto !important; height: 44px; }
  .maas-mobile-compact .mobile-search-wrapper #search input { width: 100%; height: 44px !important; min-height: 44px !important; box-sizing: border-box; margin: 0; border: 0; }
  .maas-mobile-compact .mobile-search-wrapper .search-button { position: static !important; inset: auto; flex: 0 0 46px; width: 46px; height: 44px; min-height: 44px; margin: 0; border: 0; border-inline-start: 1px solid var(--maas-border); background: transparent; }
  footer .links-menu-77 > .module-body { display: flex; justify-content: center !important; align-items: center; width: 100%; text-align: center; }
  footer .links-menu-77 > .module-body > li { float: none; width: auto; margin: 0; text-align: center; }
  footer .links-menu-77 > .module-body > li > a { display: inline-flex; justify-content: center; text-align: center; }
  footer .maas-footer-whatsapp-row { justify-content: center !important; width: 100%; }
  .maas-mobile-compact .maas-mobile-category-menu { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
  .maas-mobile-compact .maas-mobile-category-menu > li { display: block; width: 100%; float: none; }
  .maas-mobile-compact .maas-mobile-category-menu > li > a { width: 100%; justify-content: space-between; font-size: 15px; font-weight: 500; }
  .maas-mobile-compact .maas-mobile-category-menu .links-text { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
  .maas-mobile-compact .maas-mobile-category-menu .open-menu { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .maas-mobile-compact .maas-mobile-category-menu .collapse > ul { padding-inline-start: 14px; }
  .maas-mobile-compact .maas-mobile-category-menu .collapse > .j-menu { display: block; }
  .maas-mobile-compact .maas-mobile-category-menu .collapse > .j-menu > li { display: block; width: 100%; }
  .maas-mobile-compact .maas-mobile-category-menu .collapse a { min-height: 44px; display: flex; align-items: center; padding: 10px 16px; }
  .maas-mobile-compact .maas-mobile-quick-link > a { border-top: 1px solid #e3e9ed; }
  .maas-mobile-compact.route-common-home .maas-mobile-hide { display: none !important; }
  .maas-mobile-compact.route-common-home .maas-mobile-products:not(.maas-mobile-products-expanded) > .product-layout:nth-child(n+7) { display: none; }
  .maas-mobile-compact.route-common-home .maas-mobile-view-all {
    display: flex; width: fit-content; min-height: 44px; align-items: center; justify-content: center;
    margin: 10px auto 18px; padding: 9px 20px; border: 1px solid #c4d3de; border-radius: 7px;
    background: #f5f8fb; color: #183c60; font-size: 15px; line-height: 1.5; text-decoration: none;
  }
  .maas-mobile-view-all:focus-visible, .maas-mobile-bottom a:focus-visible, .maas-mobile-bottom button:focus-visible { outline: 2px solid #c6a56b; outline-offset: -3px; }
  .maas-mobile-compact .maas-mobile-bottom {
    position: fixed; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    inset-inline: 0; bottom: 0; z-index: 990; box-sizing: border-box;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 5px 5px calc(5px + env(safe-area-inset-bottom, 0px));
    background: #081622; color: #fff; border-top: 1px solid #ffffff20;
  }
  .maas-mobile-bottom a, .maas-mobile-bottom button {
    display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center;
    min-height: 49px; min-width: 0; padding: 3px 1px; margin: 0; border: 0; border-radius: 5px;
    background: transparent; color: #fff; font: inherit; font-size: 12px; line-height: 1.4; text-decoration: none;
  }
  .maas-mobile-bottom svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .maas-mobile-bottom a:active, .maas-mobile-bottom button:active { background: #ffffff18; }
  .maas-mobile-compact.mobile-overlay .maas-mobile-bottom,
  .maas-mobile-compact.popup-open .maas-mobile-bottom,
  body.modal-open .maas-mobile-bottom,
  body:has(.modal.in, .mfp-wrap, dialog[open], .maas-inquiry-dialog:not([hidden])) .maas-mobile-bottom,
  body:has(input:focus, textarea:focus, select:focus) .maas-mobile-bottom { visibility: hidden; pointer-events: none; }
  .maas-mobile-compact .maas-mobile-legacy-bottom { display: none !important; }
  .maas-mobile-compact .scroll-top { display: none !important; }
  @media (prefers-reduced-motion: reduce) {
    .maas-mobile-compact .mobile-main-menu-container { transition: none; }
  }
}
