/* Botenz influencers, browser side (plan v2, package P4B): what influencer.js draws for an influencer's visitor.
   - the quiet bar under the site's header (#bzi-bar) and the room it stands in;
   - the arrival card (#bzi-card, a <dialog>: a sheet from the bottom on a phone, a small centred card from 768 px);
   - her name under the prices of the shop's cards (.bzi-cap), her tag on the product page's one-time price (.bzi-tag)
     and her name on the 10% coupon's chip (.bzi-chip).
   Nothing here matches on a regular visitor's page: every rule starts from an element the script creates, from the
   chip the server prints for her visitor (.bz-inf-chip), or from html.bz-inf, the class the head snippet of
   botenz-influencers.php sets for a marked visitor before the first paint.
   Every class is prefixed "bzi-". An id outranks the theme's rules for buttons, links and headings (Hello's #c36 border,
   focus and hover colours); inside the card `all:unset` clears whatever the theme and the Elementor kit add. */

/* --bzi-css tells the script that this sheet has arrived (it draws nothing unstyled). --bzi-h is the bar's height:
   two lines on a phone, one line from 768 px. */
html.bz-inf{--bzi-css:1;--bzi-h:48px}
@media (min-width:768px){html.bz-inf{--bzi-h:40px}}

/* ---------- the bar's room ----------
   The site's header is a fixed strip (Elementor's sticky .header-area, 80 px, z-index 999) inside a static <header>.
   The bar hangs under that strip and the header keeps a band of the bar's height under it, so the page starts under
   the bar and the fixed strip itself never moves. The band is green from the first paint (before the script has
   drawn the bar over it), so nothing jumps when the bar arrives. Pages without this header (the checkout) get no bar. */
html.bz-inf .elementor-location-header{padding-bottom:var(--bzi-h);background-image:linear-gradient(#314B1C,#314B1C);background-size:100% var(--bzi-h);background-position:0 100%;background-repeat:no-repeat}
/* A page whose first block lies behind the header (the phone's product page: the gallery's green ground is pulled up
   under the transparent header): a band under the header would leave a strip of bare page above that block. The script
   sets html.bzi-over there and puts the room inside the block: .bzi-room is its first child, as high as the bar. */
html.bz-inf.bzi-over .elementor-location-header{padding-bottom:0;background-image:none}
.bzi-room{display:block;flex:none;box-sizing:border-box;width:100%;height:var(--bzi-h,48px);min-height:0;margin:0;padding:0;border:0;background:none;pointer-events:none}

/* Two places stick under the 80 px header and must now stick under the bar too: the computer's purchase card
   (product-page-preview.css, r161) and the recipe's side column (botenz-recipes/recipes.css). */
@media (min-width:1025px) and (min-height:640px){
  html.bz-inf body.bz-d-pdp.single-product.bzsp-product-design-preview.bzsp-desktop-ready .bzsp-pdp-summary{top:calc(96px + var(--bzi-h))}
}
@media (min-width:1024px){html.bz-inf .bzr-side{top:calc(100px + var(--bzi-h))}}

/* ---------- the quiet bar ----------
   z-index 998: under the header strip (999, so the header's menus open over the bar) and under everything that opens
   over the page (the side cart, the stories, popups; the jar picker is a modal <dialog> in the top layer). The script
   sets `top` to the header strip's lower edge and keeps it there. */
#bzi-bar{position:fixed;top:0;left:0;right:0;z-index:998;box-sizing:border-box;height:var(--bzi-h,48px);margin:0;padding:0 20px;border:0;
  display:flex;align-items:center;justify-content:center;gap:10px;overflow:hidden;background:#314B1C;color:#F4F1E6;direction:rtl;text-align:right;
  font:400 14px/18px Heebo,Arial,sans-serif;letter-spacing:0;text-transform:none;-webkit-font-smoothing:antialiased}
#bzi-bar[hidden]{display:none}
/* a product page's dark top behind the transparent header: no ground until the page is scrolled (the script sets .bzi-clear) */
#bzi-bar{transition:background-color .18s ease}
#bzi-bar.bzi-clear{background-color:transparent}
@media (prefers-reduced-motion:reduce){#bzi-bar{transition:none}}
#bzi-bar .bzi-ic{flex:none;display:block;width:21px;height:21px;color:#E8C98F}
#bzi-bar .bzi-ic svg{display:block;width:100%;height:100%}
#bzi-bar .bzi-tx{display:flex;flex-direction:column;min-width:0}
#bzi-bar .bzi-l1,#bzi-bar .bzi-l2{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#bzi-bar .bzi-l1{font-size:14px;line-height:18px;font-weight:700;color:#F4F1E6}
#bzi-bar .bzi-l2{font-size:12.5px;line-height:17px;font-weight:400;color:rgba(244,241,230,.9)}
#bzi-bar .bzi-sep{display:none}
@media (min-width:768px){
  #bzi-bar{padding:0 24px;gap:9px;font-size:15px;line-height:20px}
  #bzi-bar .bzi-ic{width:19px;height:19px}
  #bzi-bar .bzi-tx{flex-direction:row;align-items:center;gap:9px}
  #bzi-bar .bzi-l1{font-size:15px;line-height:20px}
  #bzi-bar .bzi-l2{flex:none;font-size:15px;line-height:20px;color:rgba(244,241,230,.92)}
  #bzi-bar .bzi-sep{display:block;flex:none;font-size:15px;line-height:20px;color:rgba(244,241,230,.55)}
}

/* ---------- the arrival card ---------- */
#bzi-card{position:fixed;top:auto;right:0;bottom:0;left:0;z-index:2147483646;box-sizing:border-box;width:100%;max-width:none;height:auto;
  max-height:calc(100vh - 16px);margin:0;padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));border:0;border-radius:22px 22px 0 0;outline:0;
  overflow:auto;overscroll-behavior:contain;background:#F4F1E6;color:#23261E;box-shadow:0 -10px 30px rgba(0,0,0,.22);direction:rtl;text-align:center;
  font:400 15px/22px Heebo,Arial,sans-serif;letter-spacing:0;text-transform:none;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
@supports (height:100dvh){#bzi-card{max-height:calc(100dvh - 16px)}}
#bzi-card:not([open]){display:none}
#bzi-card[open]{display:block;animation:bzi-up .24s ease-out}
#bzi-card::backdrop{background:rgba(35,38,30,.38);animation:bzi-dim .24s ease-out}
/* a browser without <dialog>.showModal: the same card over a dim of its own */
#bzi-dim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483645;margin:0;background:rgba(35,38,30,.38);animation:bzi-dim .24s ease-out}
@keyframes bzi-up{from{transform:translateY(28px);opacity:0}to{transform:none;opacity:1}}
@keyframes bzi-dim{from{opacity:0}to{opacity:1}}
#bzi-card *,#bzi-card *:before,#bzi-card *:after{box-sizing:border-box}
#bzi-card .bzi-x{all:unset;position:absolute;top:14px;left:14px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;
  background:rgba(49,75,28,.08);color:#314B1C;cursor:pointer}
#bzi-card .bzi-x:after{content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px}   /* a 46 px target for a finger */
#bzi-card .bzi-x svg{display:block;width:14px;height:14px}
#bzi-card .bzi-av{display:flex;align-items:center;justify-content:center;width:50px;height:50px;margin:0 auto 8px;border-radius:50%;background:#E8C98F;color:#314B1C;
  font:600 26px/1 Fredoka,Heebo,Arial,sans-serif}
/* r234: her picture in the circle (a little larger than the initial's circle, with the same sand ring) */
#bzi-card .bzi-av.bzi-av-ph{width:64px;height:64px;overflow:hidden;box-shadow:0 0 0 2px #E8C98F}
#bzi-card .bzi-av.bzi-av-ph img{display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;object-fit:cover}
#bzi-card .bzi-ttl{all:unset;display:block;margin:0 34px;font:600 22px/28px Fredoka,Heebo,Arial,sans-serif;color:#314B1C;overflow-wrap:anywhere}
#bzi-card .bzi-lead{all:unset;display:block;margin:2px 0 0;font-size:14.5px;line-height:20px;color:rgba(35,38,30,.82)}
#bzi-card .bzi-list{all:unset;display:flex;flex-direction:column;gap:8px;margin:12px 0 0;padding:12px 14px;border:1px solid rgba(49,75,28,.14);border-radius:14px;
  background:#FCFBF6;text-align:right}
#bzi-card .bzi-row{all:unset;display:flex;align-items:center;gap:9px;font-size:15px;line-height:22px;font-weight:500;color:#23261E}
#bzi-card .bzi-ck{flex:none;display:block;width:19px;height:19px;color:#314B1C}
#bzi-card .bzi-ck svg{display:block;width:100%;height:100%}
#bzi-card .bzi-rt{flex:1 1 auto;min-width:0}
#bzi-card .bzi-nb{display:inline-block}   /* a phrase: the line breaks between phrases, not inside one */
/* the gift is seen, not only read: the pistachio jar with a small gift mark on it, at the end of its line */
#bzi-card .bzi-jar{position:relative;flex:none;display:block;width:46px;height:58px;margin:-3px 0}
#bzi-card .bzi-jar img{display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border:0;border-radius:6px;box-shadow:none;object-fit:contain}
#bzi-card .bzi-jar-ic{position:absolute;right:-7px;bottom:-2px;display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;
  background:#E8C98F;color:#314B1C;box-shadow:0 0 0 2px #FCFBF6}
#bzi-card .bzi-jar-ic svg{display:block;width:13px;height:13px}
#bzi-card .bzi-note{all:unset;display:block;margin:10px 0 0;font-size:12.5px;line-height:18px;color:#6A6E5C}
#bzi-card .bzi-go{all:unset;display:flex;align-items:center;justify-content:center;width:100%;height:48px;margin:12px 0 0;border-radius:99px;background:#314B1C;color:#F4F1E6;
  font-size:16px;line-height:1;font-weight:600;text-align:center;cursor:pointer}
#bzi-card .bzi-x:focus,#bzi-card .bzi-go:focus{outline:2px solid #314B1C;outline-offset:2px}   /* a key's focus is seen; a tap's is not */
#bzi-card .bzi-x:focus:not(:focus-visible),#bzi-card .bzi-go:focus:not(:focus-visible){outline:0}
@media (hover:hover){#bzi-card .bzi-go:hover{background:#27401a}#bzi-card .bzi-x:hover{background:rgba(49,75,28,.16)}}
@media (min-width:768px){
  #bzi-card{top:0;bottom:0;width:432px;max-width:calc(100vw - 32px);height:-moz-fit-content;height:fit-content;max-height:calc(100vh - 32px);margin:auto;padding:30px 32px;
    border-radius:22px;box-shadow:0 22px 60px rgba(0,0,0,.3);font-size:16px;line-height:24px}
  #bzi-card::backdrop,#bzi-dim{background:rgba(35,38,30,.46)}
  #bzi-card .bzi-x{top:16px;left:16px;width:32px;height:32px}
  #bzi-card .bzi-av{width:58px;height:58px;margin-bottom:12px;font-size:30px}
  #bzi-card .bzi-ttl{font-size:27px;line-height:34px}
  #bzi-card .bzi-lead{margin-top:4px;font-size:16px;line-height:22px}
  #bzi-card .bzi-list{gap:10px;margin-top:18px;padding:15px 18px}
  #bzi-card .bzi-row{gap:10px;font-size:16px;line-height:24px}
  #bzi-card .bzi-ck{width:20px;height:20px}
  #bzi-card .bzi-jar{width:50px;height:63px}
  #bzi-card .bzi-note{margin-top:14px;font-size:13.5px;line-height:19px}
  #bzi-card .bzi-go{height:50px;margin-top:16px;font-size:17px}
}
@media (prefers-reduced-motion:reduce){#bzi-card[open],#bzi-card::backdrop,#bzi-dim{animation:none}}

/* ---------- her name under a card's price (the shop's Elementor loop cards) ----------
   Gold on the shop cards' dark green, as the site's own gold-light; .bzi-cap-ink is for a card with dark text on a
   light ground (the home page's carousel): a bronze dark enough for small text on cream (5:1). The script sets
   margin-top so the line sits --bzi-cap-gap under the price row whatever gap the card has. */
.e-loop-item .bzi-cap{display:flex;align-items:center;justify-content:center;align-self:stretch;gap:5px;width:100%;margin:var(--bzi-cap-gap) 0 0;padding:0;
  --bzi-cap-gap:4px;font:500 12px/16px Heebo,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#E6C88E;direction:rtl;white-space:nowrap}
.e-loop-item .bzi-cap.bzi-cap-ink{color:#7A6238}
.e-loop-item .bzi-cap svg{flex:none;display:block;width:13px;height:13px}
.e-loop-item .bzi-cap>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}   /* a very long name ends in "…" */
@media (min-width:1025px){
  .e-loop-item .bzi-cap{--bzi-cap-gap:5px;gap:6px;font-size:14px;line-height:20px}
  .e-loop-item .bzi-cap svg{width:15px;height:15px}
}

/* ---------- her tag on the product page's one-time price ----------
   The element also carries the box's own class bzsp-purchase-badge, so it takes the shape and the per-screen sizes of
   the tag beside it ("חסוך עד 30%"); the first rule is that shape for a page whose stylesheet no longer has it. */
.bzi-tag{position:absolute;top:-11px;left:12px;z-index:1;display:flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;
  font:500 11px/14px Heebo,Arial,sans-serif;letter-spacing:0;white-space:nowrap;direction:rtl}
#bz-subscription-preview .bzsp-mode-copy>.bzi-tag{top:-11px;height:22px;max-width:calc(100% - 34px);background:#8C7246;color:#fff;font-size:11px}
#bz-subscription-preview .bzsp-mode-copy>.bzi-tag>span{min-width:0;overflow:hidden;text-overflow:ellipsis}   /* a very long name ends in "…" */

/* ---------- her name on the tier coupon's chip ----------
   The server prints "ההטבה של {name} (10%)" as .bz-inf-chip where its label filter reaches (the side cart); the script
   marks a chip it rewrote itself with .bzi-chip (the checkout's summary, the /cart/ block) and the side cart's row
   with .bzi-chip-row. The side cart's word "קופון" beside the chip is dropped: the chip says whose benefit it is.
   (Separate rules, not one selector list: a browser without :has() drops the whole rule that names it.) */
.bzi-chip{letter-spacing:0!important;text-transform:none!important}
.fkcart-coupon-applied:has(.bz-inf-chip) .fkcart-coupon-label{display:none!important}
.fkcart-coupon-applied.bzi-chip-row .fkcart-coupon-label{display:none!important}
.fkcart-coupon-applied:has(.bz-inf-chip) .fkcart-coupon-code{padding:2px 9px!important}   /* the same room on both sides of her words */
.fkcart-coupon-applied.bzi-chip-row .fkcart-coupon-code{padding:2px 9px!important}

@media print{
  #bzi-bar,#bzi-card,#bzi-dim,.bzi-room{display:none!important}
  html.bz-inf .elementor-location-header{padding-bottom:0;background-image:none}
}
