.woocommerce .quantity.cgwc-qty,.quantity.cgwc-qty{display:inline-flex!important;align-items:center;border:1px solid var(--cgwc-line);border-radius:var(--cgwc-radius);background:var(--cgwc-bg);width:auto!important;margin-right:10px}
.quantity.cgwc-qty .cgwc-qty__btn{width:36px;height:44px}
.woocommerce .quantity.cgwc-qty input.qty{width:44px!important;height:44px!important}
.cgwc-card__qty{display:flex;gap:8px;align-items:center}
.cgwc-card__qty .quantity.cgwc-qty{margin:0}
.cgwc-card__qty .quantity.cgwc-qty .cgwc-qty__btn{width:26px;height:34px}
.cgwc-card__qty .quantity.cgwc-qty input.qty{width:32px!important;height:34px!important}
.woocommerce div.product form.cart .button.cgwc-buy-now,.cgwc-buy-now{margin-left:10px;background:var(--cgwc-btn-alt,var(--cgwc-heading))!important;border-color:var(--cgwc-btn-alt,var(--cgwc-heading))!important;color:#fff!important}
.cgwc-buy-now.disabled{opacity:.45;cursor:not-allowed}
.cgwc-sticky-cart{position:fixed;left:0;right:0;bottom:0;z-index:9980;background:var(--cgwc-bg);box-shadow:0 -4px 24px rgba(0,0,0,.1);transform:translateY(110%);transition:transform .35s var(--cgwc-ease);visibility:hidden}
.cgwc-sticky-cart--top{bottom:auto;top:0;transform:translateY(-110%);box-shadow:0 4px 24px rgba(0,0,0,.1)}
.admin-bar .cgwc-sticky-cart--top{top:32px}
.cgwc-sticky-cart.is-visible{transform:none;visibility:visible}
.cgwc-sticky-cart__inner{max-width:1280px;margin:0 auto;padding:10px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.cgwc-sticky-cart__product{display:flex;align-items:center;gap:12px;min-width:0}
.cgwc-sticky-cart__product img{width:52px;height:52px;object-fit:cover;border-radius:var(--cgwc-radius);flex:none}
.cgwc-sticky-cart__product strong{display:block;color:var(--cgwc-heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.cgwc-sticky-cart__product .price{color:var(--cgwc-accent);font-weight:600;font-size:14px}
.cgwc-sticky-cart__product .price del{opacity:.5;color:var(--cgwc-text);font-weight:400}
.cgwc-sticky-cart__product .price ins{text-decoration:none}
.cgwc-sticky-cart__product .screen-reader-text{display:none}
.cgwc-sticky-cart__action{display:flex;align-items:center;gap:10px;flex:none}
.cgwc-sticky-cart .cgwc-qty__btn{height:40px}
.cgwc-sticky-cart .cgwc-qty__input{height:40px!important}
@media(max-width:767px){.cgwc-sticky-cart--no-mobile{display:none}.cgwc-sticky-cart__product img,.cgwc-sticky-cart .cgwc-qty{display:none}.cgwc-sticky-cart__inner{padding:10px 14px}}
.cgwc-single-actions--row{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center}
.cgwc-single-actions--row .cgwc-link{font-weight:500}
/* Attribute tables */
.cgwc-attrs__title{margin:0 0 10px;padding:0;font-family:var(--cgwc-font-heading,inherit);font-weight:var(--cgwc-heading-weight,600);font-size:16px;color:var(--cgwc-heading)}
.cgwc-attrs__list{margin:0;padding:0}
.cgwc-attrs__row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--cgwc-line);font-size:14px}
.cgwc-attrs__row:last-child{border-bottom:0}
.cgwc-attrs__name{margin:0;font-weight:500;color:var(--cgwc-heading)}
.cgwc-attrs__value{margin:0;color:var(--cgwc-text);text-align:right}
.cgwc-attrs--grid .cgwc-attrs__list{display:grid;grid-template-columns:repeat(var(--cgwc-attr-cols,4),minmax(0,1fr));gap:14px 18px}
.cgwc-attrs--grid .cgwc-attrs__row{flex-direction:column;gap:2px;padding:0;border:0}
.cgwc-attrs--grid .cgwc-attrs__value{text-align:left}
@media(max-width:600px){.cgwc-attrs--grid .cgwc-attrs__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cgwc-checkout-part .woocommerce-form-coupon-toggle,.cgwc-checkout-part .woocommerce-form-login-toggle{margin:0 0 12px}
.cgwc-checkout-part form.checkout_coupon,.cgwc-checkout-part form.woocommerce-form-login{margin:0 0 16px;padding:20px;border:1px solid var(--cgwc-line);border-radius:var(--cgwc-radius);background:var(--cgwc-bg)}
/* Quantity and button share a row while the card is wide enough, and the button drops below when it is not.
   Plain wrapping is used on purpose: a container query on the card made grid cards shrink to their content. */
.cgwc-card__qty{flex-wrap:wrap;min-width:0}
.cgwc-card__qty .quantity.cgwc-qty{flex:0 0 auto}
.cgwc-card__qty .button{flex:1 1 auto;min-width:min-content;white-space:nowrap}
/* Brand information and extra content */
.cgwc-brandinfo+.cgwc-brandinfo{margin-top:24px}
.cgwc-brandinfo__head{display:flex;align-items:center;gap:14px;margin-bottom:12px;color:inherit;text-decoration:none}
.cgwc-brandinfo__logo{max-width:120px;max-height:60px;width:auto;height:auto;object-fit:contain}
.cgwc-brandinfo__name{margin:0;padding:0;color:var(--cgwc-heading);font-size:18px}
.cgwc-brandinfo__text p:last-child{margin-bottom:0}
.cgwc-extra-content{width:100%}
.cgwc-extra-content--footer{clear:both;margin-top:40px}
/* Buy now: full width under the quantity and Add to cart row (simple and variable products, quick view). */
:is(form.cart,.woocommerce-variation-add-to-cart):has(>.cgwc-buy-now--full){display:flex;flex-wrap:wrap;align-items:center;gap:10px}
:is(form.cart,.woocommerce-variation-add-to-cart)>.button.cgwc-buy-now--full,.woocommerce div.product form.cart .button.cgwc-buy-now--full{flex:1 1 100%;width:100%;margin:0;justify-content:center;text-align:center}
:is(form.cart,.woocommerce-variation-add-to-cart):has(>.cgwc-buy-now--full)>.single_add_to_cart_button{flex:1 1 auto;margin:0}
