/* Zoompri BLUE: hand-written site rules that are not a colour change of a sage sheet (those are the generated
 * css/zp-blue*.css). Loaded last on every page while ZP_BLUE is on (inc/zp-blue.php). Theme tokens only. */

/* ---------- the logo (img/zp-logo.svg, the mark alone where the word does not fit) ---------- */
.zp-h2 .brand .zlogo{display:block;width:auto;height:27px;flex:none}
.zp-h2 .brand .zlogo-m{display:none;height:32px}
@media(min-width:1024px){.zp-h2 .bar .brand .zlogo-f{height:30px}}
.zp-h2 .ftr .brand .zlogo-f{height:32px}
@media(max-width:389.98px){.zp-h2 .bar .brand .zlogo-f{display:none}.zp-h2 .bar .brand .zlogo-m{display:block}}
/* a page without the phone tab bar (the product page) keeps its basket button in the header: the mark alone
   leaves the search box room for its label */
@media(max-width:439.98px){.zp-blue:not(.has-mobile-tabs) .bar .brand .zlogo-f{display:none}.zp-blue:not(.has-mobile-tabs) .bar .brand .zlogo-m{display:block}}

/* ---------- contrast on the light blue (rendered check of all 99 public pages, 2026-11-27) ---------- */
/* "5 offers" under a shop name on the deal page: the price orange measured 4.4:1 on the band; the accent blue passes */
.zp-blue.zp-h2 .so-sal .so-cnt{color:var(--z-acc)}
/* the 01 / 02 / 03 numerals in the closing band of the Sell page: orange on sky blue measured 3.5:1 */
.zp-blue.zp-h2 .zps-info-bl>li>b{color:var(--z-ink)}
/* the seller's order list (Dokan's own list view): its grey (#757575) measured 4.3:1 on the cool white */
.zp-blue .dataviews-view-list__field-value,.zp-blue .dataviews-view-list__field-value>*{color:var(--z-mute)}

/* ---------- keyboard focus on the new home (journey check 2026-11-27: ring under 3:1 or cut off) ---------- */
/* the tile row and the quick-link row scroll sideways, which also clips the ring top and bottom: give it room */
.zp-blue.zp-h2 .y-tiles,.zp-blue.zp-h2 .y-jump{padding-block:6px;margin-block:-6px}
@media(min-width:1024px){.zp-blue.zp-h2 .y-tiles{padding-inline:6px;margin-inline:-6px}}
/* the save heart sits on a photo: a white ring and a navy ring, so one of them shows on any picture */
.zp-blue.zp-h2.zx .zx-save:focus-visible{outline:none}
.zp-blue.zp-h2.zx .zx-save:focus-visible i{box-shadow:0 0 0 2px #fff,0 0 0 5px var(--z-ink)}
/* small deal cards clip their edge, so a ring outside the card is invisible: draw it inside, navy on white */
.zp-blue.zp-h2.zx .zx-th .dc-a:focus-visible::after{outline:3px solid var(--z-ink);outline-offset:-3px;box-shadow:inset 0 0 0 5px #fff}
/* a tile reached by keyboard must come fully into view: snapping pulled the row back and left it half cut */
.zp-blue.zp-h2 .y-tiles:focus-within{scroll-snap-type:none}
.zp-blue.zp-h2 .y-tiles>li{scroll-margin-inline:20px}

/* ---------- home deal cards: price, old price and saving on ONE line wherever the card allows (2026-11-27) ----------
 * The three are sized from the card's own width (container units; --cw = the room inside the card's padding): never
 * above the sizes the home sheet sets, never below a readable floor. The CARD is the container, not its body: the
 * title link's ::after covers the whole card and must keep the card as its positioning box. */
.zp-h2.zx .dc{container-type:inline-size}
.zp-h2.zx .zx-th .dc-pr{--pw:0px;--pm:22px;--sm:12.5px;--cw:calc(100cqw - var(--pw));column-gap:clamp(3px,calc(var(--cw)*.026),6px)}
@media(min-width:1024px){.zp-h2.zx .zx-th .dc-pr{--pm:25px;--sm:13.5px}}
@media(max-width:639.98px){.zp-h2.zx .zx-th .dc-pr{--pw:20px;--pm:25px;--sm:13.5px}}
.zp-h2.zx .zx-th .dc-pr strong{font-size:clamp(18px,calc(var(--cw)*.14),var(--pm))}
.zp-h2.zx .zx-th .dc-pr s{font-size:clamp(11px,calc(var(--cw)*.078),var(--sm))}
.zp-h2.zx .zx-th .dc-sv{padding:0 clamp(4px,calc(var(--cw)*.038),8px);font-size:clamp(10px,calc(var(--cw)*.067),11.5px)}
@media(max-width:1023.98px){
.zp-h2.zx .zx-c .dc-pr{--cw:calc(100cqw - 24px);column-gap:clamp(3px,calc(var(--cw)*.026),8px)}
.zp-h2.zx .zx-c .dc-pr strong{font-size:clamp(18px,calc(var(--cw)*.145),27px)}
.zp-h2.zx .zx-c .dc-pr s{font-size:clamp(11px,calc(var(--cw)*.078),13.5px)}
.zp-h2.zx .zx-c .dc-sv{padding:0 clamp(4px,calc(var(--cw)*.038),9px);font-size:clamp(10px,calc(var(--cw)*.067),12px)}
}

/* PREVIEW ONLY: the upright-tag logo (?zp-logo=upright). Taller file, so these heights keep its letters the size of the installed logo's. */
.zp-h2 .brand .zlogo-f.zlogo-up{height:30.5px}
@media(min-width:1024px){.zp-h2 .bar .brand .zlogo-f.zlogo-up{height:34px}}
.zp-h2 .ftr .brand .zlogo-f.zlogo-up{height:36px}

/* ---------- floating bottom menu: shorter (owner request 2026-11-27) ----------
 * The icons keep their 23px. The round buttons go from 56 to 44px (the smallest comfortable tap size) and the pill's
 * own padding from 6 to 4px, so the menu is 54px tall instead of 70. Everything that left room for the old height
 * (page bottom padding, scroll margin, the shop-message toast) moves down by the same 16px. */
@media(max-width:860px){
.zp-h2 .tabbar{gap:6px;padding:4px}
.zp-h2 .tabbar a{width:44px;height:44px}
.zp-h2 .tabbar .pip{top:0;right:-2px}
body.zp-h2{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.zp-h2 :is(main,footer) :is(a[href],button,input,select,textarea,summary,[tabindex]){scroll-margin-bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media(max-width:559.98px){.zp-h2 .zps-shops-nmsg{bottom:68px}}

/* ---------- home deal tiles on phones: 12px between the top and bottom row (owner pick 2026-11-27, was 8px) ----------
 * Same distance as "All offers" on the product page. Sideways gap stays 8px. Wider screens already have 14px or more. */
@media(max-width:639.98px){.zp-h2.zx .zx-mod-g{row-gap:12px}}

/* ---------- Save badge on deal cards: navy outline in place of red (owner pick 2026-11-27, picture "2. Navy outline") ----------
 * One badge, every page that shows deal cards (home, deals, map, shop pages). The price and the "-40%" tag stay red. */
body.zp-h2 .dc-sv{color:var(--z-ink);border-color:var(--z-ink-a32);background:transparent}

/* ---------- product page: red only on the "% off" tag and the big price (owner pick 2026-11-27, picture "B. Repeats removed") ----------
 * Save badges take the navy outline, the price in the booking box and in the sticky bar goes navy, the arrow disc goes white. */
body.single-product.zp-h2 :is(.hp-s,.p-top) .save{color:var(--z-ink);border-color:var(--z-ink-a32);background:transparent}
body.single-product.zp-h2 :is(.mb-p b,.p-row .amt,.p-row .amt .cur){color:var(--z-ink)}
body.single-product.zp-h2 button.cta .cta-ic{background:#fff;color:var(--z-pri)}

/* ---------- Back button: land on the old spot at once (owner request 2026-11-27) ----------
 * zp-h2.css and zp-h2-home.css set scroll-behavior:smooth on the page. With that on, the browser GLIDES to the remembered
 * position after Back (measured on the home page: about 0.9 s from the top). Off here; links to a spot on the same page
 * keep their glide through the small script in inc/zp-blue.php, and the scripts' own scrollTo calls name their behaviour. */
html.zp-h2-root{scroll-behavior:auto}
