/* ==========================================================================
   TOUCH TARGETS

   The design draws several controls smaller than a fingertip: the card's
   77 x 32 "Lisa", a 36px heart, 16px-tall text links, 28px quantity steppers.
   Their drawn size stays exactly as it is. What grows is the area that answers
   a tap: an invisible ::after, centred on the control and at least 44 x 44
   (Apple HIG / WCAG 2.5.5), inside which a tap is the control's own.

   Nothing here paints. Each rule only positions the control, when it was not
   already, so the extension has something to sit on. Nothing is sized, padded
   or moved, so no layout changes either.

   Where the control's neighbours are closer than 44px would allow, the area
   grows only as far as half the gap to them, so two controls never compete for
   the same tap. Those are set per control below with --hit-min or explicit
   insets.
   ========================================================================== */

.home-section__more,
.product-card__cart,
.home-brands__link,
.newsletter__submit,
.catalog-hero__discover-link,
.catalog-card__cart,
.catalog-promo__cta,
.catalog-alpha__term,
.catalog-filters__chip,
.catalog-filters__clear,
.product-gallery__action,
.product-quantity__step,
.product-related__more,
.auth__lost a,
.wc-block-components-totals-coupon .wc-block-components-panel__button {
	position: relative;
}

/*
 * The one rule: never smaller than the control, grown on each side by half of
 * what it lacks. A percentage inset resolves against the control itself here,
 * so 100% is its own width or height.
 */
.home-hero__heart::after,
.card-wishlist::after,
.product-gallery__wishlist::after,
.home-section__more::after,
.product-card__cart::after,
.home-brands__link::after,
.newsletter__submit::after,
.catalog-hero__discover-link::after,
.catalog-card__cart::after,
.catalog-promo__cta::after,
.catalog-alpha__term::after,
.catalog-filters__chip::after,
.catalog-filters__clear::after,
.product-gallery__action::after,
.product-quantity__step::after,
.product-related__more::after,
.auth__lost a::after,
.wc-block-components-totals-coupon .wc-block-components-panel__button::after {
	content: '';
	position: absolute;
	inset-block: min(0px, calc((100% - var(--hit-min, 44px)) / 2));
	inset-inline: min(0px, calc((100% - var(--hit-min, 44px)) / 2));
}

/*
 * Active-filter chips wrap onto rows 8px apart. Grown past 4px a side, a chip's
 * area would reach into the row below, so they stop there (about 37px).
 */
.catalog-filters__chip {
	--hit-min: 37px;
}

/*
 * A <select> cannot carry a pseudo-element, so this one is simply 44px tall.
 * Its border and background are transparent, and the extra pixel above and
 * below is taken back by the margin, so neither the label nor the row moves.
 */
.catalog-filters__sort-select {
	min-height: 44px;
	margin-block: -1px;
}

/* --------------------------------------------------------------------------
   CART — QUANTITY AND REMOVE

   WooCommerce draws the steppers 30px wide on either side of the input, and the
   remove icon 12px beyond the "+". Centred growth would put part of each
   stepper over the input, so each grows outward only: "−" to the left, "+" to
   the right, as far as the remove button, which takes the rest of that gap
   and grows the other way.

   The remove button's ::after is its "Eemalda" label from 768 up, so its area
   is the ::before. The long selector is WooCommerce's own scoping, as in
   cart-checkout.css.
   -------------------------------------------------------------------------- */

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	position: relative;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button::after {
	content: '';
	position: absolute;
	inset-block: 0;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--minus::after {
	inset-inline: -14px 0;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button--plus::after {
	inset-inline: 0 -6px;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
	position: relative;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link::before {
	content: '';
	position: absolute;
	inset-block: min(0px, calc((100% - 44px) / 2));
	inset-inline: -6px min(0px, calc(100% - 38px));
}

/*
 * The breadcrumb's links are 14px tall (final QA 01.11, V07). They grow to
 * 44px vertically only: side by side they are separated by the "›" mark,
 * and a horizontal extension would make neighbouring crumbs compete.
 */
.woocommerce-breadcrumb__item > a {
	position: relative;
}

.woocommerce-breadcrumb__item > a::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	inset-block: min(0px, calc((100% - 44px) / 2));
}
