/* 1.1.327 owner's picture: visiting another shop inside a shop app (phones). The shop's header sits on the green
   Profile background with its logo, name ✓, Followers / Following / Posts and caption; the bottom bar keeps Home,
   Category and the way back; Cart is a round delivery button with the count above the bar. */
.visit-cart,.visit-verified,.visit-stats,.visit-caption{display:none}
@media (max-width:1023px){
 /* 1.1.629 owner (iPhone Home Screen app: "ဝါးနေသေးတယ်"). iOS 26 draws page content that scrolls past the top edge under the clock and blurs it; a fixed cover outside the page is not drawn there any more.
    So in the installed iPhone app (visit-shop.js adds html.vb-scroll) a visited shop scrolls INSIDE the page: the html element stays put and body is the scroller, so content is clipped at the top of the
    page and never goes under the clock. Page locks that set overflow:hidden on body for dialogs / sheets are repeated below because this rule is stronger than they are. */
 body.visiting-shop::before{display:none}
 html.vb-scroll{height:100%;overflow:hidden}
 html.vb-scroll body.visiting-shop{height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
 html.vb-scroll body.visiting-shop.gallery-open,html.vb-scroll body.visiting-shop.install-guide-open,html.vb-scroll body.visiting-shop.phone-product-open,html.vb-scroll body.visiting-shop.user-show-open,html.vb-scroll body.visiting-shop.searching.excel-sheet-mode,html.vb-scroll.photo-scanner-open body.visiting-shop,html.vb-scroll.pe-open body.visiting-shop,html.vb-scroll body.visiting-shop:has(.ai-help[open],#nc-sheet[open],#profile-sheet[open],#shops-sheet[open],#shops-photo-dialog[open],.speed-sheet[open]){overflow:hidden!important}
 body.visiting-shop .home-profile-banner{display:flex!important;align-items:center;gap:14px;min-height:0;padding:max(26px,env(safe-area-inset-top)) 14px 20px!important;background:#f4faf2 url("/images/profile-cover.svg?v=2") center top/cover no-repeat!important;border-radius:0 0 26px 26px;box-shadow:none}
 body.visiting-shop .home-profile-banner .nc-buttons,body.visiting-shop .home-profile-banner .net-speed,body.visiting-shop .home-profile-banner [data-site-brand-tagline]{display:none!important}
 body.visiting-shop .home-profile-banner .settings-profile-avatar{flex:0 0 78px;width:78px;height:78px;border:3px solid #1f9a3e;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #ffffffcc,0 0 18px 4px #b8f3a066,0 6px 16px #14532d29;overflow:hidden}
 body.visiting-shop .home-profile-banner .settings-profile-avatar img{width:100%;height:100%;object-fit:contain}
 body.visiting-shop .home-profile-banner .settings-profile-copy{display:grid;justify-items:start;gap:7px;min-width:0;padding:0!important}
 body.visiting-shop .home-profile-banner .settings-profile-copy>strong{display:flex;align-items:center;gap:7px;max-width:100%;color:#173a24!important;font-size:22px;font-weight:850;line-height:1.15;text-shadow:none!important}
 body.visiting-shop .home-profile-banner .settings-profile-copy>strong [data-site-brand-name]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.visiting-shop .home-profile-banner .settings-verified{display:none!important}
 body.visiting-shop .home-profile-banner .visit-verified{display:inline-grid!important;flex:0 0 22px;width:22px;height:22px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
 body.visiting-shop .home-profile-banner .visit-verified svg{width:22px;height:22px;fill:#22a23c}
 body.visiting-shop .home-profile-banner .visit-verified .visit-tick{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
 .visit-stats,.visit-caption{display:flex;align-items:center;max-width:100%;border-radius:999px;background:#ffffffd9;box-shadow:0 2px 8px #14532d14;color:#1f2f25;font-size:12px;font-weight:600;line-height:1.2}
 .visit-stats[hidden],.visit-caption[hidden]{display:none!important}
 .visit-stats{gap:0;padding:5px 2px;font-size:11.5px}
 .visit-stats>span{display:flex;align-items:center;gap:3px;padding:0 6px;white-space:nowrap}
 .visit-stats>span+span{border-left:1px solid #d6e6d6}
 .visit-stats svg{flex:0 0 15px;width:15px;height:15px;fill:none;stroke:#1b8a35;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .visit-stats b{font-weight:800}
 .visit-caption{gap:8px;padding:6px 12px;font-size:12.5px}
 .visit-caption>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .visit-caption svg{flex:0 0 16px;width:16px;height:16px;fill:#1b8a35}
 /* Bottom bar: Home · Category · the visited shop's own Profile (its logo in a white circle). */
 body.visiting-shop .mobile-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.visiting-shop .mobile-bottom-nav [data-store-action="open-cart"]{display:none!important}
 body.visiting-shop .mobile-bottom-nav .visit-profile>small{display:none}
 body.visiting-shop .mobile-bottom-nav .visit-profile>span{background:none!important;box-shadow:none!important}
 .visit-profile-logo{display:block;width:52px;height:52px;border-radius:50%;object-fit:contain;background:#fff;box-shadow:0 4px 14px #10201833}
 body.visiting-shop .visit-cart,body.buyer-view .visit-cart{position:fixed;z-index:8;right:14px;bottom:calc(92px + env(safe-area-inset-bottom));display:grid;place-items:center;width:56px;height:56px;padding:0;border:2.5px solid #1f9a3e;border-radius:50%;background:#fff;box-shadow:0 6px 16px #14532d33;cursor:pointer}
 body.visiting-shop .visit-cart img,body.buyer-view .visit-cart img{width:44px;height:44px;object-fit:contain}
 .visit-cart-count{position:absolute;top:-7px;right:-6px;display:grid;min-width:22px;height:22px;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#ef4444;color:#fff;font:800 12px/1 system-ui,sans-serif}
 .visit-cart-count[hidden]{display:none}

 /* Owner's picture, checked side by side (follow-up): 3 equal bottom buttons, green filter + 🔍 in the search,
    count pill and green line under the catalog title, round filter pills with icons and ⌄, red ⚡ promotion pill. */
 html body.visiting-shop .mobile-bottom-nav.liquid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-columns:auto!important}
 body.visiting-shop .search-filter-button{width:50px!important;height:50px!important;border:0!important;border-radius:14px!important;background:linear-gradient(180deg,#24a33e,#127a2a)!important;color:#fff!important;box-shadow:0 4px 12px #127a2a40!important}
 body.visiting-shop .search-filter-button svg{stroke:#fff}
 body.visiting-shop .mobile-search .search-pill-icon{display:block!important;flex:0 0 26px;width:26px;height:26px;margin-left:4px;color:#1d2a21}
 body.visiting-shop .mobile-search .search-pill{min-height:48px!important;height:48px;border-radius:18px!important}
 body.visiting-shop .mobile-search .search-pill #search{font-size:15px}
 body.visiting-shop #catalog .section-head h2{position:relative;padding-bottom:10px}
 body.visiting-shop #catalog .section-head h2::after{content:"";position:absolute;left:0;bottom:0;width:58px;height:5px;border-radius:3px;background:#1f9a3e}
 body.visiting-shop #product-total{align-self:flex-start;padding:5px 12px;border-radius:999px;background:#e3f3df;color:#14241a!important;font-weight:700}
 body.visiting-shop #catalog .filters select{-webkit-appearance:none;appearance:none;height:40px;padding:0 36px 0 44px;border:1.5px solid #d6e8d6;border-radius:999px;background:#fff no-repeat;background-position:14px 50%,calc(100% - 14px) 50%;background-size:20px 20px,16px 16px;box-shadow:0 4px 14px #14532d14;color:#14241a;font-size:14.5px;font-weight:600}
 body.visiting-shop #catalog .filters #category{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 8l10 5 10-5z' fill='%231a7a2e'/%3E%3Cpath d='m2 12 10 5 10-5M2 16l10 5 10-5' fill='none' stroke='%231a7a2e' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
 body.visiting-shop #catalog .filters #sort{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4 6 6 6 12a6 6 0 0 1-12 0c0-3 2-5 3-6 0 2 1 3 2 3 0-4-1-6 1-9z' fill='%231a7a2e'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
 body.visiting-shop .product .promo-badge{left:50%;right:auto;top:12px;width:auto;transform:translateX(-50%);padding:5px 14px!important;border-radius:999px!important;background:#f23a2b!important;box-shadow:0 4px 12px #f23a2b4d;font-size:13.5px}
 body.visiting-shop .home-profile-banner{background:linear-gradient(180deg,#ffffffd9 0,#ffffff00 46%),#f4faf2 url("/images/profile-cover.svg?v=2") center top/cover no-repeat!important}
 body.visiting-shop .home-promo-copy{padding-right:14px;margin-right:2px;border-right:1.5px solid #ffffff73}
 body.visiting-shop .home-promo-gift{display:block!important;font-size:46px;margin-left:-2px}
 /* 1.1.328 owner: the visited shop's Profile has no ☰ menu; the search keeps only products (no Excel rows). */
 body.visiting-shop #profile-menu-open{display:none!important}
 body.visiting-shop .excel-results{display:none!important}
}
/* Visiting another shop uses the original delivery driver Cart instead of the assistant card. */
body.visiting-shop:not(.owner-view) .ai-help-button,body.buyer-view .ai-help-button{display:none!important}
@media(min-width:1024px){
 body.visiting-shop .visit-cart,body.buyer-view .visit-cart{position:fixed;z-index:8;right:28px;bottom:28px;display:grid;place-items:center;width:56px;height:56px;padding:0;border:2.5px solid #1f9a3e;border-radius:50%;background:#fff;box-shadow:0 6px 16px #14532d33;cursor:pointer}
 body.visiting-shop .visit-cart img,body.buyer-view .visit-cart img{width:44px;height:44px;object-fit:contain}
 body.visiting-shop .visit-cart-count,body.buyer-view .visit-cart-count{position:absolute;top:-7px;right:-6px;display:grid;min-width:22px;height:22px;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#ef4444;color:#fff;font:800 12px/1 system-ui,sans-serif}
 body.visiting-shop .visit-cart-count[hidden],body.buyer-view .visit-cart-count[hidden]{display:none}
}

/* 1.1.380 owner: visiting another shop on the phone - Profile (left) and Home; nothing above the search bar on Home.
   1.1.602 owner ("Category promotion 2ခု ပြန်ထည့်ပေး"): Category and Promotion are back in the bar. The tabs share the row equally
   (3 without promotions, 4 with); the Promotion tab is hidden by the store itself while the shop has no promotion. */
@media (max-width:1023px){
 html body.visiting-shop .mobile-bottom-nav.liquid,html body.visiting-shop .mobile-bottom-nav:not(.liquid),html body.visiting-shop.no-promotions .mobile-bottom-nav.liquid,html body.visiting-shop.no-promotions .mobile-bottom-nav:not(.liquid){grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important}
 body.visiting-shop.no-promotions .mobile-bottom-nav [data-store-view="promotion"]{display:none!important}
 body.visiting-shop:not(.non-home-view) .home-profile-banner{display:none!important}
 body.visiting-shop:not(.non-home-view) .home-navigation{padding-top:max(14px,env(safe-area-inset-top))!important}
}
/* 1.1.458: in the app's own shop a signed-in buyer keeps the ☰ menu (Settings → Switch account / sign out). */
body.visiting-shop.visiting-home #profile-menu-open{display:grid!important}

/* 1.1.499 owner: Skyler and the delivery cart never show together - the owner has Skyler only. */
body.owner-view .visit-cart{display:none!important}

/* 1.1.501 owner: only two designs. Skyler belongs to the OWNER design alone: on a shop page it stays hidden until the page knows the owner is here (no mix while loading or offline). */
body.shop-page:not(.design-owner) .ai-help-button{display:none!important}
body.design-owner .visit-cart{display:none!important}

/* 1.1.603 / 1.1.616 owner (Messenger opened from Facebook shows a plain "◀ Facebook" at the very top-left, under the clock): a visited shop shows the same plain label -
   a solid ◀ and "SkyShopMM" in the system text colour, medium weight, flush at the left edge, no chip, no colour.
   1.1.628 owner (iPhone screenshot: "ထိပ်ပိုင်း မဝါးခိုင်းပဲ ဝါးထားတယ်"): the label sat in the first 26 px under the status bar. On a phone the system draws a fading blur over the
   top of the page there (status-bar edge), so the word came out blurred and washed out, and its cream strip (a copy of the page colour taken too early) made a visible smudge.
   Now it is ONE row in the page flow, transparent (the page colour shows through, nothing to mismatch), and the word starts 28 px below the status area, where the system blur has ended.
   The row is an ordinary part of the page: it never hangs over the content below it. No fixed band, no measuring. */
.visit-back-lite{display:none}
@media (max-width:850px){
 body.visiting-shop .visit-back-lite{display:flex;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;height:50px;padding:28px 11px 0;background:none}
 body.visiting-shop .visit-back-lite a{pointer-events:auto;position:relative;display:inline-flex;align-items:center;gap:4px;height:16px;padding:0;color:#000;font:500 11.5px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Segoe UI",Roboto,system-ui,sans-serif;letter-spacing:.1px;text-decoration:none;-webkit-tap-highlight-color:transparent}
 body.visiting-shop .visit-back-lite a::after{content:"";position:absolute;inset:-10px -16px -8px -11px}
 body.visiting-shop .visit-back-lite svg{flex:none;width:8px;height:10px;fill:currentColor;stroke:currentColor;stroke-width:1.2;stroke-linejoin:round}
}
:root[data-theme="dark"] body.visiting-shop .visit-back-lite a{color:#fff}
