/* r63o — client anti-overlap guard.
   Scope: client visible pages only.
   Pages: #services, #parts, #masters, #myorders, #messages, #cabinet. */

html, body, body #app{
  max-width:100% !important;
  overflow-x:hidden !important;
}

body #app .services-app-page--reference-r62u,
body #app .parts-reference-r61,
body #app .masters-reference-r59,
body #app .masters-page,
body #app .myorders-ref-r62z,
body #app .orders-page-r62z,
body #app [data-page="myorders"],
body #app #myorders-page,
body #app .messages-reference-r58,
body #app .messages-ref-page-r63f,
body #app .cabinet-profile-page-r62u,
body #app .cabinet-level-page-r62v{
  position:relative !important;
  isolation:isolate !important;
  z-index:1 !important;
  overflow-x:hidden !important;
  transform:none !important;
  contain:layout paint !important;
}

body #app .services-app-page--reference-r62u :is(.services-home-head-r62u,.services-home-hero-r62u,.services-fast-grid-r62u,.services-home-block-r62u,.services-home-slider-r62w,.services-home-slider-dots-r62w,.services-home-nearby-r62u,.services-home-trust-r63a),
body #app .parts-reference-r61 :is(.spa-page-hero,.parts-sticky-tools,.catalog-tools,.parts-section-group,.parts-categories-grid,.parts-grid-v2,.parts-summary-card,.svc-active-category--page),
body #app .masters-reference-r59 :is(.spa-page-hero,.masters-sticky-tools,.catalog-tools,.masters-grid,.master-list),
body #app .masters-page :is(.spa-page-hero,.masters-sticky-tools,.catalog-tools,.masters-grid,.master-list),
body #app .myorders-ref-r62z :is(.orders-head-r62z,.orders-search-row-r62z,.orders-tabs-r62z,.orders-layout-r62z,.orders-list-r62z),
body #app .orders-page-r62z :is(.orders-head-r62z,.orders-search-row-r62z,.orders-tabs-r62z,.orders-layout-r62z,.orders-list-r62z),
body #app .messages-reference-r58 :is(.spa-page-hero,.catalog-tools,.msng-sticky-tools,.messages-reference-r58-listmount,.msng-list--page,.msng-empty-cta),
body #app .cabinet-profile-page-r62u :is(section,header,.card,.cabinet-card,.profile-card),
body #app .cabinet-level-page-r62v :is(section,header,.card,.cabinet-card,.profile-card){
  position:relative !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  transform:none !important;
  z-index:auto !important;
  max-width:100% !important;
}

body #app :is(.parts-reference-r61,.masters-reference-r59,.masters-page,.messages-reference-r58,.myorders-ref-r62z,.orders-page-r62z) :is(.catalog-tools,.masters-sticky-tools,.parts-sticky-tools,.msng-sticky-tools,.mobile-tools-icon-row){
  position:relative !important;
  top:auto !important;
  z-index:2 !important;
  margin-top:0 !important;
}

body #app :is(.services-app-page--reference-r62u,.parts-reference-r61,.masters-reference-r59,.masters-page,.myorders-ref-r62z,.orders-page-r62z,.messages-reference-r58,.messages-ref-page-r63f,.cabinet-profile-page-r62u,.cabinet-level-page-r62v) :is(.services-app-tile,.services-fast-card-r62u,.services-app-shop-card,.part-card-v2,.parts-category-card,.master-card,.master-card-v2,.masters-card,[data-master-card],.order-card-r62z,.msng-item,.msng-item--v2,.messages-ref-card-r63f,.card){
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
}

body #app :is(.services-app-page--reference-r62u,.parts-reference-r61,.masters-reference-r59,.masters-page,.myorders-ref-r62z,.orders-page-r62z,.messages-reference-r58,.messages-ref-page-r63f,.cabinet-profile-page-r62u,.cabinet-level-page-r62v) img{
  max-width:100% !important;
  height:auto;
}

body #app :is(.parts-reference-r61,.masters-reference-r59,.masters-page,.myorders-ref-r62z,.orders-page-r62z,.messages-reference-r58,.messages-ref-page-r63f,.cabinet-profile-page-r62u,.cabinet-level-page-r62v) :is(.part-card-v2-foot,.master-actions,.master-card__actions,.order-card-actions-r62z,.messages-ref-support-r63f){
  min-width:0 !important;
  max-width:100% !important;
}

body #app .services-home-r62u .services-home-hero-r62u{ isolation:isolate !important; }
body #app .services-home-r62u .services-home-hero-copy-r62u,
body #app .services-home-r62u .services-home-search-r62u{
  position:relative !important;
  z-index:5 !important;
}
body #app .services-home-r62u .services-home-hero-visual-r63a{
  z-index:1 !important;
  pointer-events:none !important;
}

body #bottom-nav,
body .bottom-nav,
body .bnav{
  position:fixed !important;
  z-index:900 !important;
  max-width:min(430px,100vw) !important;
  overflow:visible !important;
}

body :is(.modal,.modal-backdrop,.modal-overlay,.cmodal,.drawer,#drawer,#messenger-panel,#messenger-overlay,.bottom-sheet,.sheet,.toast,.toast-wrap){
  z-index:1000;
}

@media(max-width:767px){
  body #app .services-app-page--reference-r62u,
  body #app .parts-reference-r61,
  body #app .masters-reference-r59,
  body #app .masters-page,
  body #app .myorders-ref-r62z,
  body #app .orders-page-r62z,
  body #app .messages-reference-r58,
  body #app .messages-ref-page-r63f,
  body #app .cabinet-profile-page-r62u,
  body #app .cabinet-level-page-r62v{
    max-width:430px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:12px !important;
    padding-right:12px !important;
    padding-bottom:calc(var(--bottom-nav-h,72px) + env(safe-area-inset-bottom,0px) + 14px) !important;
  }

  body #app :is(.parts-reference-r61,.masters-reference-r59,.masters-page,.myorders-ref-r62z,.orders-page-r62z,.messages-reference-r58,.messages-ref-page-r63f,.cabinet-profile-page-r62u,.cabinet-level-page-r62v) :is(.parts-categories-grid,.parts-grid-v2,.masters-grid,.master-list,[data-masters-list],.orders-layout-r62z,.orders-list-r62z,.msng-list--page,.messages-ref-list-r63f){
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  body #app :is(.orders-detail-r62z,.orders-side-r62z,.desktop-only,.tablet-desktop-only){
    display:none !important;
  }
}

@media(min-width:768px) and (max-width:1023px){
  body #app .services-app-page--reference-r62u,
  body #app .parts-reference-r61,
  body #app .masters-reference-r59,
  body #app .masters-page,
  body #app .myorders-ref-r62z,
  body #app .orders-page-r62z,
  body #app .messages-reference-r58,
  body #app .messages-ref-page-r63f,
  body #app .cabinet-profile-page-r62u,
  body #app .cabinet-level-page-r62v{
    max-width:760px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:14px !important;
    padding-right:14px !important;
    padding-bottom:calc(var(--bottom-nav-h,78px) + 16px) !important;
  }

  body #app :is(.orders-detail-r62z,.orders-side-r62z){
    display:none !important;
  }

  body #app .services-app-page--reference-r62u .services-app-phone.services-home-r62u{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }
}

@media(min-width:1024px){
  body #app .parts-reference-r61,
  body #app .masters-reference-r59,
  body #app .masters-page,
  body #app .myorders-ref-r62z,
  body #app .orders-page-r62z,
  body #app .messages-reference-r58,
  body #app .messages-ref-page-r63f,
  body #app .cabinet-profile-page-r62u,
  body #app .cabinet-level-page-r62v{
    max-width:1120px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:18px !important;
    padding-right:18px !important;
    padding-bottom:28px !important;
  }

  body #app .services-app-page--reference-r62u{ max-width:none !important; }
  body #app .services-app-page--reference-r62u .services-app-phone.services-home-r62u{ overflow:visible !important; }

  body #app .parts-reference-r61 :is(.parts-grid-v2,.parts-grid-v2--catalog),
  body #app .masters-reference-r59 :is(.masters-grid,.master-list,[data-masters-list]),
  body #app .masters-page :is(.masters-grid,.master-list,[data-masters-list]){
    align-items:stretch !important;
  }
}
