/* Keep sale labels legible on native and V18 catalogue tickets. */
body.byyaeli-design-catalogue #main ul.products li.product
  :is(.isb_sale_badge.isb_style_eu.isb_sk_creative.isb_left, [data-bya18-card-price-ticket])
  :is(.isb_sale_text_off, .bya18-ticket-label) {
  box-sizing: border-box;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: #444 !important;
  font: 400 8px/10px "Open Sans", sans-serif !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Keep the native controls and selection state while adding the V18 wash. */
[data-bya-consent] :is(.bya-consent-actions button, .bya-consent-save) {
  transition: background-position 450ms cubic-bezier(.785,.135,.15,.86), color 150ms ease 100ms;
}

[data-bya-consent] :is(.bya-consent-actions button, .bya-consent-save):focus-visible {
  background-position: left;
  color: #fff;
  outline: 1px solid #765526;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  [data-bya-consent] :is(.bya-consent-actions button, .bya-consent-save) { transition: none; }
}

body.woocommerce-page .yith-wcan-filters
  :is(.filter-item > a, .filter-item > label, .filter-title.collapsable, .filter-title > button):not([aria-disabled="true"], .disabled) {
  background-image: linear-gradient(#eee6d6, #eee6d6) !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: 0% 100% !important;
  transition: background-size 450ms cubic-bezier(.785,.135,.15,.86) !important;
}

/* Match the motion on Elementor links that have no native wash layer. */
body #main .elementor-widget-button a.elementor-button:not([data-bya18-cta-wash], [data-bya-hover], [aria-disabled="true"], .disabled) {
  --bya-fallback-ink: var(--bya18-action-hover-bg, #242424);
  background-image: linear-gradient(var(--bya-fallback-ink), var(--bya-fallback-ink)) !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: 0% 100% !important;
  transition: background-size 450ms cubic-bezier(.785,.135,.15,.86), color 150ms ease 100ms !important;
}

body #main .elementor-widget-button a.elementor-button:not([data-bya18-cta-wash], [data-bya-hover], [aria-disabled="true"], .disabled):focus-visible {
  background-size: 100% 100% !important;
  color: var(--bya18-action-hover-ink, #fff) !important;
  outline: 1px solid #765526;
  outline-offset: 3px;
}

@media (hover: hover) {
  body #main .elementor-widget-button a.elementor-button:not([data-bya18-cta-wash], [data-bya-hover], [aria-disabled="true"], .disabled):hover {
    background-size: 100% 100% !important;
    color: var(--bya18-action-hover-ink, #fff) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #main .elementor-widget-button a.elementor-button:not([data-bya18-cta-wash], [data-bya-hover], [aria-disabled="true"], .disabled) {
    transition: none !important;
  }
}

body.woocommerce-page .yith-wcan-filters
  :is(.filter-item > a, .filter-item > label, .filter-title.collapsable, .filter-title > button):not([aria-disabled="true"], .disabled):focus-visible {
  background-size: 100% 100% !important;
  outline: 1px solid #765526;
  outline-offset: 2px;
}

@media (hover: hover) {
  body.woocommerce-page .yith-wcan-filters
    :is(.filter-item > a, .filter-item > label, .filter-title.collapsable, .filter-title > button):not([aria-disabled="true"], .disabled):hover {
    background-size: 100% 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-page .yith-wcan-filters
    :is(.filter-item > a, .filter-item > label, .filter-title.collapsable, .filter-title > button) {
    transition: none !important;
  }
}

/* Keep the native product purchase form at the approved action height. */
body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 .elementor-element-f06d67e form.cart button.single_add_to_cart_button {
  box-sizing: border-box;
  min-height: 48px !important;
  padding-block: 12px !important;
}

/* Preserve WooCommerce's product-option values and labels in the approved form styling. */
body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 form.cart .wc-pao-addon-container:has(.wc-pao-addon-field:is(select, input[type="text"])) {
  padding-inline: 0;
}

body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 form.cart .wc-pao-addon-field:is(select, input[type="text"]) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--bya-v18-addon-height, 48px) !important;
  padding: 12px;
  border: 1px solid #b5b5b5;
  border-radius: 0;
  background-color: #fff;
  color: #242424;
  font: 300 16px/1.5 "Open Sans", sans-serif;
  text-transform: none;
}

body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 form.cart select.wc-pao-addon-field {
  --bya-v18-addon-height: 50px;
}

/* The related-card title uses the smaller type scale in the V18 product view. */
body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 .elementor-element-63cbe6b section.related.products.bya-v18-related-ready[data-bya18-related-card1] li.product[data-bya18-related-card] > .product-inner > .woo-entry-inner > .title :is(h2, a) {
  color: #222 !important;
  font-size: 15px !important;
}

@media (max-width: 767px) {
  body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 .elementor-element-63cbe6b section.related.products.bya-v18-related-ready[data-bya18-related-card1] {
    width: calc(100% - 16px) !important;
  }

  body.byyaeli-v18-native-product.byyaeli-approved-design #main .elementor-56978 .elementor-element-63cbe6b section.related.products.bya-v18-related-ready[data-bya18-related-card1] li.product[data-bya18-related-card] > .product-inner > .woo-entry-inner > .title :is(h2, a) {
    font-size: 14px !important;
  }
}
