/* Shared, scoped page navigation. Existing close controls are unchanged. */
.buyit-page-back-row{display:flex;justify-content:flex-start;direction:rtl;grid-column:1/-1;width:max-content;max-width:100%;margin:0 0 4px;position:relative;z-index:2;flex:none;box-sizing:border-box}
.buyit-page-back-row[hidden],#start-screen .buyit-page-back-row,#app[data-view="welcome"] main>.buyit-page-back-row{display:none!important}
button.buyit-page-back,a.buyit-page-back{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;width:auto!important;min-width:68px;height:34px!important;min-height:34px!important;padding:5px 11px!important;border:1px solid #2d68d8!important;border-radius:999px!important;background:#eaf2ff!important;color:#164eaf!important;box-shadow:inset 0 1px 0 #ffffff38,0 2px 7px #17385e14;font:700 14px/1.2 Heebo,Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap;transform:none;filter:none;backdrop-filter:blur(12px) saturate(150%);-webkit-backdrop-filter:blur(12px) saturate(150%)}
.buyit-page-back svg{width:17px!important;height:17px!important;flex:none}
.buyit-page-back:hover{background:#dce9ff!important}
.buyit-page-back:focus-visible{outline:3px solid #87b4ff;outline-offset:3px}
html[dir=ltr] .buyit-page-back-row{direction:ltr}
html[dir=ltr] .buyit-page-back svg{transform:scaleX(-1)}
.seller-page>.buyit-page-back-row{padding-inline:4px;margin-bottom:4px}
/* The mobile dock passes map gestures through; its Back control must receive taps. */
.smart-dock>.buyit-page-back-row{margin-bottom:4px;pointer-events:auto}
#reels-map-back.buyit-page-back{min-width:68px;z-index:45}
body>.buyit-page-back-row{padding:6px 12px;margin:0}
.start-layout>.buyit-page-back-row{margin:0;align-self:start}
@media(max-width:760px){.buyit-page-back-row{margin-bottom:4px}.buyit-page-back-row .buyit-page-back{font-size:14px}.social-page main>.buyit-page-back-row{margin-bottom:4px}}

body.browse-mode #app .has-reels-return .smart-dock{right:94px;max-width:calc(100% - 110px)}
.modal>.buyit-page-back-row[data-back-placement=detail]{padding-inline-end:48px}

.buyit-page-back>span{white-space:nowrap;overflow-wrap:normal;word-break:normal}

/* Keep publishing navigation inside the content surface. */
.seller-page .buyit-page-back-row[data-back-placement=seller]{margin:0 0 8px;padding:0}
@media(max-width:760px){
 body.browse-mode #app .explore-scene .smart-dock{top:calc(8px + env(safe-area-inset-top))}
 body #app .seller-page{padding-top:0}
 body #app .seller-page>.seller-content{padding-top:0}
 body #app .seller-page .seller-intake{padding-top:12px}
}
