/* Calm product page (CalmPdp, option bzsp_calm_pdp; the owner decides): one decision at a time.
   The pack and frequency move into the drawer and the extra badges and chips go. The green gallery at the top stays as
   it is (owner, 23 Oct: it gives shoppers a moment to look). Body class bzsp-calm-pdp is printed by the server. */

/* No short description above the choice: it repeats the first paragraph of the "פרטי המוצר" tab just below, and the
   choice gets room to breathe (owner, 23 Oct). */
body.bzsp-calm-pdp .bzsp-pdp-description { display:none!important; }
body.bzsp-calm-pdp.bzsp-product-design-preview .bzsp-pdp-summary > #bz-subscription-preview { margin-top:16px!important; }

/* How to buy comes first; the size row and its button belong to the one-time purchase. */
body.bzsp-calm-pdp .bzsp-pdp-summary > #bz-subscription-preview { order:3; }
body.bzsp-calm-pdp .bzsp-pdp-summary > .bzsp-pdp-size-group { order:4; margin:12px 0 0!important; }
body.bzsp-calm-pdp .bzsp-pdp-summary > .bzsp-pdp-action-group { order:5; }
body.bzsp-calm-pdp .bzsp-pdp-summary > .bzsp-pdp-benefits { order:6; }
/* The drawer has each jar's own sizes, so the page's size row shows only for a one-time purchase. */
body.bzsp-calm-pdp.bzsp-sub-mode .bzsp-pdp-summary > .bzsp-pdp-size-group { display:none!important; }

/* The struck-through price already shows the one-time saving, and the crown repeats the badge. */
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-once-badge,
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-savings-crown { display:none!important; }
/* The three chips (flavours, frequency, first gift) open only after a tap on the subscription card, which grows a little
   to show them (owner, 23 Oct: they matter to Israeli shoppers, just not all at once). calm-pdp.js adds the class. */
body.bzsp-calm-pdp #bz-subscription-preview:not(.bzsp-calm-open) .bzsp-mode-benefits,
body.bzsp-calm-pdp #bz-subscription-preview[data-bzsp-mode="once"] .bzsp-mode-benefits { display:none!important; }
body.bzsp-calm-pdp #bz-subscription-preview.bzsp-calm-open .bzsp-mode-benefits { animation:bzsp-calm-open .32s ease-out both; overflow:hidden; }
@keyframes bzsp-calm-open { from { max-height:0; opacity:0; transform:translateY(-6px); } to { max-height:44px; opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { body.bzsp-calm-pdp #bz-subscription-preview.bzsp-calm-open .bzsp-mode-benefits { animation:none; } }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-mode { gap:10px; }
/* Without the chips the two cards are the same height; the gift line adds its own row when chosen. */
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-mode-subscription .bzsp-mode-copy { min-height:58px; justify-content:center; }

/* The gift is one line, and only once the subscription is chosen. It ends with a small pistachio jar (owner, 23 Oct);
   the ingredients and the "worth ... free" seal stay off. */
body.bzsp-calm-pdp #bz-subscription-preview[data-bzsp-mode="once"] .bzsp-inline-gift { display:none!important; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift { min-height:0; padding:6px 10px; gap:8px; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-mode .bzsp-inline-gift .bzsp-gift-art { position:static; flex:0 0 auto; width:auto; height:auto; margin:0; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-mode .bzsp-inline-gift .bzsp-gift-art .bzsp-gift-jar { position:static; width:26px; height:34px; margin:-5px 0; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift .bzsp-gift-jar[hidden],
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift .bzsp-gift-ingredients,
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift .bzsp-gift-seal { display:none!important; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift .bzsp-gift-icon { width:24px; height:24px; flex:0 0 24px; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift .bzsp-gift-copy { flex-direction:row; flex-wrap:wrap; align-items:baseline; column-gap:6px; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-inline-gift .bzsp-gift-copy > span { max-width:none; white-space:nowrap; }

/* One line instead of eight pack and frequency buttons; the drawer offers both. */
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-pack-field,
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-cadence-field { display:none!important; }
body.bzsp-calm-pdp #bz-subscription-preview .bzsp-selection-summary { margin:12px 0 10px; color:var(--bzsp-ink); font-size:14px; line-height:20px; text-align:center; }

body.bzsp-calm-pdp .bzsp-calm-size-hint { margin:8px 0 0; color:#8a3b12; font-size:13px; line-height:18px; font-weight:500; }

@media(max-width:767px) {
  body.bzsp-calm-pdp .bzsp-pdp-summary { padding-top:14px!important; }
}

/* The box that fills (CalmPdp box, option bzsp_drawer_box; round 11 option A, the owner's pick on 23 Oct). The jars come
   first, in two columns; a six-slot box at the bottom fills with each jar, with the discount under the slot that reaches
   it and the first-order gift beside it. The tier dots, the frequency row and the top gift card give way to it. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-header{position:relative;border-block-end:0;padding-block:20px 10px}
/* The title and the line under it sit beside the close button, as in the prototype, so the jars start higher. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:start}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-heading{display:contents}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-heading>div{grid-column:1;grid-row:1;min-width:0}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-close{grid-column:2;grid-row:1/span 2}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-selection-progress{grid-column:1;grid-row:2;min-width:0;margin-block-start:2px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-selection-count{font-size:21px;line-height:27px;font-weight:800;letter-spacing:-.2px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-selection-meta .bzsp-drawer-plan{font-size:14px;line-height:20px;color:var(--bzsp-muted)}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-drawer-plan b{color:#2f4a1c;font-weight:700}
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-remaining],
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-unit-dots],
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-upgrade-hint],
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-drawer-cadences,
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-drawer-intro,
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-edit-summary],
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-total-label],
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-total-regular],
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-reset-draft { display:none!important; }
/* The jars first; the gifts and a way to start over after them. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-content{display:flex;flex-direction:column;padding-top:4px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-products{order:1;gap:10px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview{order:2;margin-block-start:16px}
/* The first-order gift shows its jar, laid out like the book card under it (owner, 23 Oct: "שזה יהיה ברור פה הפיסטוק"). */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview{align-items:center;gap:12px;padding:12px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview>img{flex:0 0 100px;width:100px;height:68px;object-fit:contain}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview>img:not([hidden])+.bzsp-gift-symbol{display:none}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview>div{min-width:0}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview strong{display:block;font-size:14px;line-height:20px;font-weight:600}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview div>span{display:block;font-size:12px;line-height:19px;color:#7c673f}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-gift-preview small{display:block;font-size:10px;line-height:17px;color:var(--bzsp-muted)}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-reward-gift{order:3;margin-block:10px 0}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box-reset-row{order:4;margin:14px 0 0;text-align:center}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box-reset{min-height:36px;border:0;padding:4px 2px;background:none;color:#4b5a35;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product{border:1.5px solid #ece9dc;border-radius:18px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product[data-selected=true]{border-color:var(--bzsp-ink);box-shadow:inset 0 0 0 1px var(--bzsp-ink)}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product-image{aspect-ratio:auto;height:108px;padding:5px;background:#f6f4ea}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product h3{font-size:16px;line-height:21px;font-weight:700}
/* Calmer on small phones (owner, 23 Oct, from his phone): a jar with one size shows no size box, the price reads as in the
   prototype ("44.80 ₪ לצנצנת", then "במקום 55.90 ₪"), and before the first jar the bottom holds only the button. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-sizes[data-bzsp-size-count="1"]{display:none}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product-price{gap:0 6px;font-size:17px;font-weight:700}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product-price del{order:3;flex-basis:100%;text-decoration:none;font-size:12px;line-height:16px;color:#818b75}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product-price del::before{content:"במקום "}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-product-price del bdi{text-decoration:line-through}
/* The sizes and the add button as in the prototype (owner, 23 Oct: "הבחירת גדלים מאוד דקה", a bolder "＋ הוספה"). */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-sizes{gap:6px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-size{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:34px;padding:2px 4px;border:1px solid #dfe3d6;border-radius:10px;color:var(--bzsp-ink);font-size:13px;line-height:15px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-size[aria-pressed=true]{border:2px solid #34451f;background:#e9efdf;font-weight:700}
#bz-subscription-preview .bzsp-dialog[data-bzsp-layout="box"] .bzsp-size .bzsp-recommended,.bzsp-dialog[data-bzsp-layout="box"] .bzsp-size .bzsp-recommended{margin:0;padding:0;border-radius:0;background:none;color:#9f814f;font:700 10px/12px Heebo,Arial,sans-serif}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-quantity{border:1.5px solid #34451f}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-quantity:has(>.bzsp-card-add:disabled){border-color:#d7dbce}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-quantity .bzsp-card-add{color:#34451f;font-size:16px;font-weight:700}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-quantity .bzsp-card-add:disabled{color:#9aa18f;background:#f6f6f2}
.bzsp-dialog[data-bzsp-layout="box"][data-bzsp-empty] .bzsp-box,
.bzsp-dialog[data-bzsp-layout="box"][data-bzsp-empty] .bzsp-box-msg,
.bzsp-dialog[data-bzsp-layout="box"][data-bzsp-empty] .bzsp-totals{display:none!important}
.bzsp-dialog[data-bzsp-layout="box"][data-bzsp-empty] .bzsp-add-cart{grid-column:1/-1}
/* The footer: the box, one message, the total beside the button, then the terms. Rows are fixed so
   hidden lines leave no gap. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-footer{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);row-gap:0;column-gap:12px;padding-block-start:8px;box-shadow:0 -6px 18px #1e28140f}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box{grid-column:1/-1;grid-row:1;display:flex;align-items:flex-end;justify-content:center;gap:5px;margin-block-end:6px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box-msg{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;margin:0 0 6px;padding:4px 8px;border-radius:12px;background:#eef2e6;color:#2f4a1c;font-size:13px;line-height:19px;font-weight:500;text-align:center}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box-msg b{font-weight:800}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-quote-message{grid-row:4;margin:0 0 6px;text-align:center}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-quote-message:empty{display:none}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-retry{grid-row:5;justify-self:center;margin:-2px 0 6px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-add-cart{grid-column:1;grid-row:6;height:48px;min-height:48px;border-radius:14px;font-size:16px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-totals{grid-column:2;grid-row:6;align-items:flex-end;margin:0}
.bzsp-dialog[data-bzsp-layout="box"] [data-bzsp-total]{font-size:22px;line-height:27px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-savings{font-size:13px;line-height:18px;font-weight:700;color:#2f4a1c}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box-terms{grid-column:1/-1;grid-row:7;margin:8px 0 0;color:var(--bzsp-muted);font-size:12.5px;line-height:18px;text-align:center}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-box-cadence{border:0;padding:6px 2px;margin:-6px 0;background:none;color:var(--bzsp-ink);font-size:12.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* The six slots, then the gift. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot{display:flex;flex-direction:column;align-items:center;gap:2px;width:34px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-jar{display:grid;place-items:center;width:34px;height:40px;border:1.5px dashed #c9cdbf;border-radius:10px;background:#fafaf6;overflow:hidden}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot.is-required .bzsp-slot-jar{border-color:#a9b394}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot.is-filled .bzsp-slot-jar{border:1.5px solid #c8d4b5;background:#eef2e6}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-jar img{width:auto;height:34px;object-fit:contain;animation:bzsp-slot-pop .35s ease both}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot i{height:13px;font:normal 10.5px/13px Fredoka,Heebo,sans-serif;color:#a2a896}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot.is-reached i{color:#2f4a1c;font-weight:600}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-plus{align-self:center;margin:0 1px 16px;color:#b6a37d;font-size:16px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-gift .bzsp-slot-jar{border:1.5px solid #e2cfa6;background:#f6efe0}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-gift .bzsp-slot-jar img{height:32px;animation:none}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-gift i{color:#9f814f;font:600 11px/14px Heebo,sans-serif}
@keyframes bzsp-slot-pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-again{display:inline-block;margin:0;min-height:30px;border:1.5px solid var(--bzsp-ink);border-radius:999px;padding:2px 10px;background:#fff;color:var(--bzsp-ink);font-size:13px;font-weight:700}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-fly{position:absolute;z-index:6;pointer-events:none;object-fit:contain}
/* Frequency: a small sheet over the drawer. */
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-frame{position:relative}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-scrim{position:absolute;inset:0;z-index:7;width:100%;height:100%;border:0;padding:0;background:#141e0c4d;cursor:default}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-sheet{position:absolute;inset:auto 0 0;z-index:8;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -10px 30px #17210d2e;animation:bzsp-sheet-rise .25s ease both}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-sheet h3{margin:0 0 12px;font-size:17px;line-height:24px;font-weight:700}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-opts{display:grid;gap:8px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-opts button{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:52px;border:1.5px solid var(--bzsp-line);border-radius:14px;padding:0 14px;background:#fff;color:var(--bzsp-ink);font-size:16px;text-align:start}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-opts button[aria-pressed="true"]{border-color:var(--bzsp-ink);background:#eef2e6;font-weight:700}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-opts button>span{white-space:nowrap}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-opts .bzsp-recommended{display:inline-block;margin:0 4px;vertical-align:2px}
.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-hint{color:var(--bzsp-muted);font-size:13px;font-weight:400}
@keyframes bzsp-sheet-rise{from{transform:translateY(100%)}to{transform:none}}
@media(prefers-reduced-motion:reduce){.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-jar img,.bzsp-dialog[data-bzsp-layout="box"] .bzsp-cadence-sheet{animation:none}}
/* Phones: the drawer is a tall sheet with the page showing above it, like the founder video's half sheet. */
@media(max-width:599px){
  .bzsp-dialog[data-bzsp-layout="box"]{inset:34px 0 0;height:calc(var(--bzsp-vh,100dvh) - 34px);border-radius:22px 22px 0 0;box-shadow:0 -10px 30px #17210d2e}
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-header{padding-block:20px 8px}
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-header::before{content:"";position:absolute;top:8px;left:calc(50% - 21px);width:42px;height:5px;border-radius:9px;background:#d5d8cd}
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-dialog-content{padding-inline:12px}
}
@media(min-width:600px){.bzsp-dialog[data-bzsp-layout="box"] .bzsp-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:359px){
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-box{gap:4px}
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot,.bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-jar{width:35px}
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-jar{height:42px}
  .bzsp-dialog[data-bzsp-layout="box"] .bzsp-slot-jar img{height:36px}
}
