/* HomePro RealesWP Companion 1.4.25 - branded text links.
 * Exact requested accent: #0EAAA6. Front-end RealesWP pages only.
 * Scope: native/custom HomePro breadcrumbs; account recovery/privacy links;
 * cart Undo; native/enhanced agent biography and contact-row links. Menus, footers, maps, property cards, social icons,
 * form controls and button-style links keep their existing appearance.
 * Pure CSS applies before profile JavaScript and to later-inserted notices.
 */

/* RealesWP reales_breadcrumbs() renders .page_bc on its shared templates,
 * including the split-map agent view. HomePro Storefront also has dedicated
 * product, white-label support and documentation breadcrumb wrappers.
 * Select their anchors, never the whole wrapper, separators or current label.
 * The Storefront recovery link is a direct child of its account panel's final
 * paragraph (outside .woocommerce); its endpoint can be customized.
 * Privacy/recovery selectors cover the embedded WooCommerce account forms
 * without selecting footer policies, form buttons or ordinary content links.
 */

/* The state-independent rule also covers visited, hover, focus and active.
 * Important overrides theme gray and normal inline editor colors, without
 * changing the font, weight, size, background, href or click behavior.
 */
body :is(.page_bc, .hpps-product-breadcrumb, .hpps-wl-breadcrumb, .hpps-docs-breadcrumb, .breadcrumb, .breadcrumbs, .woocommerce-breadcrumb, .rank-math-breadcrumb, .yoast-breadcrumb, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.woocommerce-cart a.restore-item[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.woocommerce-cart :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper) a[href*="undo_item="]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .singleTop > .entry-content a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .singleTop > .row > [class*="col-"] > .row > .col-xs-8 a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .hprc-profile-root .hprc-profile-about a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .hprc-profile-root .hprc-profile-contact-row a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body .hpps-account-panel > p > a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body .woocommerce :is(.lost_password, .woocommerce-LostPassword) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body :is(.woocommerce, .hpps-account-panel) a.woocommerce-privacy-policy-link[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body :is(.woocommerce, .hpps-account-panel) .woocommerce-privacy-policy-text a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) {
    color: #0EAAA6 !important;
    -webkit-text-fill-color: #0EAAA6 !important;
}

/* Editor-created spans/strong/font tags must not keep separate gray text.
 * Only descendants of the scoped text links inherit the new link color.
 */
body :is(.page_bc, .hpps-product-breadcrumb, .hpps-wl-breadcrumb, .hpps-docs-breadcrumb, .breadcrumb, .breadcrumbs, .woocommerce-breadcrumb, .rank-math-breadcrumb, .yoast-breadcrumb, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body.woocommerce-cart a.restore-item[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body.woocommerce-cart :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper) a[href*="undo_item="]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body.single-agent .singleTop > .entry-content a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body.single-agent .singleTop > .row > [class*="col-"] > .row > .col-xs-8 a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body.single-agent .hprc-profile-root .hprc-profile-about a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body.single-agent .hprc-profile-root .hprc-profile-contact-row a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body .hpps-account-panel > p > a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body .woocommerce :is(.lost_password, .woocommerce-LostPassword) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body :is(.woocommerce, .hpps-account-panel) a.woocommerce-privacy-policy-link[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) *,
body :is(.woocommerce, .hpps-account-panel) .woocommerce-privacy-policy-text a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Distinguish account, contact and Undo links from prose without relying on color
 * alone. Long email addresses and URLs may wrap on narrow screens.
 */
body.woocommerce-cart a.restore-item[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.woocommerce-cart :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper) a[href*="undo_item="]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .singleTop > .entry-content a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .singleTop > .row > [class*="col-"] > .row > .col-xs-8 a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .hprc-profile-root .hprc-profile-about a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body.single-agent .hprc-profile-root .hprc-profile-contact-row a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body .hpps-account-panel > p > a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body .woocommerce :is(.lost_password, .woocommerce-LostPassword) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body :is(.woocommerce, .hpps-account-panel) a.woocommerce-privacy-policy-link[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]),
body :is(.woocommerce, .hpps-account-panel) .woocommerce-privacy-policy-text a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]) {
    text-decoration-line: underline !important;
    text-decoration-color: #0EAAA6 !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Breadcrumb separators and the unlinked current page are not selected. */
body :is(.page_bc, .hpps-product-breadcrumb, .hpps-wl-breadcrumb, .hpps-docs-breadcrumb, .breadcrumb, .breadcrumbs, .woocommerce-breadcrumb, .rank-math-breadcrumb, .yoast-breadcrumb, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):hover,
body :is(.page_bc, .hpps-product-breadcrumb, .hpps-wl-breadcrumb, .hpps-docs-breadcrumb, .breadcrumb, .breadcrumbs, .woocommerce-breadcrumb, .rank-math-breadcrumb, .yoast-breadcrumb, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible {
    text-decoration-line: underline !important;
    text-decoration-color: #0EAAA6 !important;
    text-underline-offset: 0.15em;
}

/* Override the native Bootstrap anchor outline reset for keyboard users. */
body :is(.page_bc, .hpps-product-breadcrumb, .hpps-wl-breadcrumb, .hpps-docs-breadcrumb, .breadcrumb, .breadcrumbs, .woocommerce-breadcrumb, .rank-math-breadcrumb, .yoast-breadcrumb, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body.woocommerce-cart a.restore-item[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body.woocommerce-cart :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper) a[href*="undo_item="]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body.single-agent .singleTop > .entry-content a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body.single-agent .singleTop > .row > [class*="col-"] > .row > .col-xs-8 a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body.single-agent .hprc-profile-root .hprc-profile-about a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body.single-agent .hprc-profile-root .hprc-profile-contact-row a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body .hpps-account-panel > p > a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body .woocommerce :is(.lost_password, .woocommerce-LostPassword) a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body :is(.woocommerce, .hpps-account-panel) a.woocommerce-privacy-policy-link[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible,
body :is(.woocommerce, .hpps-account-panel) .woocommerce-privacy-policy-text a[href]:not(.btn):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.hprc-profile-action):not(.hpps-button):not([role="button"]):focus-visible {
    outline: 2px solid #0EAAA6 !important;
    outline-offset: 3px;
}
