/*
 * Text-link fallback for content and status/action surfaces. Navigation,
 * product cards, media links, and component-owned CTA links stay outside this
 * scope and retain their dedicated presentation.
 */
:root {
  --storefront-fallback-link-color: #202020;
  --storefront-fallback-link-accent: #ffcc00;
  --storefront-fallback-link-transition: color 0.3s ease, box-shadow 0.2s ease;
}

body.storefront-link-system
  :where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-notices-wrapper,
    .wc-block-components-notice-banner,
    .store-content-prose,
    .store-service-page__content,
    .storefront-info-modal__content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .term-description,
    article.page .entry-content
  )
  a:where(
    :not(
      .button,
      .btn,
      .wp-element-button,
      .wp-block-button__link,
      .porto-child-cart__action,
      .storefront-account-button,
      .storefront-account-register-button,
      [role="button"],
      [aria-label]
    )
  ) {
  color: var(--storefront-fallback-link-color);
  text-decoration: none;
  transition: var(--storefront-fallback-link-transition);
}

body.storefront-link-system
  :where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-notices-wrapper,
    .wc-block-components-notice-banner,
    .store-content-prose,
    .store-service-page__content,
    .storefront-info-modal__content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .term-description,
    article.page .entry-content
  )
  a:where(
    :not(
      .button,
      .btn,
      .wp-element-button,
      .wp-block-button__link,
      .porto-child-cart__action,
      .storefront-account-button,
      .storefront-account-register-button,
      [role="button"],
      [aria-label]
    )
  ):hover {
  color: var(--storefront-fallback-link-accent);
  text-decoration: none;
}

body.storefront-link-system
  :where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-notices-wrapper,
    .wc-block-components-notice-banner,
    .store-content-prose,
    .store-service-page__content,
    .storefront-info-modal__content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .term-description,
    article.page .entry-content
  )
  a:where(
    :not(
      .button,
      .btn,
      .wp-element-button,
      .wp-block-button__link,
      .porto-child-cart__action,
      .storefront-account-button,
      .storefront-account-register-button,
      [role="button"],
      [aria-label]
    )
  ):focus-visible {
  color: var(--storefront-fallback-link-accent);
  outline: 0;
  box-shadow: 0 0 0 2px var(--storefront-fallback-link-color);
  text-decoration: none;
}

body.storefront-link-system
  :where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-notices-wrapper,
    .wc-block-components-notice-banner,
    .store-content-prose,
    .store-service-page__content,
    .storefront-info-modal__content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .term-description,
    article.page .entry-content
  )
  a:where(
    :not(
      .button,
      .btn,
      .wp-element-button,
      .wp-block-button__link,
      .porto-child-cart__action,
      .storefront-account-button,
      .storefront-account-register-button,
      [role="button"],
      [aria-label]
    )
  ):active {
  color: #000;
  box-shadow: none;
  text-decoration: none;
}

body.storefront-link-system
  :where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-notices-wrapper,
    .wc-block-components-notice-banner,
    .store-content-prose,
    .store-service-page__content,
    .storefront-info-modal__content,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .term-description,
    article.page .entry-content
  )
  a:where(
    :not(
      .button,
      .btn,
      .wp-element-button,
      .wp-block-button__link,
      .porto-child-cart__action,
      .storefront-account-button,
      .storefront-account-register-button,
      [role="button"],
      [aria-label]
    )
  ):where([aria-disabled="true"], .disabled) {
  color: #c1c1c1;
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
  text-decoration: none;
}
