/*
 * The product page's small action links, one recipe (11.3.16, F45; the owner, 19 Nov 2026: "Please fix the style of the
 * 'View cart' - make it identical to the See all 20 shades", and F45b: "Finally I am still waiting for the fix with the
 * clear!"). One rule every one of them reads, never a copy of it:
 *   - the swatches' "See all N" under the chips (the designer's look);
 *   - the "View cart" link WooCommerce's add-to-cart script prints right after a product page's Add to cart button
 *     once an add went in (`a.added_to_cart.wc-forward`; the side cart's add of a product page's form hands it the
 *     button);
 *   - WooCommerce's "Clear" of the variations (`a.reset_variations`, after the last attribute's control; above the
 *     classic sheet's `.woocommerce div.product form.cart .reset_variations`; its plain 44 px target and no gap of its
 *     own above it, F45c: WooCommerce keeps its place while it hides it, so the band under the last control is that
 *     target, hidden or shown, nothing overlaps the control above it and nothing moves when it shows; beside a classic
 *     theme's select it stays on that line);
 *   - the multi-select's "Clear selections" (`.om-multi-select-reset`: the designer's boxes, the quote picker's and the
 *     classic look's);
 *   - the waiting list's "Change the options or the email" / "Use another email" (`.aieo-waitlist-change`);
 *   - the in-cart summary's "View details" / "Hide details" over the swatches (`.om-cart-summary-toggle`; F47);
 *   - the request window's "Back" (`.aieo-pr-win__back`).
 * Their size, weight, colour, underline (its thickness and offset), their 44 px target and their focus are this rule's,
 * every value a token of the theme, never a colour of ours; where each sits stays its own sheet's. Queued on every
 * product page and with the sheets of the swatches, the waiting list and the request card (AIEO_Text_Link); small
 * enough for WordPress to print it in the head.
 *
 * A product card's "View cart" is the theme's card's (it places the link under the card's button), not this rule's: the
 * selector reaches only the link after WooCommerce's single-product button. The sticky bar hides its own.
 */

.om-variations-wrapper.aieo-shades[data-look="designer"] .aieo-shades__all,
.single_add_to_cart_button ~ a.added_to_cart.wc-forward,
form.variations_form.cart table.variations a.reset_variations,
.variations_form .om-multi-select-reset,
.aieo-waitlist-change,
.om-cart-summary-toggle,
.aieo-pr-win__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--wp--preset--color--fg, currentColor);
  font: inherit;
  font-size: var(--wp--preset--font-size--sm, 0.875rem);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.om-variations-wrapper.aieo-shades[data-look="designer"] .aieo-shades__all:focus-visible,
.single_add_to_cart_button ~ a.added_to_cart.wc-forward:focus-visible,
form.variations_form.cart table.variations a.reset_variations:focus-visible,
.variations_form .om-multi-select-reset:focus-visible,
.aieo-waitlist-change:focus-visible,
.om-cart-summary-toggle:focus-visible,
.aieo-pr-win__back:focus-visible {
  outline: none;
  box-shadow: var(--wp--custom--rooster--focus-ring, 0 0 0 2px currentColor);
}

/* "View cart" on a row of its own under the button (the add form's grid gives it the row), as wide as its words, at the
   gap between the page's rows (the info column's, spacing 4) in place of WooCommerce's 1em. */
.single_add_to_cart_button ~ a.added_to_cart.wc-forward {
  justify-self: start;
  margin-block-start: var(--wp--preset--spacing--4, 1rem);
}
