/* One quiet purchase control follows the story, with space for the footer. */
.hw-has-sticky-purchase{padding-bottom:106px}
.hw-sticky-purchase{position:fixed;z-index:90;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(860px,calc(100% - 40px));display:flex;align-items:center;gap:24px;padding:12px 14px;background:#fff;border:1px solid var(--hw-line);border-radius:12px;box-shadow:0 8px 36px #00000018;color:var(--hw-ink)}
body:has(dialog[open]) .hw-sticky-purchase{display:none}
/* WooCommerce appends this link after AJAX; the drawer already provides it. */
.handywink-studio .hw-sticky-purchase .added_to_cart{display:none}
.hw-sticky-product{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-decoration:none}
.hw-sticky-product img{width:50px;height:50px;object-fit:contain;border-radius:6px;flex-shrink:0}
.hw-sticky-product>span{min-width:0}
.hw-sticky-product strong{display:block;font:500 14px/1.4 var(--hw-heading);letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hw-sticky-product small{display:block;font-size:11px;line-height:1.5;color:var(--hw-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.hw-sticky-cost{flex-shrink:0;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums}
.hw-sticky-cost>span{font:600 20px/1.3 var(--hw-heading);letter-spacing:-.04em}
.hw-sticky-cost>small{display:block;font-size:10px;color:var(--hw-muted);margin-top:2px}
.hw-sticky-cost>.hw-sticky-discount{font-size:11px;font-weight:400;white-space:nowrap}
.hw-sticky-discount del{text-decoration-thickness:1px}
.hw-sticky-add{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--hw-blue);border-radius:7px;min-height:48px;padding:12px 20px;background:var(--hw-blue);color:white;flex-shrink:0;font:600 12px/1.4 var(--hw-body)}
.hw-sticky-add svg{width:21px;height:21px;flex-shrink:0}
.hw-sticky-add:hover{background:var(--hw-ink);border-color:var(--hw-ink)}
.handywink-studio .woocommerce div.product form.cart .single_add_to_cart_button:after{display:none}
@media(max-width:600px){
 .hw-has-sticky-purchase{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
 .hw-sticky-purchase{width:calc(100% - 24px);padding:10px;gap:12px;bottom:calc(10px + env(safe-area-inset-bottom));border-radius:10px}
 .hw-sticky-product{gap:9px}.hw-sticky-product img{width:40px;height:40px}
 .hw-sticky-product strong{font-size:11px;line-height:1.4;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .hw-sticky-product small{font-size:9px;line-height:1.35;max-width:28ch}
 .hw-sticky-cost>span{font-size:17px}.hw-sticky-cost>small{font-size:9px}
 .hw-sticky-add{width:44px;height:44px;min-height:44px;padding:0}
 .hw-sticky-add>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:350px){.hw-sticky-purchase{width:calc(100% - 16px);gap:9px;padding:9px}.hw-sticky-product{gap:7px}.hw-sticky-product img{width:34px;height:38px}.hw-sticky-product strong{font-size:10px}.hw-sticky-cost>span{font-size:15px}}
