/* Softies cart controls: quantity steppers and removal for the checkout panel,
   the mini cart drawer and the native WooCommerce controls. */
.softies-order-controls{--controls-wine:#65151e;--controls-line:#ead6da;box-sizing:border-box;margin:0 0 28px;padding:24px 26px;border:1px solid var(--controls-line);border-radius:20px;background:linear-gradient(125deg,#fff9fa,#f9ecef);color:#45282f;text-align:left;font-family:inherit}
.softies-order-controls__head{margin-bottom:14px}
.softies-order-controls__eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:.13em;line-height:1.5;text-transform:uppercase;color:#805d64}
.softies-order-controls__title{margin:5px 0 0;font-family:var(--serif,"Palatino Linotype",Palatino,Georgia,serif);font-size:20px;font-weight:400;line-height:1.35;color:var(--controls-wine)}
.softies-order-controls__list{margin:0;padding:0;list-style:none}
.softies-order-controls__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:12px 0;border-top:1px solid rgba(198,149,160,.28)}
.softies-order-controls__row:first-child{border-top:0}
.softies-order-controls__name{flex:1 1 160px;min-width:0;color:#3b2429;font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere;text-decoration:none}
a.softies-order-controls__name:hover{color:var(--controls-wine);text-decoration:underline;text-underline-offset:3px}
.softies-order-controls__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.softies-order-controls__stepper{display:grid;grid-template-columns:44px minmax(38px,1fr) 44px;align-items:center;min-height:44px;border:1px solid #e6ccd3;border-radius:999px;background:#fff}
.softies-order-controls__button{appearance:none;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--controls-wine);font-family:var(--sans,inherit);font-size:18px;font-weight:600;line-height:1;cursor:pointer;transition:background .18s ease,color .18s ease}
.softies-order-controls__button:hover{border-radius:50%;background:#fff0f4}
.softies-order-controls__button:focus-visible{outline:2px solid var(--controls-wine);outline-offset:2px}
.softies-order-controls__button:disabled{color:#a99097;cursor:progress;background:transparent}
.softies-order-controls__value{display:grid;place-items:center;min-width:38px;min-height:44px;color:#3b2429;font-family:var(--sans,inherit);font-size:14px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.softies-order-controls__remove{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 6px;border-bottom:1px solid currentColor;color:#8d5b66;font-size:11px;font-weight:600;letter-spacing:.02em;line-height:1.4;text-decoration:none;transition:color .18s ease}
.softies-order-controls__remove:hover{color:var(--controls-wine)}
.softies-order-controls__remove:focus-visible{outline:2px solid var(--controls-wine);outline-offset:3px;border-radius:6px}
.softies-order-controls__status{flex:1 1 100%;min-height:0;color:#7b656c;font-size:11px;line-height:1.5}
.softies-order-controls__status:empty{display:none}
.softies-order-controls__row[aria-busy="true"]{opacity:.82}
.softies-order-controls__row.is-error .softies-order-controls__status{color:#8c1d2c;font-weight:600}
.softies-order-controls__row.is-busy .softies-order-controls__value{color:#8d5b66}
.softies-cart-updating [data-softies-action],.softies-cart-updating [data-softies-mini-action],.softies-cart-updating #cart-drawer .as-mini-cart-wrap a.remove{opacity:.55;cursor:progress}

/* Mini cart drawer: steppers around the drawer quantity, instant removal. */
.as-mini-cart-wrap .softies-mini-stepper{display:inline-flex;align-items:center;gap:2px;margin:9px 0 0;padding:2px;border:1px solid #e6ccd3;border-radius:999px;background:#fff}
.as-mini-cart-wrap .softies-mini-stepper__button{appearance:none;display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wine,#65151e);font-family:inherit;font-size:16px;font-weight:600;line-height:1;cursor:pointer;transition:background .18s ease}
.as-mini-cart-wrap .softies-mini-stepper__button:hover{background:#fff0f4}
.as-mini-cart-wrap .softies-mini-stepper__button:focus-visible{outline:2px solid var(--wine,#65151e);outline-offset:2px}
.as-mini-cart-wrap .softies-mini-stepper__button:disabled{color:#a99097;cursor:progress;background:transparent}
.as-mini-cart-wrap .softies-mini-stepper__value{display:grid;place-items:center;min-width:28px;min-height:40px;color:#3b2429;font-size:13px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.as-mini-cart-wrap .softies-mini-stepper[aria-busy="true"]{opacity:.8}
.as-mini-cart-wrap .softies-mini-status{display:block;margin:6px 0 0;color:#8c1d2c;font-size:11px;line-height:1.5}
.as-mini-cart-wrap .softies-mini-status:empty{display:none}
.cart-drawer .woocommerce-mini-cart-item a.remove{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;visibility:visible;opacity:1;text-indent:0}

/* Product actions form one clear row beneath the name in the mini cart. */
.cart-drawer .woocommerce-mini-cart{padding-top:4px!important}
.cart-drawer .woocommerce-mini-cart-item{min-height:116px;padding:18px 38px 19px 84px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:7px;overflow:visible;border-bottom-color:#eee1e3}
.cart-drawer .woocommerce-mini-cart-item>a:not(.remove){grid-column:1/-1;min-height:30px;padding-right:0!important;font-size:19px;line-height:1.25}
.cart-drawer .woocommerce-mini-cart-item img{top:18px!important;width:66px!important;height:66px!important;border-radius:14px;box-shadow:0 5px 15px rgba(42,25,26,.09)}
.cart-drawer .woocommerce-mini-cart-item a.remove{top:17px!important;right:0!important;width:34px!important;height:34px!important;min-width:34px;min-height:34px;border:1px solid #eadce0;border-radius:50%;background:#fffafb!important;color:#805b64!important;font-family:var(--sans);font-size:17px!important;font-weight:300;transition:border-color .2s ease,background .2s ease,color .2s ease}
.cart-drawer .woocommerce-mini-cart-item a.remove:hover{border-color:#b98692;background:#f8ecef!important;color:#65151e!important}
.cart-drawer .woocommerce-mini-cart-item a.remove:focus-visible{outline:2px solid #65151e;outline-offset:2px}
.cart-drawer .woocommerce-mini-cart-item .softies-mini-stepper{grid-column:1;justify-self:start;display:inline-flex;align-items:center;gap:0;width:auto;margin:0;padding:2px;border-color:#e9d9dd;border-radius:999px;background:#fffafa;box-shadow:0 3px 12px rgba(78,25,36,.035)}
.cart-drawer .woocommerce-mini-cart-item .softies-mini-stepper__button{width:38px;height:38px;min-width:38px;min-height:38px;font-size:18px;font-weight:400}
.cart-drawer .woocommerce-mini-cart-item .softies-mini-stepper__value{min-width:28px;min-height:38px;font-size:13px;font-weight:650}
.cart-drawer .woocommerce-mini-cart-item .quantity{grid-column:2;justify-self:end;align-items:baseline;gap:3px;width:auto!important;min-width:0;margin:0!important;color:#9b858a;font-size:10px;line-height:1.2}
.cart-drawer .woocommerce-mini-cart-item .quantity .amount{margin-left:2px;color:#4e1a23;font-family:var(--serif,Georgia,serif);font-size:16px;font-weight:600;letter-spacing:-.02em}
.cart-drawer .woocommerce-mini-cart-item .softies-mini-status{grid-column:1/-1;margin:0}
@media(max-width:480px){.cart-drawer .woocommerce-mini-cart-item{min-height:106px;padding:16px 36px 17px 70px!important;column-gap:5px}.cart-drawer .woocommerce-mini-cart-item>a:not(.remove){font-size:17px}.cart-drawer .woocommerce-mini-cart-item img{top:16px!important;width:55px!important;height:55px!important}.cart-drawer .woocommerce-mini-cart-item a.remove{top:15px!important;width:32px!important;height:32px!important;min-width:32px;min-height:32px}.cart-drawer .woocommerce-mini-cart-item .softies-mini-stepper__button{width:36px;height:36px;min-width:36px;min-height:36px}.cart-drawer .woocommerce-mini-cart-item .softies-mini-stepper__value{min-height:36px;min-width:24px}.cart-drawer .woocommerce-mini-cart-item .quantity .amount{font-size:14px}}

/* Checkout order summary: the same controls, inline under every product. The
   standalone panel is hidden only once every product has inline controls. */
.softies-summary-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 0}
.softies-summary-controls .softies-order-controls__actions{gap:8px 12px}
.softies-summary-controls .softies-order-controls__stepper{grid-template-columns:40px minmax(34px,1fr) 40px;min-height:40px}
.softies-summary-controls .softies-order-controls__button{width:40px;height:40px;min-width:40px;min-height:40px;font-size:16px}
.softies-summary-controls .softies-order-controls__value{min-width:34px;min-height:40px}
.softies-summary-controls .softies-order-controls__remove{min-height:40px;font-size:12px}
.softies-summary-controls .softies-order-controls__status{flex:1 1 100%;margin-top:2px}
.softies-summary-controls-inline [data-softies-order-controls]{display:none}

/* The native WooCommerce controls stay visible and tappable. These rules are
   defensive only: without them the theme never hides or overlaps them. */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector,
.wp-block-woocommerce-checkout .wc-block-components-quantity-selector{align-items:center;visibility:visible;opacity:1;min-height:40px;pointer-events:auto}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button,
.wp-block-woocommerce-checkout .wc-block-components-quantity-selector__button{display:inline-flex;align-items:center;justify-content:center;line-height:1;visibility:visible;opacity:1;min-width:40px;min-height:40px;pointer-events:auto}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__input,
.wp-block-woocommerce-checkout .wc-block-components-quantity-selector__input{align-self:center;text-align:center;visibility:visible;opacity:1;min-height:40px;pointer-events:auto}
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__remove,
.wp-block-woocommerce-checkout .wc-block-cart-item__remove-link{display:inline-flex;align-items:center;visibility:visible;opacity:1;min-height:40px;pointer-events:auto;text-indent:0}
/* Last resort, applied by the script only when a native control measured as
   unusable: the theme still never edits a React-owned node. */
.softies-native-cart-fallback .wp-block-woocommerce-cart .wc-block-components-quantity-selector__button,
.softies-native-cart-fallback .wp-block-woocommerce-cart .wc-block-cart-item__remove-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;visibility:visible!important;opacity:1!important;min-width:40px!important;min-height:40px!important}

@media (max-width:480px){
  .softies-order-controls{padding:20px;border-radius:16px}
  .softies-order-controls__title{font-size:18px}
  .softies-order-controls__row{gap:10px 12px}
  .softies-order-controls__actions{width:100%;justify-content:space-between}
  .softies-order-controls__stepper{grid-template-columns:42px minmax(34px,1fr) 42px}
  .softies-order-controls__button{width:42px;height:42px;min-width:42px;min-height:42px}
}

@media (max-width:360px){
  .softies-order-controls{padding:16px}
  .softies-order-controls__stepper{grid-template-columns:40px minmax(30px,1fr) 40px}
  .softies-order-controls__button{width:40px;height:40px;min-width:40px;min-height:40px}
  .softies-order-controls__value{min-width:30px}
}
