/* ETOP V2 Stage 93: isolated mobile bottom dock, based on approved HiTop RO reference.
   Applies ONLY to <=991px. No general footer or desktop CSS is changed. */
@media only screen and (max-width:991px) {
  html:not(.etop-search-keyboard-open) body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
  .hitop-mobile-bottom.etop-v2-mobile-dock {
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    align-items:stretch !important;
    position:fixed !important;
    left:0 !important; right:0 !important; bottom:0 !important;
    width:100% !important;
    height:82px !important;
    padding:8px max(7px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(7px,env(safe-area-inset-left,0px)) !important;
    box-sizing:content-box !important;
    border:1px solid #e2e9ed !important;
    border-bottom:0 !important;
    border-radius:23px 23px 0 0 !important;
    background:#fff !important;
    box-shadow:0 -5px 25px rgba(25,54,77,.13) !important;
    z-index:10020 !important;
    overflow:visible !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > a,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:stretch !important;
    min-width:0 !important;
    min-height:54px !important;
    margin:0 !important;
    padding:5px 0 !important;
    gap:6px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#506b7e !important;
    text-decoration:none !important;
    font-size:12px !important;
    line-height:15px !important;
    font-weight:600 !important;
    white-space:nowrap !important;
    -webkit-tap-highlight-color:transparent;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > a > i,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button:not(.etop-dock-search) > i {
    display:block !important;
    font-size:29px !important;
    line-height:31px !important;
    color:#3a6176 !important;
    font-weight:400 !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > .is-active,
  .hitop-mobile-bottom.etop-v2-mobile-dock > .is-active > span:not(.hitop-mobile-nav-badge),
  .hitop-mobile-bottom.etop-v2-mobile-dock > .is-active > i {
    color:#0779b4 !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-home.is-active:after,
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-categories.is-active:after,
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-wishlist.is-active:after,
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-cart.is-active:after {
    content:'';
    display:block;
    position:absolute;
    bottom:6px;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#0879b5;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-search {
    position:relative !important;
    justify-content:flex-end !important;
    gap:6px !important;
    padding-bottom:7px !important;
    overflow:visible !important;
    color:#506b7e !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock .etop-dock-search-icon {
    position:relative !important;
    z-index:1 !important;
    width:62px !important;
    height:62px !important;
    min-height:62px !important;
    margin-top:-29px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:5px solid #fff !important;
    border-radius:50% !important;
    background:linear-gradient(145deg,#ffc932,#f5ac00) !important;
    box-shadow:0 3px 16px rgba(238,174,16,.32) !important;
    box-sizing:border-box !important;
    color:#fff !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock .etop-dock-search-icon i {
    font-size:30px !important;
    line-height:1 !important;
    color:#fff !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-search > span:last-child {
    font-size:12px !important;
    line-height:15px !important;
    color:#506b7e !important;
    font-weight:700 !important;
  }
  /* Preserve the established keyboard behavior: dock must not cover search results. */
  html.etop-search-keyboard-open .hitop-mobile-bottom.etop-v2-mobile-dock {display:none !important;}
}
@media only screen and (max-width:359px) {
  .hitop-mobile-bottom.etop-v2-mobile-dock {height:75px !important;}
  .hitop-mobile-bottom.etop-v2-mobile-dock > a,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button {font-size:10px !important;gap:4px !important;}
  .hitop-mobile-bottom.etop-v2-mobile-dock > a > i,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button:not(.etop-dock-search) > i {font-size:25px !important;}
  .hitop-mobile-bottom.etop-v2-mobile-dock .etop-dock-search-icon {width:55px !important;height:55px !important;min-height:55px !important;margin-top:-27px !important;}
  .hitop-mobile-bottom.etop-v2-mobile-dock .etop-dock-search-icon i {font-size:26px !important;}
}
@media only screen and (min-width:992px) {
  .hitop-mobile-bottom.etop-v2-mobile-dock { display:none !important; }
}

/* ETOP mobile dock: equal, centered slots without content-box overflow. */
@media only screen and (max-width:991px) {
  .hitop-mobile-bottom.etop-v2-mobile-dock {
    box-sizing:border-box !important;
    margin:0 !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    justify-items:stretch !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > a,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button {
    box-sizing:border-box !important;
    width:100% !important; max-width:100% !important;
    min-width:0 !important; padding-left:0 !important; padding-right:0 !important;
    margin:0 !important; text-align:center !important;
    align-items:center !important; justify-content:center !important;
    position:relative !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > a > i,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button:not(.etop-dock-search) > i {
    width:100% !important; text-align:center !important;
    margin-left:auto !important; margin-right:auto !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > a > span,
  .hitop-mobile-bottom.etop-v2-mobile-dock > button > span:not(.etop-dock-search-icon) {
    max-width:100% !important; margin-left:auto !important; margin-right:auto !important;
    text-align:center !important;
  }
  .hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-search {
    justify-content:flex-end !important;
  }
}

/* ETOP V2 Stage 197 — shared mobile dock alignment on ALL storefront routes.
   Affects only the five-slot bottom navigation. Preserve the approved home look,
   search pop-up, keyboard-hide behavior, and every desktop layout. */
@media only screen and (max-width:991px) {
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    justify-items:stretch !important;
    align-items:stretch !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    transform:none !important;
  }
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-home,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-categories,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-wishlist,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-cart {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:32px 20px !important;
    align-content:center !important;
    justify-content:center !important;
    justify-items:center !important;
    align-items:center !important;
    gap:2px !important;
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
    height:100% !important;
    padding:4px 1px !important;
    margin:0 !important;
    text-align:center !important;
    transform:none !important;
    float:none !important;
  }
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-home > i,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-categories > i,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-wishlist > i,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-cart > i {
    box-sizing:border-box !important;
    display:flex !important;
    grid-area:1 / 1 !important;
    align-items:center !important;
    justify-content:center !important;
    justify-self:center !important;
    align-self:center !important;
    width:100% !important;
    height:32px !important;
    min-height:32px !important;
    line-height:32px !important;
    padding:0 !important;
    margin:0 !important;
    position:static !important;
    transform:none !important;
    text-align:center !important;
  }
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-home > span,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-categories > span,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-wishlist > span,
  html body nav.hitop-mobile-bottom.etop-v2-mobile-dock > .etop-dock-cart > span {
    box-sizing:border-box !important;
    display:block !important;
    grid-area:2 / 1 !important;
    justify-self:center !important;
    align-self:center !important;
    width:100% !important;
    max-width:100% !important;
    height:20px !important;
    min-height:20px !important;
    line-height:20px !important;
    padding:0 !important;
    margin:0 !important;
    position:static !important;
    transform:none !important;
    text-align:center !important;
    white-space:nowrap !important;
  }
}
