.shopping-launcher{position:fixed;right:20px;bottom:20px;z-index:90;background:#216b45;color:white;border:0;border-radius:100px;padding:14px 22px;font:600 1rem 'Be Vietnam Pro',sans-serif;box-shadow:0 5px 20px #153c302e;cursor:pointer}.shopping-dialog{border:0;border-radius:18px;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;color:#23372d;box-shadow:0 20px 80px #0003}.shopping-dialog::backdrop{background:#102a20a6}.shopping-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid #dde6df;position:sticky;top:0;background:white;z-index:1}.shopping-heading h2{font-size:1.4rem;margin:0}.shopping-heading button{border:0;background:#eef5f0;border-radius:50%;height:40px;width:40px;font-size:26px;cursor:pointer}.shopping-content{padding:24px 26px;font-size:1rem;line-height:1.65}.shopping-item{display:grid;grid-template-columns:64px 1fr auto;gap:14px;padding:16px 0;border-bottom:1px solid #e3eae5}.shopping-item img{object-fit:contain;background:#f4f7f4;border-radius:8px}.shopping-item strong{font-size:.9rem;line-height:1.5;display:block}.shopping-item p{font-size:.875rem;margin:6px 0}.shopping-item>b{font-size:.9rem;white-space:nowrap}.shopping-quantity{display:flex;gap:10px;align-items:center}.shopping-quantity button{border:1px solid #d7e2db;border-radius:6px;background:white;min-width:32px;height:32px;cursor:pointer;font-size:1rem}.shopping-quantity .shopping-remove{border:0;color:#944239;margin-left:8px;font-size:.875rem}.shopping-totals{margin:18px 0;padding:16px;background:#eff6f0;border-radius:10px}.shopping-totals p{margin:4px 0;font-size:.9rem}.shopping-totals p:first-child{display:flex;justify-content:space-between;gap:10px;font-size:1rem}.shopping-form h3{font-size:1.2rem}.shopping-form label{display:block;font-weight:600;font-size:.9rem;margin:14px 0}.shopping-form input,.shopping-form textarea{display:block;width:100%;padding:11px 13px;border:1px solid #cbd9ce;border-radius:8px;font:inherit;font-size:1rem;background:white;color:#23372d;margin-top:7px;box-sizing:border-box}.shopping-form textarea{min-height:80px;resize:vertical}.shopping-explanation{font-size:.9rem;color:#4e6355}.shopping-submit{width:100%;margin-top:10px}.shopping-error{background:#fff0ed;color:#933c30;padding:12px;border-radius:8px}.shopping-status{position:fixed;bottom:85px;right:20px;z-index:100;background:#173f2c;color:white;padding:12px 18px;border-radius:10px;opacity:0;pointer-events:none}.shopping-status.visible{opacity:1}.shopping-view-cart{border:0;background:transparent;color:#216b45;font:600 .875rem 'Be Vietnam Pro',sans-serif;padding:9px;cursor:pointer;text-decoration:underline}.direct-product-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}.direct-product-actions .btn,.direct-product-actions .market-link{font-size:.875rem;line-height:1.4;padding:10px 8px;white-space:normal;justify-content:center;text-align:center;margin:0;min-width:0}.direct-product-actions .market-link{border:1px solid #d5dfd7;border-radius:8px;background:white;color:#216b45}.direct-product-actions .shopping-view-cart{grid-column:1/-1}.product-detail-actions{flex-wrap:wrap;gap:12px}.product-detail-actions>.btn-secondary{background:white;color:#216b45;border:1px solid #ccdace}.shopping-order-id{display:block;font-size:1.4rem;color:#216b45;overflow-wrap:anywhere}.shopping-success button{margin:8px 8px 8px 0}button:disabled{cursor:default;opacity:.55}[hidden]{display:none!important}@media(max-width:600px){.shopping-heading,.shopping-content{padding:18px}.shopping-item{grid-template-columns:54px 1fr;gap:10px}.shopping-item img{width:54px;height:70px}.shopping-item>b{grid-column:2}.shopping-launcher{bottom:14px;right:14px;padding:12px 17px}.shopping-dialog{max-height:calc(100dvh - 16px)}.product-detail-actions .btn{flex:1;min-width:130px;font-size:.9rem}.shopping-status{right:14px;left:14px;font-size:.9rem}}

.purchase-model-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:1rem;font-weight:600;margin:0 0 18px}.purchase-model-filter select{padding:10px 12px;border:1px solid #cadacf;border-radius:8px;color:#216b45;background:white;font:inherit;font-size:1rem;max-width:100%}.direct-product-actions .market-link:hover{background:#eff6f0;color:#174a30}

/* Shopee comparison is secondary product metadata, like the shop name. */
.direct-product-actions{grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px}
.shopee-compare-link{display:inline-block;background:none;border:0;border-radius:0;box-shadow:none;color:var(--green);font-size:.75rem;font-weight:600;line-height:1.7;padding:4px 0;text-align:left;min-width:0;overflow-wrap:anywhere;text-decoration:none}
.shopee-compare-link:hover{background:none;color:var(--green-dark);text-decoration:underline;text-underline-offset:3px}
.shopee-compare-link:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.shopee-compare-link.disabled{pointer-events:none;opacity:.5}
.product-detail-actions>.shopee-compare-link{font-size:.875rem;font-weight:400;line-height:1.6;color:var(--muted);flex:0 1 auto;white-space:normal;min-height:0;margin:0;padding:4px 0}
.product-detail-actions>.shopee-compare-link:hover{color:var(--green-dark)}
@media(max-width:600px){.product-detail-actions>.shopee-compare-link{font-size:.875rem;flex:0 1 auto;width:auto;min-width:0}.direct-detail-actions>.btn{width:auto;flex:0 0 auto;min-width:0}.direct-detail-actions>span{flex-basis:100%}}

/* The direct purchase action spans the complete card content width. */
.product-actions.direct-product-actions{grid-template-columns:minmax(0,1fr);width:100%}.direct-product-actions>[data-cart-add]{display:flex;width:100%;grid-column:1/-1;box-sizing:border-box;min-height:44px}.direct-product-actions>.shopping-view-cart{justify-self:center}

.shopping-confirm-dialog{width:min(700px,calc(100vw - 24px))}.shopping-review-customer{padding:18px;background:#f4f8f1;border-radius:10px}.shopping-review-customer h3{margin-top:0}.shopping-review-customer dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px 16px;margin:0;font-size:.95rem}.shopping-review-customer dt{font-weight:600}.shopping-review-customer dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.shopping-review-items article{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #dde6df}.shopping-review-items article>div{min-width:0}.shopping-review-items strong{overflow-wrap:anywhere}.shopping-review-items p{font-size:.875rem;margin:6px 0 0}.shopping-review-items b{flex-shrink:0;white-space:nowrap}.shopping-confirm-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.shopping-confirm-actions .btn{flex:1;min-height:46px;justify-content:center}.shopping-thank-you-image{display:block;width:100%;height:auto;object-fit:contain;margin:24px 0;border-radius:8px}.shopping-success{overflow-wrap:anywhere}@media(max-width:600px){.shopping-review-customer dl{grid-template-columns:1fr;gap:4px}.shopping-review-customer dd{margin-bottom:10px}.shopping-review-items article{flex-direction:column;gap:7px}.shopping-confirm-actions{flex-direction:column}.shopping-confirm-dialog{width:calc(100vw - 24px)}}

.shopping-status{bottom:146px}.shopping-launcher:hover{background:#185334}@media(max-width:600px){.shopping-status{bottom:136px}}

/* Connected green quantity buttons, with a directly editable count. */
.product-card .product-price-box{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;min-width:0}.product-card .product-price{flex:1 0 auto;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-purchase-quantity{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;margin-left:auto;color:#216b45;font-size:14px;font-weight:600}.product-quantity-stepper{display:grid;grid-template-columns:32px 40px 32px;border:1px solid #c5d8c9;border-radius:4px;overflow:hidden;background:#fff}.product-quantity-stepper button,.product-quantity-stepper input{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:0;border:0;border-radius:0;background:#fff;color:#216b45;font:600 16px 'Be Vietnam Pro',sans-serif;text-align:center}.product-quantity-stepper button{cursor:pointer;background:#f1f7f1;font-size:20px;line-height:1}.product-quantity-stepper input{border-left:1px solid #dce7dd;border-right:1px solid #dce7dd;appearance:textfield;-moz-appearance:textfield}.product-quantity-stepper input::-webkit-inner-spin-button,.product-quantity-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.product-quantity-stepper button:hover:not(:disabled){background:#216b45;color:#fff}.product-quantity-stepper button:disabled{color:#a5b9a9;background:#f8faf7;opacity:1}.product-quantity-stepper button:focus-visible,.product-quantity-stepper input:focus-visible{outline:2px solid #216b45;outline-offset:-3px}.product-detail-purchase-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.product-detail-purchase-row .product-detail-price{margin:0}.detail-purchase-quantity{font-size:16px}.product-card .direct-product-actions{grid-template-columns:minmax(0,1fr)}.product-card .direct-product-actions [data-cart-open]{display:none}@media(max-width:600px){.product-card .product-price-box{gap:6px}.product-detail-purchase-row{gap:12px}.detail-purchase-quantity{font-size:14px}}

/* Compact purchase controls on two-column mobile product cards. */
@media(max-width:720px){
 .product-card .shop-name{display:none}
 .product-card .product-price-box{flex-wrap:nowrap;gap:3px;align-items:center}
 .product-card .product-price{flex:1 1 auto;min-width:0;font-size:clamp(10px,2.85vw,12px);font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .product-card .product-purchase-quantity{margin-left:0;gap:0}
 .product-card .product-quantity-stepper{grid-template-columns:16px 20px 16px;border-radius:3px}
 .product-card .product-quantity-stepper button,.product-card .product-quantity-stepper input{height:24px;font-size:11px}
 .product-card .product-quantity-stepper button{font-size:14px}
}
@media(max-width:360px){
 .product-card .product-quantity-stepper{grid-template-columns:14px 18px 14px}
 .product-card .product-price-box{gap:2px}
}
