.zh-purchase-slot{position:static;width:100%;margin-top:12px;box-sizing:border-box}
html:has(body.zh-has-purchase-dock){scroll-padding-bottom:90px}
html body #product .zh-purchase-dock{box-sizing:border-box;position:fixed;z-index:1040;left:50%;right:auto;bottom:max(12px,env(safe-area-inset-bottom),var(--zh-purchase-keyboard-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:14px;width:calc(100% - 24px);max-width:620px;margin:0;padding:12px 16px;border:1px solid #d5e2cd;border-radius:10px;background:rgba(255,255,255,.98);box-shadow:0 4px 24px #24352030;transition:opacity .18s,visibility .18s}
html body #product .zh-purchase-price-wrap{flex:1;min-width:0;line-height:1.2}
html body #product [data-zh-dock-price]{display:inline-block;padding:5px 7px;margin-left:-7px;border-radius:6px;font-size:23px;color:#47533f;overflow-wrap:anywhere}
html body #product .zh-dock-note{display:block;font-size:11px;color:#687063;line-height:1.25}
html body #product .zh-purchase-quantity{display:flex;flex:0 0 auto;align-items:stretch;height:40px}
html body #product .zh-purchase-quantity button{width:34px;min-width:34px;height:40px;padding:0;border:1px solid #ccd6c6;border-radius:5px 0 0 5px;background:#f0f4ed;color:#607454;font-size:23px;line-height:1}
html body #product .zh-purchase-quantity button:last-child{border-radius:0 5px 5px 0}
html body #product #input-quantity{width:46px;min-width:0;max-width:46px;height:40px;padding:5px 2px;text-align:center;border-radius:0;border:1px solid #ccd6c6;border-left:0;border-right:0;font-size:16px;margin:0}
html body #product .zh-purchase-dock #button-cart{flex:0 0 auto;width:auto;min-width:110px;min-height:42px;padding:9px 15px;margin:0;white-space:nowrap;border-radius:5px;font-size:15px}
html body #product .zh-purchase-dock.zh-dock-hidden{opacity:0;visibility:hidden;pointer-events:none}
.zh-price-updated{animation:zh-price-glow .4s ease-out}
@keyframes zh-price-glow{0%,45%{background:#fde6df;color:#b74732;box-shadow:0 0 0 4px #f8d4c84d}100%{background:transparent;color:#47533f;box-shadow:0 0 0 0 transparent}}
.zh-cart-icon{display:inline-block;position:relative;padding:3px 4px 0 0;line-height:1;margin-right:8px}
html body .zh-cart-count{position:absolute;right:-5px;top:-8px;min-width:17px;height:17px;line-height:17px;padding:0 4px;border-radius:20px;background:#ff8a00;color:#fff;font:600 11px/17px Ubuntu,Arial,sans-serif;text-align:center}
html body .zh-cart-added-float[hidden]{display:none!important}
html body a.zh-cart-added-float{display:none}
@media(max-width:480px){html body #product .zh-purchase-dock{width:calc(100% - 16px);gap:8px;padding:10px;bottom:max(8px,env(safe-area-inset-bottom),var(--zh-purchase-keyboard-bottom,0px))}html body #product [data-zh-dock-price]{font-size:20px}html body #product .zh-purchase-dock #button-cart{min-width:100px;padding:9px 10px}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1024px){html body #product .zh-purchase-dock{left:auto;right:max(12px,env(safe-area-inset-right));transform:none;width:calc(100vw - 24px);max-width:440px;padding:10px 12px;gap:10px}html body #product [data-zh-dock-price]{font-size:20px}html body #product .zh-purchase-dock #button-cart{min-width:105px;padding:9px 12px}html body a.zh-cart-added-float:not([hidden]){position:fixed;z-index:1045;display:flex;align-items:center;justify-content:center;gap:4px;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));min-height:48px;padding:10px 16px;border:1px solid #c7d7be;border-radius:8px;background:#f0f4ed;box-shadow:0 4px 20px #24352030;color:#475d3d!important;text-decoration:none;font-size:16px}html body a.zh-cart-added-float .fa{font-size:24px}}
@media(prefers-reduced-motion:reduce){.zh-price-updated{animation:none!important;background:#fde6df;color:#b74732}html body #product .zh-purchase-dock{transition:none}}

/* Keep the larger header cart glyph and its badge inside the green bar. */
html body .zh-matched-nav #cart>button .zh-cart-icon{padding-top:5px;margin-right:0}
html body .zh-matched-nav #cart>button .zh-cart-icon>.fa{font-size:24px}
html body .zh-matched-nav #cart>button .zh-cart-count{top:-3px;right:-6px}

/* Purchase controls follow the option column and settle at the native end of the form. */
html body #product .zh-purchase-dock{left:var(--zh-purchase-left,0px);right:auto;bottom:max(8px,env(safe-area-inset-bottom),var(--zh-purchase-keyboard-bottom,0px));transform:none;width:var(--zh-purchase-width,100%);max-width:none;border:3px solid #d7e7cc;border-top:4px solid #adc79e;border-radius:8px;background:#f4f7f1;box-shadow:0 -4px 18px #34482e21;padding:10px 12px;gap:10px}
html body #product .zh-purchase-dock.zh-dock-inline{position:relative;inset:auto;width:100%;max-width:none;transform:none;box-shadow:none}
html body #product .zh-purchase-dock.zh-dock-compact{gap:6px;padding:9px 8px}
html body #product .zh-dock-compact [data-zh-dock-price]{font-size:18px}
html body #product .zh-dock-compact .zh-purchase-quantity button{width:28px;min-width:28px;font-size:21px}
html body #product .zh-dock-compact #input-quantity{width:38px;max-width:38px}
html body #product .zh-purchase-dock.zh-dock-compact #button-cart{min-width:90px;font-size:14px;padding:9px 8px}
html body #product .zh-purchase-dock.zh-dock-narrow{display:grid;grid-template-columns:minmax(0,1fr) auto}
html body #product .zh-purchase-dock.zh-dock-narrow #button-cart{grid-column:1/-1;width:100%}

@media(orientation:landscape) and (max-height:500px) and (max-width:1024px){html body a.zh-cart-added-float:not([hidden]){box-sizing:border-box;width:var(--zh-cart-copy-width,150px);height:var(--zh-cart-copy-height,40px);min-height:0;padding:4px 10px;gap:8px;border:0;border-radius:0;background:#43a53e;color:#fff!important;font:400 14px/22px Ubuntu,Arial,sans-serif;white-space:nowrap;overflow:hidden;text-shadow:none}html body a.zh-cart-added-float .zh-cart-icon{padding-top:5px;margin-right:0}html body a.zh-cart-added-float .zh-cart-count{top:-3px;right:-6px}html body a.zh-cart-added-float .fa{font-size:24px}}

/* Cart is a green control, including all icon and amount descendants. */
html:root body a.zh-cart-added-float[href] span,html:root body a.zh-cart-added-float[href] i{color:#fff!important}

/* A narrow white fade separates scrolling options; the viewport gap stays plain white. */
html body #product .zh-purchase-dock{border-top:1px solid #d7e7cc;box-shadow:none}
html body #product .zh-purchase-dock::before{content:"";position:absolute;left:-3px;right:-3px;bottom:calc(100% + 1px);height:18px;background:#fff;pointer-events:none}
html body #product .zh-purchase-dock::after{content:"";position:absolute;left:-3px;right:-3px;top:calc(100% + 3px);height:max(8px,env(safe-area-inset-bottom),var(--zh-purchase-keyboard-bottom,0px));background:#fff;pointer-events:none}
html body #product .zh-purchase-dock.zh-dock-inline::before,html body #product .zh-purchase-dock.zh-dock-inline::after{display:none}

/* Quantity input and step buttons share the exact same border-box height. */
html body #product .zh-purchase-quantity{height:44px;align-items:stretch}
html body #product .zh-purchase-quantity button,html body #product .zh-purchase-quantity #input-quantity{box-sizing:border-box;height:44px;min-height:44px;max-height:44px;align-self:stretch;margin-top:0;margin-bottom:0}

/* The native purchase row keeps its frame; the quantity summary is below it. */
html body #product .zh-purchase-dock,html body #product .zh-purchase-dock.zh-dock-compact,html body #product .zh-purchase-dock.zh-dock-narrow{display:block;border:0;padding:0;background:transparent}
html body #product .zh-purchase-controls{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:3px solid #77b956;border-radius:8px;background:#f4f7f1}
html body #product .zh-dock-compact .zh-purchase-controls{gap:6px;padding:9px 8px}
html body #product .zh-dock-narrow .zh-purchase-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}
html body #product .zh-purchase-dock::before{left:0;right:0;bottom:100%}
html body #product .zh-purchase-dock::after{left:0;right:0;top:100%}
html body #product #zh-calculated-price{box-sizing:border-box;width:100%;margin:0;padding:6px 8px;background:#fff;font-size:12px;line-height:1.4;color:#687063;text-align:left}
html body #product #zh-calculated-price[hidden]{display:none!important}

/* Keep the total in one stable row throughout quantity and cart recalculations. */
html body #product #zh-calculated-price{min-height:29px;font-variant-numeric:tabular-nums}

/* Only price and purchase controls float. Totals and weight stay in the page. */
html body #product .zh-purchase-dock::before{display:none;content:none}
html body #product .zh-purchase-dock:not(.zh-dock-inline){background:#fff;box-shadow:0 0 0 6px #fff}
html body #product .zh-purchase-dock:not(.zh-dock-inline) .zh-purchase-controls{border-color:#77b956}
html body #product #zh-calculated-price{animation:none;transition:none;box-shadow:none}

/* The green frame and plain white outer rim share the existing dock visibility. */
html body #product .zh-purchase-dock.zh-dock-inline{box-shadow:0 0 0 6px #fff}

/* Purchase success uses the same dark surface as the cookie confirmation. */
html body .zh-cart-added-toast{position:fixed;z-index:1049;left:50%;top:max(16px,env(safe-area-inset-top));transform:translateX(-50%);max-width:calc(100vw - 32px);box-sizing:border-box;padding:14px 20px;border-radius:10px;background:#333;color:#fff;font:500 14px/1.5 Ubuntu,Arial,sans-serif;box-shadow:0 4px 18px #0003;pointer-events:none;text-align:center}
html body .zh-cart-added-toast[hidden]{display:none!important}
html body #product #button-cart[hidden],html body #product [data-zh-dock-cart][hidden]{display:none!important}
html body #product .zh-purchase-controls .zh-dock-cart-shortcut{position:relative;box-sizing:border-box;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:110px;min-width:110px;min-height:44px;padding:5px 12px 10px;border:0;border-radius:5px;background:#43a53e;color:#fff!important;text-decoration:none;text-shadow:none;box-shadow:none}
html body #product .zh-dock-cart-shortcut .fa{color:#fff;font-size:25px;line-height:1}
html body #product .zh-dock-cart-shortcut>.zh-cart-weight-meter{position:absolute;bottom:4px;left:10px;right:10px;pointer-events:none}
html body #product .zh-dock-cart-shortcut:hover{background:#369132}
html body #product .zh-dock-compact .zh-dock-cart-shortcut{width:90px;min-width:90px}
html body #product .zh-dock-narrow .zh-dock-cart-shortcut{grid-column:1/-1;width:100%}
