/**
 * Woo reset — quiets WooCommerce's own colours on a Delta site.
 *
 * Ships with the theme; loads only when WooCommerce is active, after WooCommerce's CSS.
 * Not layered: WooCommerce's CSS is not layered, and a layered rule always loses to it.
 * Every selector is .delta-site plus the Woo selector it resets, the lowest specificity that beats Woo.
 * Generic class names (.button, .edit, .price) only match inside WooCommerce markup: :where(.woocommerce *)
 * limits them without adding specificity, so ordinary site buttons are left to the design system.
 * Token-free (currentColor, Canvas, CanvasText), so it works in seed and custom mode. Override it in site.css.
 */
.delta-site ul.products li.product .price,
.delta-site div.product p.price,
.delta-site div.product span.price,
.delta-site ul.products li.product .price .from { color: inherit; }
.delta-site ul.products li.product .price del,
.delta-site div.product p.price del { opacity: .55; }
.delta-site span.onsale {
  background: transparent; color: inherit; border: 1px solid currentColor;
  border-radius: 999px; min-height: 0; min-width: 0; line-height: 1.6; padding: .1em .7em; font-size: .8em;
}
.delta-site .star-rating::before { color: currentColor; opacity: .25; }
.delta-site .star-rating span::before { color: currentColor; }
/* Review form rating: the stars are links and Woo sets no colour, so they would be browser blue. */
.delta-site p.stars a { color: inherit; }
.delta-site a.button:where(.woocommerce *),
.delta-site button.button:where(.woocommerce *),
.delta-site input.button:where(.woocommerce *),
.delta-site #review_form #respond input#submit,
.delta-site a.button.alt:where(.woocommerce *),
.delta-site button.button.alt:where(.woocommerce *),
.delta-site input.button.alt:where(.woocommerce *) {
  background: CanvasText; color: Canvas; border-radius: 3px; font-weight: 600;
  padding: .6rem 1rem;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center;
}
.delta-site a.button:hover:where(.woocommerce *),
.delta-site button.button:hover:where(.woocommerce *),
.delta-site input.button:hover:where(.woocommerce *),
.delta-site a.button.alt:hover:where(.woocommerce *),
.delta-site button.button.alt:hover:where(.woocommerce *),
.delta-site input.button.alt:hover:where(.woocommerce *) { background: CanvasText; color: Canvas; opacity: .85; }
/* Disabled buttons (e.g. add to cart before a variation is chosen). Same specificity as Woo's rule; this file loads after it. */
.delta-site a.button.alt.disabled:where(.woocommerce *),
.delta-site a.button.alt.disabled:hover:where(.woocommerce *),
.delta-site a.button.alt:disabled:where(.woocommerce *),
.delta-site a.button.alt:disabled:hover:where(.woocommerce *),
.delta-site a.button.alt:disabled[disabled]:where(.woocommerce *),
.delta-site a.button.alt:disabled[disabled]:hover:where(.woocommerce *),
.delta-site button.button.alt.disabled:where(.woocommerce *),
.delta-site button.button.alt.disabled:hover:where(.woocommerce *),
.delta-site button.button.alt:disabled:where(.woocommerce *),
.delta-site button.button.alt:disabled:hover:where(.woocommerce *),
.delta-site button.button.alt:disabled[disabled]:where(.woocommerce *),
.delta-site button.button.alt:disabled[disabled]:hover:where(.woocommerce *),
.delta-site input.button.alt.disabled:where(.woocommerce *),
.delta-site input.button.alt.disabled:hover:where(.woocommerce *),
.delta-site input.button.alt:disabled:where(.woocommerce *),
.delta-site input.button.alt:disabled:hover:where(.woocommerce *),
.delta-site input.button.alt:disabled[disabled]:where(.woocommerce *),
.delta-site input.button.alt:disabled[disabled]:hover:where(.woocommerce *) { background: CanvasText; color: Canvas; }
.delta-site .woocommerce-message,
.delta-site .woocommerce-info,
.delta-site .woocommerce-error {
  background: color-mix(in srgb, currentColor 6%, transparent); border: 0; border-radius: 4px; color: inherit;
}
.delta-site .woocommerce-message:focus-visible,
.delta-site .woocommerce-info:focus-visible,
.delta-site .woocommerce-error:focus-visible,
.delta-site .woocommerce-notices-wrapper:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 35%, transparent); outline-offset: 3px; /* subtle but visible: the focus jump must stay perceivable */
}
.delta-site .woocommerce-message::before,
.delta-site .woocommerce-info::before,
.delta-site .woocommerce-error::before { color: currentColor; }
.delta-site div.product .woocommerce-tabs ul.tabs::before,
.delta-site div.product .woocommerce-tabs ul.tabs li {
  border-color: color-mix(in srgb, currentColor 15%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
}
.delta-site div.product .woocommerce-tabs ul.tabs li { margin: 0 .25rem 0 0; box-shadow: none; border-bottom: 0; }
.delta-site div.product .woocommerce-tabs ul.tabs li a { color: inherit; opacity: .75; font-weight: 500; }
.delta-site div.product .woocommerce-tabs ul.tabs li.active { background: transparent; }
.delta-site div.product .woocommerce-tabs ul.tabs li.active a { opacity: 1; }
.delta-site div.product .woocommerce-tabs ul.tabs li::before,
.delta-site div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.delta-site div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 1px solid Canvas; margin-bottom: -1px; }
.delta-site ul.products li.product .button,
.delta-site ul.products li.product a.button {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center;
}
/* Woo text links that carry a class: a design system's unclassed-link rule skips them, so they would be browser blue. */
.delta-site .reset_variations,
.delta-site a.edit:where(.woocommerce *),
.delta-site a.woocommerce-review-link,
.delta-site a.showlogin,
.delta-site a.showcoupon,
.delta-site a.woocommerce-terms-and-conditions-link,
.delta-site a.woocommerce-privacy-policy-link { color: inherit; }
.delta-site .price ins:where(.woocommerce *),
.delta-site ul.products li.product .price ins,
.delta-site div.product p.price ins,
.delta-site div.product span.price ins { text-decoration: none; }
.delta-site ul.products li.product .woocommerce-loop-product__title { color: inherit; }
.delta-site ul.products li.product > a:not(.button),
.delta-site ul.products li.product a.woocommerce-LoopProduct-link { color: inherit; text-decoration: none; }
.delta-site ul.products li.product > a:not(.button):hover .woocommerce-loop-product__title { text-decoration: underline; }

/* WooCommerce block components (cart, checkout, account). Same neutraliser rules as the classic templates: links inherit,
   buttons CanvasText on Canvas, tints from currentColor. Unlayered for the same reason. */
.delta-site .wc-block-components-product-name,
.delta-site .wc-block-components-product-name:hover,
.delta-site .wc-block-cart-item__image a { color: inherit; }
.delta-site .wc-block-cart-item__product .wc-block-components-product-name,
.delta-site .wc-block-components-product-name { text-decoration: none; font-weight: 500; } /* size left to WooCommerce (decided 12 Sep) */
.delta-site .wc-block-components-product-name:hover { text-decoration: underline; }
.delta-site .wc-block-components-button,
.delta-site .wc-block-cart__submit-button,
.delta-site .wc-block-components-checkout-place-order-button {
  background: CanvasText; color: Canvas; border-radius: 3px; font-weight: 600; box-shadow: none;
  padding: .6rem 1rem;
}
.delta-site .wc-block-components-button:hover { background: CanvasText; color: Canvas; opacity: .85; }
.delta-site .wc-block-components-button.outlined,
.delta-site .wc-block-components-button.is-link { background: transparent; color: inherit; }
.delta-site .wc-block-components-sale-badge,
.delta-site .wc-block-components-product-badge {
  background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; border: 0; border-radius: 999px;
}
.delta-site .wc-block-components-totals-item,
.delta-site .wc-block-cart__totals-title,
.delta-site .wc-block-components-panel__button { color: inherit; }
.delta-site .wc-block-components-quantity-selector,
.delta-site .wc-block-components-text-input input,
.delta-site .wc-block-components-select select,
.delta-site .wc-block-components-radio-control__option,
.delta-site .wc-block-components-checkout-step { border-color: color-mix(in srgb, currentColor 20%, transparent); }
.delta-site .wc-block-components-notice-banner,
.delta-site .wc-block-components-notice-banner.is-error,
.delta-site .wc-block-components-notice-banner.is-warning,
.delta-site .wc-block-components-notice-banner.is-success,
.delta-site .wc-block-components-notice-banner.is-info { background: color-mix(in srgb, currentColor 6%, transparent); border-color: color-mix(in srgb, currentColor 15%, transparent); color: inherit; }
.delta-site .wc-block-components-notice-banner > svg { fill: Canvas; background-color: CanvasText; }
.delta-site .wc-block-components-product-details__value,
.delta-site .wc-block-components-product-metadata { color: inherit; opacity: .8; }
.delta-site .wc-block-cart__sidebar .wc-block-components-totals-footer-item { color: inherit; }

/* Woo pagination: same look as the blog pagination (left-aligned pills, currentColor borders), instead of Woo's joined boxes. */
.delta-site nav.woocommerce-pagination { text-align: left; margin-block-start: 2rem; }
.delta-site nav.woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border: 0; margin: 0; padding: 0; list-style: none;
}
.delta-site nav.woocommerce-pagination ul.page-numbers li { border: 0; margin: 0; padding: 0; float: none; display: block; }
.delta-site nav.woocommerce-pagination ul.page-numbers li a,
.delta-site nav.woocommerce-pagination ul.page-numbers li span {
  display: inline-block; color: inherit; text-decoration: none; padding: .35em .75em; border-radius: 3px; background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent); line-height: 1.2; min-width: 0;
}
.delta-site nav.woocommerce-pagination ul.page-numbers li a:hover { border-color: currentColor; background: transparent; }
.delta-site nav.woocommerce-pagination ul.page-numbers li span.current { background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 600; }
