/* Shared safe-area and touch-target fixes, independent of promotions. */
:root { --bp-safe-top:env(safe-area-inset-top,0px);--bp-safe-bottom:env(safe-area-inset-bottom,0px); }
body.is-tma { --bp-safe-top:88px;--bp-safe-bottom:28px; }
/* Inline values on root are the current SDK values; inherit them on body. */
html[style*="--bp-safe-top"] body.is-tma { --bp-safe-top:inherit;--bp-safe-bottom:inherit; }
body .ibtn,body .scr-modal .sheet-head .back { min-width:44px!important;min-height:44px!important;touch-action:manipulation; }
body.is-tma #home-screen .hdr,body.is-tma .menu-header,body.is-tma .orders-header,body.is-tma .prof-header { padding-top:calc(var(--bp-safe-top) + 12px)!important; }
body.is-tma .menu-scr,body.is-tma .orders-scr,body.is-tma #profile-screen .prof-scr { padding-top:0!important; }
body.is-tma .detail-photo .float-top { top:calc(var(--bp-safe-top) + 12px)!important;z-index:6; }
body.is-tma .cart-header,body.is-tma #referral-screen .cart-header { top:0!important;padding-top:calc(var(--bp-safe-top) + 12px)!important;min-height:calc(var(--bp-safe-top) + 76px); }
body.is-tma .cart-scr,body.is-tma #referral-screen .ref-scr { padding-top:calc(var(--bp-safe-top) + 96px)!important; }
body.is-tma .scr-modal .sheet-head,body.is-tma #bp-checkout-modal .sheet-head,body.is-tma #bp-plans-modal .sheet-head { padding-top:calc(var(--bp-safe-top) + 12px)!important; }
body.is-tma .concept-modal .scr-overlay { padding-top:calc(var(--bp-safe-top) + 12px)!important; }
body.is-tma .scr-welcome { padding-top:calc(var(--bp-safe-top) + 16px)!important; }
body.is-tma .bnav { bottom:max(5px,var(--bp-safe-bottom))!important; }
body.is-tma .stick-cta,body.is-tma .stick-detail { bottom:calc(var(--bp-safe-bottom) + 72px)!important; }
body .detail-photo .detail-overlay { bottom:24px; }
body .detail-photo .float-top .ibtn-glass { background:#FFF4DA;color:#3D2B1A;border:1px solid #D9CEBA; }
