/* UMagical R5.13 — message / center Explore / cart and top-right Home.
   Applied AFTER R5.12.1 banner stylesheet; does not change media or commerce.
   The opened Explore DIALOG (not just its launcher) is viewport-centered.
*/
.um-shop-top__actions{flex-wrap:nowrap}
.um-shop-top__home{
  flex:0 0 39px;display:inline-flex;align-items:center;justify-content:center;
  width:39px;height:39px;min-width:39px;min-height:39px;
  border:1px solid #bad4d6;border-radius:13px;background:#fffdfb;color:#174957;
  text-decoration:none;-webkit-tap-highlight-color:transparent;
  transition:background .2s ease,color .2s ease;
}
.um-shop-top__home:hover,.um-shop-top__home:focus-visible{background:#e8f4f2;color:#087f91;outline-offset:2px}
.um-shop-top__home:focus-visible{outline:3px solid #f09787}
.um-shop-top__home[aria-current="page"]{border-color:#087f91;color:#087f91;background:#e7f4f3}
.um-shop-top__home .um-halo__icon{width:18px;height:18px}
/* Three direct children; middle item remains Explore on the left rail. */
.um-halo__rail>.um-halo__toggle{order:0}
/* The source order itself is Message, Explore, Cart; no visual reordering. */
/* Override R4/R5 left-anchored and mobile dock-anchored Explore panels. */
.um-halo .um-halo__panel,
.um-halo.is-at-top .um-halo__panel{
  position:fixed;left:50%;top:50%;right:auto;bottom:auto;
  width:min(590px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow:auto;
  transform:translate(-50%,-46%) scale(.97);
}
.um-halo.is-open .um-halo__panel,
.um-halo.is-at-top.is-open .um-halo__panel{
  transform:translate(-50%,-50%) scale(1);
}
@media(max-width:767px){
  .um-halo__bottom{grid-template-columns:repeat(3,minmax(0,1fr))}
  .um-halo__bottom>.um-halo__toggle{grid-column:2}
  .um-shop-top__home{flex-basis:34px;width:34px;height:34px;min-width:34px;min-height:34px;border-radius:10px}
  .um-shop-top__home .um-halo__icon{width:16px;height:16px}
  .um-halo .um-halo__panel,.um-halo.is-at-top .um-halo__panel{
    width:calc(100vw - 20px);
    max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}
@media(max-width:400px){
  /* Keep the actual Home icon at the far right on narrow devices. */
  .um-shop-top__actions{gap:4px}
  .um-shop-top__login small{display:none}
  .um-shop-top__home{flex-basis:32px;width:32px;min-width:32px;height:34px;min-height:34px}
}
@media(max-height:400px){
  .um-halo .um-halo__panel,.um-halo.is-at-top .um-halo__panel{
    max-height:calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}
@media(prefers-reduced-motion:reduce){
  .um-shop-top__home{transition:none}
}
