/* RP design fix 3 (2026-11-29): uniquely versioned, linked from HTML. */

/* 4. Mobile logo on navy header: never show the white JPG box. */
#mobile-header img.logo,
#mobile-header-sticky img.logo,
#mobile-header .logo.img-fluid {
  background: transparent !important;
  background-image: none !important;
  padding-left: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  max-height: 44px !important;
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
}

/* 2. Hamburger, search and other header icons: light on navy. */
#mobile-header .m-nav-btn,
#mobile-header .m-nav-btn i,
#mobile-header .m-nav-btn span,
#mobile-header .col-mobile-btn i,
#mobile-header .col-mobile-btn .fa,
#mobile-header .fa-bars,
#mobile-header .fa-search,
#mobile-header .fa-shopping-bag,
#mobile-header .mobile-bag-icon,
#mobile-header-sticky .m-nav-btn,
#mobile-header-sticky .m-nav-btn i,
#mobile-header-sticky .fa {
  color: #ffffff !important;
  opacity: 1 !important;
}
#mobile-header .cart-products-count,
#mobile-header .cart-products-count-btn {
  color: #041f3c !important;
  background: #ffffff !important;
}
#mobile-header .m-nav-btn span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}

/* 9. Tablet header search: give the field room so the placeholder is not cut. */
@media (max-width: 1024px) {
  .rp-site-header .rp-header-phone strong,
  .rp-header-inner .rp-header-phone strong {
    display: none !important;
  }
  form.rp-site-search,
  form.rp-site-search .input-group {
    flex: 1 1 260px !important;
    min-width: 240px !important;
    max-width: 100% !important;
  }
  #rp-home-search,
  form.rp-site-search input[name="s"] {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 14px !important;
  }
}
@media (max-width: 767px) {
  form.rp-site-search { min-width: 0 !important; }
}

/* 11. Hide empty filter square; style the Filtras button. */
.facated-toggler:empty { display: none !important; width: 0 !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
#rp_pm_filter_toggler,
.filter-button .btn { white-space: nowrap; }

@media (max-width: 767px) {
  #PM_ASBlockOutput_2.rp-filter-open,
  [id^="PM_ASBlockOutput"].rp-filter-open {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10075 !important;
    background: #fff !important;
    overflow: auto !important;
    padding: 64px 16px 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }
  #PM_ASBlockOutput_2.rp-filter-open .card-block,
  [id^="PM_ASBlockOutput"].rp-filter-open .card-block,
  #PM_ASBlockOutput_2.rp-filter-open #PM_ASForm_2,
  #PM_ASBlockOutput_2.rp-filter-open .PM_ASCriterionsGroupList,
  #PM_ASBlockOutput_2.rp-filter-open .PM_ASCriterionsGroup,
  #PM_ASBlockOutput_2.rp-filter-open .PM_ASCriterionsGroupOuter,
  #PM_ASBlockOutput_2.rp-filter-open .PM_ASCriterionGroupColor {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }
  .rp-filter-close {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10076 !important;
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    background: transparent !important;
    color: #041f3c !important;
    font-size: 32px !important;
    line-height: 44px !important;
    cursor: pointer !important;
  }
}

/* 15. Full-width mobile menu below the header. Only when open. */
@media (max-width: 767px) {
  #_mobile_iqitmegamenu-mobile.dropdown-menu:not(.show) {
    display: none !important;
  }
  #_mobile_iqitmegamenu-mobile.dropdown-menu.show {
    display: block !important;
    position: fixed !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    top: 65px !important;
    height: calc(100vh - 65px) !important;
    max-height: calc(100vh - 65px) !important;
    overflow-y: auto !important;
    padding: 12px 20px 32px !important;
    z-index: 10070 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
  button.rp-mobile-menu-close {
    position: fixed !important;
    top: 10px !important;
    right: 8px !important;
    z-index: 10085 !important;
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 44px !important;
    cursor: pointer !important;
    display: none;
  }
  body.rp-mobile-menu-open button.rp-mobile-menu-close {
    display: block !important;
  }
  body.rp-mobile-menu-open #arcontactus,
  body.rp-mobile-menu-open #arcontactus *,
  body.rp-filter-open-body #arcontactus,
  body.rp-filter-open-body #arcontactus * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  body.rp-mobile-menu-open,
  body.rp-filter-open-body {
    overflow: hidden !important;
  }
}

/* 3. Category description: collapsed preview on mobile, text stays in HTML. */
@media (max-width: 767px) {
  .category-description.rp-desc-collapsed {
    max-height: 6.2em;
    overflow: hidden;
    position: relative;
  }
  .category-description.rp-desc-collapsed::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
  }
  .category-description.rp-desc-collapsed img {
    display: none !important;
  }
  .rp-desc-toggle {
    display: inline-block;
    margin: 4px 0 16px;
    padding: 8px 0;
    background: none;
    border: 0;
    color: #b51942;
    font: 600 15px/1.3 Inter, sans-serif;
    cursor: pointer;
    text-decoration: underline;
  }
}
@media (min-width: 768px) {
  .rp-desc-toggle { display: none !important; }
}

/* 16. Suggestions above the hero. */
.autocomplete-suggestions {
  z-index: 10070 !important;
  max-height: 70vh;
  overflow-y: auto;
}

/* Keep contact: one header, native bars gone (belt and braces). */
html body.cms-id-6 .rp-contact-native-bar,
html body.cms-id-6 #rp-contact-native-bar { display: none !important; }
html body.cms-id-6 div#rp-contact-header,
html body.cms-id-6 #rp-contact-header.rp-contact-header-shell { display: block !important; visibility: visible !important; }
html body.cms-id-6 #header,
html body.cms-id-6 #header.rp-contact-theme-header-hidden,
html body.cms-id-6 #header.rp-original-header-hidden { display: none !important; }
