/* ShopTV unified mobile navigation: same white floating dock and central ShopTV mark on every page. */
@media (max-width: 760px) {
  .shop-bottom-nav,
  .dashboard-shop-bottom-nav,
  .storefront-bottom-nav,
  .mobile-bottom-nav,
  .store-mobile-nav,
  body.reels-body .shop-bottom-nav,
  body.store-body .shop-bottom-nav.storefront-bottom-nav {
    position: fixed !important;
    z-index: 1500 !important;
    left: 50% !important;
    right: auto !important;
    inset-inline-start: 50% !important;
    inset-inline-end: auto !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 28px) !important;
    max-width: 520px !important;
    min-height: 66px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border: 1px solid #d6e6f8 !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.97) !important;
    color: #6e7e93 !important;
    box-shadow: 0 10px 28px rgba(4,24,57,.15), 0 2px 8px rgba(4,24,57,.045) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    overflow: visible !important;
  }

  .shop-bottom-nav,
  .dashboard-shop-bottom-nav,
  .storefront-bottom-nav,
  body.reels-body .shop-bottom-nav,
  body.store-body .shop-bottom-nav.storefront-bottom-nav {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 56px minmax(0,1fr) minmax(0,1fr) !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .shop-bottom-nav .bottom-nav-item,
  .dashboard-shop-bottom-nav .bottom-nav-item,
  .storefront-bottom-nav .bottom-nav-item,
  body.reels-body .shop-bottom-nav .bottom-nav-item {
    display: flex !important;
    min-width: 0 !important;
    min-height: 52px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 4px 1px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #78879b !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  .shop-bottom-nav .bottom-nav-item.is-active,
  .dashboard-shop-bottom-nav .bottom-nav-item.is-active,
  .storefront-bottom-nav .bottom-nav-item.is-active,
  body.reels-body .shop-bottom-nav .bottom-nav-item.is-active {
    background: #eaf4ff !important;
    color: #075cc7 !important;
  }

  .shop-bottom-nav .bottom-nav-icon,
  .dashboard-shop-bottom-nav .bottom-nav-icon,
  .storefront-bottom-nav .bottom-nav-icon,
  body.reels-body .shop-bottom-nav .bottom-nav-icon {
    display: grid !important;
    place-items: center !important;
    width: 26px !important;
    height: 25px !important;
    color: currentColor !important;
    font-size: 19px !important;
  }

  .shop-bottom-nav .bottom-nav-icon svg,
  .dashboard-shop-bottom-nav .bottom-nav-icon svg,
  .storefront-bottom-nav .bottom-nav-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .shop-bottom-nav .bottom-nav-item small,
  .dashboard-shop-bottom-nav .bottom-nav-item small,
  .storefront-bottom-nav .bottom-nav-item small,
  body.reels-body .shop-bottom-nav .bottom-nav-item small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: clamp(8px,2.35vw,10px) !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels,
  .dashboard-shop-bottom-nav .bottom-nav-logo.bottom-nav-reels,
  .storefront-bottom-nav .bottom-nav-logo.bottom-nav-reels,
  body.reels-body .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    flex-direction: row !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: -10px auto 0 !important;
    padding: 2px !important;
    border: 2px solid #fff !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg,#fff,#edf6ff) !important;
    color: #087cf5 !important;
    box-shadow: 0 0 0 1px #cfe2f8, 0 7px 18px rgba(5,54,125,.18) !important;
    overflow: visible !important;
    transform: none !important;
    text-decoration: none !important;
  }

  .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels::before,
  .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels::after,
  .dashboard-shop-bottom-nav .bottom-nav-logo.bottom-nav-reels::before,
  .dashboard-shop-bottom-nav .bottom-nav-logo.bottom-nav-reels::after,
  .storefront-bottom-nav .bottom-nav-logo.bottom-nav-reels::before,
  .storefront-bottom-nav .bottom-nav-logo.bottom-nav-reels::after,
  .bottom-nav-logo-label,
  .bottom-nav-reels-play {
    display: none !important;
    content: none !important;
    animation: none !important;
  }

  .shop-bottom-nav .bottom-nav-reels-logo,
  .dashboard-shop-bottom-nav .bottom-nav-reels-logo,
  .storefront-bottom-nav .bottom-nav-reels-logo,
  body.reels-body .shop-bottom-nav .bottom-nav-reels-logo {
    display: block !important;
    width: 47px !important;
    height: 47px !important;
    max-width: 47px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .marketing-body:not(.reels-body),
  .app-body,
  .store-body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)) !important;
  }
}

@media (max-width: 370px) {
  .shop-bottom-nav,
  .dashboard-shop-bottom-nav,
  .storefront-bottom-nav,
  body.reels-body .shop-bottom-nav {
    width: calc(100% - 18px) !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 49px minmax(0,1fr) minmax(0,1fr) !important;
    padding-inline: 4px !important;
  }
  .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels,
  .dashboard-shop-bottom-nav .bottom-nav-logo.bottom-nav-reels,
  .storefront-bottom-nav .bottom-nav-logo.bottom-nav-reels,
  body.reels-body .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels {
    width: 49px !important;
    min-width: 49px !important;
    height: 49px !important;
    min-height: 49px !important;
  }
  .shop-bottom-nav .bottom-nav-reels-logo,
  .dashboard-shop-bottom-nav .bottom-nav-reels-logo,
  .storefront-bottom-nav .bottom-nav-reels-logo,
  body.reels-body .shop-bottom-nav .bottom-nav-reels-logo {
    width: 43px !important;
    height: 43px !important;
    max-width: 43px !important;
  }
}

/* Reel follow confirmations are lightweight overlays; they never take space away from the video. */
body.reels-body main > .alert {
  position: fixed !important;
  z-index: 1600 !important;
  top: calc(var(--stv-reels-header-h,70px) + 10px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%,-8px) !important;
  width: min(390px,calc(100vw - 28px)) !important;
  max-height: 24vh !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #dbe8f7 !important;
  border-radius: 15px !important;
  box-sizing: border-box !important;
  box-shadow: 0 14px 36px rgba(5,24,50,.25) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  opacity: 1;
  animation: reelsToastIn .22s ease-out both;
}
body.reels-body main > .alert.is-dismissing {
  opacity: 0 !important;
  transform: translate(-50%,-12px) !important;
  transition: opacity .22s ease, transform .22s ease !important;
}
.reels-feedback-toast {
  position: fixed !important;
  z-index: 1601 !important;
  top: calc(var(--stv-reels-header-h,70px) + 10px) !important;
  left: 50% !important;
  width: min(350px,calc(100vw - 30px)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border: 1px solid #d9e7f7 !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.98) !important;
  color: #183452 !important;
  box-shadow: 0 14px 36px rgba(5,24,50,.25) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%,-8px) !important;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}
.reels-feedback-toast.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%,0) !important;
}
.reels-feedback-toast__icon {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #e8f4ff !important;
  color: #0869c8 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}
.reels-feedback-toast__text { display:block !important; min-width:0 !important; }
@keyframes reelsToastIn { from {opacity:0;transform:translate(-50%,-8px)} to {opacity:1;transform:translate(-50%,0)} }

/* Clean, consistent outline icons for Reels actions. */
body.reels-body .reel-action-button {
  min-width: 44px !important;
  gap: 4px !important;
  text-decoration: none !important;
}
body.reels-body .reel-action-symbol {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: #174d7e !important;
  box-shadow: 0 5px 16px rgba(3,20,42,.2) !important;
  font-size: 18px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: transform .16s ease, background .16s ease, color .16s ease !important;
}
body.reels-body .reel-action-symbol svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body.reels-body .reel-action-button.is-liked .reel-action-symbol {
  border-color: #ffd7e2 !important;
  background: #fff3f7 !important;
  color: #e5225f !important;
  box-shadow: 0 0 0 3px rgba(229,34,95,.1),0 5px 16px rgba(3,20,42,.18) !important;
}
body.reels-body .reel-action-button.is-liked .reel-action-symbol svg path {
  fill: #e5225f !important;
  stroke: #e5225f !important;
}
body.reels-body .reel-action-button small {
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.75) !important;
}
body.reels-body .reel-action-button:active .reel-action-symbol { transform: scale(.94) !important; }

/* French follow CTA is compact and unmistakable. */
body.reels-body .reel-follow-button {
  min-height: 34px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #075eb9 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: 0 5px 15px rgba(0,0,0,.16) !important;
}
body.reels-body .reel-follow-button.is-following {
  background: #eaf4ff !important;
  border-color: #c9e0f8 !important;
  color: #315777 !important;
  box-shadow: none !important;
}
body.reels-body .reel-follow-button:disabled { opacity: .7 !important; }
body.reels-body .reel-product-info {
  box-sizing: border-box !important;
  max-height: min(72%,560px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-bottom: 12px !important;
  scrollbar-width: thin !important;
}
body.reels-body .reel-buy-button { flex-shrink: 0 !important; margin-bottom: 1px !important; }
@media(prefers-reduced-motion:reduce) {
  .reels-feedback-toast,
  body.reels-body main > .alert,
  body.reels-body .reel-action-symbol { animation: none !important; transition: none !important; }
}
body.reels-body .reel-buy-arrow { color:#fff !important; }
body.reels-body .reel-buy-arrow svg {
  display:block !important;
  width:17px !important;
  height:17px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.1 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.reels-feedback-toast.is-error .reels-feedback-toast__icon { background:#fff0f2 !important; color:#ad2340 !important; }
@media (max-width: 760px) {
  .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels.is-active,
  .dashboard-shop-bottom-nav .bottom-nav-logo.bottom-nav-reels.is-active,
  .storefront-bottom-nav .bottom-nav-logo.bottom-nav-reels.is-active,
  body.reels-body .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels.is-active {
    border: 2px solid #fff !important;
    background: linear-gradient(145deg,#fff,#edf6ff) !important;
    box-shadow: 0 0 0 2px rgba(8,124,255,.09),0 7px 18px rgba(5,54,125,.18) !important;
  }
}
