/* V110 (V101R2F-01, QA-110-03) -- the ReadyShop product buy box of the REGULAR phone shell stays ABOVE the bottom bar.
   Why: the V49 buy-box rule (Content/v49/pb-v49-shell.css: .pb-buyer-product .pb49-buy.pb48-actionbar[data-pb48-mode="sticky"],
   specificity 0,4,0) won over the V101 R2 lift (Content/v101/pb-v101-shell.css: html[data-pb101-shell="1"] :is(...), 0,3,1), so the
   stuck box sat at the very bottom (inset-block-end 0, z-index 40) UNDER the fixed 64px bottom bar (z-index 50): its buttons hid
   behind the bar and part of the bar looked covered. Here the box gets the SAME lift as every other sticky bar of the shell
   (64px + safe area = the V101 bottom bar), and the safe area is counted ONCE (the bottom bar under it already pads it), so the box
   ends exactly on the top edge of the bar and all five bottom controls stay clickable, on entry and after scrolling.
   Scope: the Regular phone shell only (html[data-pb101-shell="1"] + body[data-pb-choice-mode="regular"], <= 767px, the buy box's
   own container < 600px = exactly where the V49 sticky rule applies). Not matched: Simple (body.pb61s, its buy box has no
   pb48-actionbar), the printer-nav inline mode (the bar is data-pb48-mode="inline" there), .pb-wiz-sticky, .pb-v32-ave-bar.
   Colours, background and border stay the V48 / V49 tokens (Light / Dark / System). */
@media (max-width: 767.98px) {
    @container (max-width: 599.98px) {
        html[data-pb101-shell="1"] body[data-pb-choice-mode="regular"] .pb-buyer-product .pb49-buy.pb48-actionbar[data-pb48-mode="sticky"] {
            inset-block-end: calc(64px + env(safe-area-inset-bottom, 0px));
            padding-block-end: 12px;
            z-index: 40;
        }
    }
}

/* V110 integration (QA run 2026-11-20): a sticky box can only move inside its parent. The box is the last child of the product info
   column (.pb-buyer-pinfo), which ends where the box ends, so the lift above the bottom bar had no room and the box still covered
   the bar on entry. On the Regular phone page the info column is dissolved into the product grid (display: contents; its content
   keeps its order), so the box moves inside the whole product area and ends exactly on the top edge of the bottom bar. The grid
   row gap is replaced by the same space under the gallery so the column reads as before. */
@media (max-width: 767.98px) {
    html[data-pb101-shell="1"] body[data-pb-choice-mode="regular"] .pb-buyer-product .pb-shop-product:has(> .pb-buyer-pinfo > .pb49-buy.pb48-actionbar[data-pb48-mode="sticky"]) { row-gap: 0; }
    html[data-pb101-shell="1"] body[data-pb-choice-mode="regular"] .pb-buyer-product .pb-shop-product:has(> .pb-buyer-pinfo > .pb49-buy.pb48-actionbar[data-pb48-mode="sticky"]) > .pb-buyer-pgallery { margin-block-end: var(--pb-space-5); }
    html[data-pb101-shell="1"] body[data-pb-choice-mode="regular"] .pb-buyer-product .pb-buyer-pinfo:has(> .pb49-buy.pb48-actionbar[data-pb48-mode="sticky"]) { display: contents; }
}
