/* ShopTV UI hardening layer. This stylesheet is deliberately loaded at the end of body,
   after legacy and view-inline styles that used to override the shared navigation. */
:root{--stv-ui-blue:#087cff;--stv-ui-navy:#132b47;--stv-ui-border:#dce7f4;--stv-ui-soft:#f4f8fd}

/* Account menu: proper rows, readable labels and well-sized login/register actions. */
html body .stv-account-menu{position:relative!important;z-index:5000!important;flex:0 0 auto!important;isolation:auto!important}
html body .stv-account-panel,html body .stv-account-panel.is-portaled{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:7px!important;width:min(340px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;min-width:0!important;max-height:calc(100dvh - 150px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:12px!important;margin:0!important;border:1px solid #d9e5f3!important;border-radius:19px!important;background:rgba(255,255,255,.99)!important;box-shadow:0 16px 44px rgba(12,38,74,.22)!important;box-sizing:border-box!important;transform:none!important;animation:none!important;z-index:20000!important}
html body .stv-account-panel .stv-account-public-links{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;align-items:stretch!important;gap:6px!important;width:100%!important;min-width:0!important;margin:4px 0!important;padding:8px 0!important;border-block:1px solid #edf2f8!important}
html body .stv-account-panel .stv-account-public-links>a.stv-account-public-link{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:7px 10px!important;border:1px solid transparent!important;border-radius:12px!important;background:#f6faff!important;color:#294664!important;font-size:13px!important;font-weight:800!important;line-height:1.35!important;text-align:start!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
html body .stv-account-panel .stv-account-public-link .stv-account-link-icon{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;margin:0!important;border-radius:10px!important;background:#eaf4ff!important;color:#0868cf!important;font-size:16px!important;line-height:1!important}
html body .stv-account-panel .stv-account-public-link .stv-account-link-label{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body .stv-account-panel .stv-account-public-link:hover{border-color:#cfe2f7!important;background:#edf6ff!important;color:#0759b9!important}
html body .stv-account-panel .stv-account-action{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px 10px!important;border-radius:12px!important;box-sizing:border-box!important;text-align:start!important;white-space:normal!important;line-height:1.35!important}
html body .stv-account-panel .stv-account-action>span:nth-child(2){flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere!important}
html body .stv-account-panel .stv-account-auth-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin-top:7px!important}
html body .stv-account-panel .stv-account-auth-actions>a{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:8px 9px!important;border-radius:13px!important;line-height:1.25!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
html body .stv-account-panel .stv-account-inline-form{width:100%!important;min-width:0!important;margin:0!important}

/* Stable shared bottom navigation: same white floating dock on buyer/seller/storefront pages. */
@media(max-width:920px){
 html body.store-body .store-header-premium{position:sticky!important;top:0!important;z-index:1100!important;display:block!important;visibility:visible!important;opacity:1!important;background:rgba(255,255,255,.985)!important}
 html body[class] nav.shop-bottom-nav,html body[class] nav.dashboard-shop-bottom-nav,html body[class] nav.storefront-bottom-nav,html body[class] nav.mobile-bottom-nav,html body[class] nav.store-mobile-nav,
 html body[class] .shop-bottom-nav,html body[class] .dashboard-shop-bottom-nav,html body[class] .storefront-bottom-nav,html body[class] .mobile-bottom-nav,html body[class] .store-mobile-nav{
  display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  position:fixed!important;left:50%!important;right:auto!important;inset-inline-start:auto!important;inset-inline-end:auto!important;transform:translateX(-50%)!important;
  bottom:calc(7px + env(safe-area-inset-bottom,0px))!important;width:calc(100vw - 24px)!important;max-width:620px!important;min-width:0!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;justify-content:stretch!important;gap:2px!important;
  margin:0!important;padding:5px 5px calc(5px + env(safe-area-inset-bottom,0px))!important;
  border:1px solid #d4e3f5!important;border-radius:22px!important;background:rgba(255,255,255,.98)!important;color:#758296!important;
  box-shadow:0 10px 30px rgba(12,40,78,.16)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;
  z-index:1500!important;box-sizing:border-box!important;overflow:visible!important;clip-path:none!important
 }
 html body[class] .shop-bottom-nav .bottom-nav-item,html body[class] .dashboard-shop-bottom-nav .bottom-nav-item,html body[class] .storefront-bottom-nav .bottom-nav-item,html body[class] .mobile-bottom-nav .bottom-nav-item,html body[class] .store-mobile-nav .bottom-nav-item{display:flex!important;min-width:0!important;min-height:48px!important;gap:3px!important;padding:4px 1px!important;border-radius:12px!important;box-sizing:border-box!important}
 html body[class] .shop-bottom-nav .bottom-nav-item small,html body[class] .dashboard-shop-bottom-nav .bottom-nav-item small,html body[class] .storefront-bottom-nav .bottom-nav-item small,html body[class] .mobile-bottom-nav .bottom-nav-item small,html body[class] .store-mobile-nav .bottom-nav-item small{display:block!important;max-width:100%!important;font-size:clamp(8px,2.35vw,10px)!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body[class] .shop-bottom-nav .bottom-nav-logo.bottom-nav-reels,html body[class] .dashboard-shop-bottom-nav .bottom-nav-logo.bottom-nav-reels,html body[class] .storefront-bottom-nav .bottom-nav-logo.bottom-nav-reels,html body[class] .mobile-bottom-nav .bottom-nav-logo.bottom-nav-reels,html body[class] .store-mobile-nav .bottom-nav-logo.bottom-nav-reels{display:flex!important;visibility:visible!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin-top:-15px!important;justify-self:center!important;border:2px solid #fff!important;border-radius:17px!important;background:linear-gradient(145deg,#f8fbff,#e8f2ff)!important;box-shadow:0 8px 20px rgba(18,63,125,.19)!important;z-index:2!important}
 html body[class] .bottom-nav-reels-logo{display:block!important;width:42px!important;height:42px!important;object-fit:contain!important}
 body.store-body,body.app-body,body.marketing-body{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
 body.store-body.ai-landing-document{padding-top:var(--stv-ai-fixed-header-height,78px)!important;padding-bottom:calc(180px + env(safe-area-inset-bottom,0px))!important}
 body.store-body.ai-landing-document .store-header-premium{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:1100!important;display:block!important;visibility:visible!important;opacity:1!important;background:rgba(255,255,255,.985)!important;transform:none!important}
 body.store-body.ai-landing-document .public-landing-wrap{position:relative!important;z-index:auto!important;overflow:visible!important;padding-bottom:18px!important}
 body.store-body.ai-landing-document .public-landing-iframe{overflow:visible!important}
 body.store-body.ai-landing-document #shoptv-ai-landing-frame{display:block!important;visibility:visible!important;max-width:100%!important}
 body.store-body.ai-landing-document .ai-landing-shop-strip,body.store-body.ai-landing-document .product-community-section,body.store-body.ai-landing-document .public-order-panel{display:block!important;visibility:visible!important;opacity:1!important}
 body.store-body.ai-landing-document .ai-landing-shop-strip{position:relative!important;z-index:2!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;margin:14px auto!important;width:calc(100% - 24px)!important;max-width:1000px!important;padding:12px!important;border:1px solid #dce7f4!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 20px rgba(16,43,76,.06)!important}
 body.store-body.ai-landing-document .product-community-section{position:relative!important;margin:18px auto!important;width:calc(100% - 24px)!important;max-width:1000px!important;padding:clamp(14px,3vw,24px)!important;border:1px solid #dce7f4!important;border-radius:20px!important;background:#fff!important;box-shadow:0 8px 28px rgba(16,43,76,.06)!important}
 body.store-body.ai-landing-document .product-community-section .community-review-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body.store-body.ai-landing-document .product-community-section .community-reaction{min-width:0!important}
 body.store-body.ai-landing-document .product-community-section textarea,body.store-body.ai-landing-document .product-community-section input{max-width:100%!important;box-sizing:border-box!important}
 body.store-body.ai-landing-document .community-reactions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(68px,1fr))!important;gap:8px!important}
 body.store-body.ai-landing-document .shoptv-ai-buybar{left:12px!important;right:12px!important;bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;z-index:1180!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
 body.store-body.ai-landing-document .shoptv-ai-buybar a{width:100%!important;max-width:620px!important;min-height:50px!important;border-radius:14px!important}
 body.store-body .product-v32-sticky-bar{left:10px!important;right:10px!important;bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;z-index:1180!important}
 /* Chat card occupies the middle/lower safe area; the dock and header remain untouched. */
 html body[class] .shoptv-ai-widget{z-index:1200!important;isolation:isolate!important;contain:none!important;transform:none!important;overflow:visible!important}
 html body[class] .shoptv-ai-widget .ai-widget-launcher{z-index:1201!important}
 html body[class] .shoptv-ai-widget .ai-widget-panel,html body[class] .shoptv-ai-widget.ai-panel-drawer .ai-widget-panel,html body[class] .shoptv-ai-widget.ai-desktop-panel .ai-widget-panel{z-index:1202!important;max-height:calc(100dvh - 190px - env(safe-area-inset-bottom,0px))!important}
}

/* Keep product sections visible and leave safe space for fixed purchase buttons. */
.product-detail-page .product-community-section,.public-landing-wrap .product-community-section{display:block!important;visibility:visible!important;opacity:1!important}
.product-detail-page .product-community-section .community-reactions,.public-landing-wrap .product-community-section .community-reactions{visibility:visible!important}
.product-detail-page .product-extra-content,.public-landing-wrap .product-extra-content{max-width:100%!important}
@media(prefers-reduced-motion:reduce){html body .stv-account-panel,html body .stv-account-public-link,html body .shop-bottom-nav,html body .dashboard-shop-bottom-nav{animation:none!important;transition:none!important}}
