/* Lofind Account Bridge v0.2.8: one matching icon per account destination.
   All rules are scoped to the existing WooCommerce My Account interface. */
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) :is(.downloads-link,.edit-address-link),
body.woocommerce-account .woocommerce-MyAccount-content > :is(.downloads-link,.edit-address-link) { display:none!important; }

/* Only suppress Woodmart's original icons AFTER the matching inline SVG has
   been placed. Do not stack CSS masks, theme glyphs and SVGs together. */
body.woocommerce-account .woocommerce-MyAccount-navigation li.lofind-icon-host::before,
body.woocommerce-account .woocommerce-MyAccount-navigation li.lofind-icon-host::after,
body.woocommerce-account .woocommerce-MyAccount-navigation a.lofind-iconified::before,
body.woocommerce-account .woocommerce-MyAccount-navigation a.lofind-iconified::after,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) .lofind-icon-host::before,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) .lofind-icon-host::after,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified::before,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified::after {
    content:none!important;
    display:none!important;
    background:none!important;
    -webkit-mask:none!important;
    mask:none!important;
}
/* Protect against themes that render a separate <i> or background SVG inside links. */
body.woocommerce-account .woocommerce-MyAccount-navigation a.lofind-iconified > i,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified > i { display:none!important; }

body.woocommerce-account .woocommerce-MyAccount-navigation li.lofind-icon-host > a {
    display:flex!important;
    align-items:center!important;
    gap:11px!important;
    font-weight:400!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li > a,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a { font-weight:400!important; }
body.woocommerce-account .lofind-inline-account-icon {
    box-sizing:border-box;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 19px;
    width:19px;
    height:19px;
    margin:0;
    padding:0;
    color:#707a88;
}
body.woocommerce-account .lofind-inline-account-icon svg {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    stroke:currentColor!important;
    fill:none!important;
    margin:0!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active .lofind-inline-account-icon,
body.woocommerce-account .woocommerce-MyAccount-navigation li > a:hover .lofind-inline-account-icon { color:#ff6600; }

/* These styles apply to BOTH generations of Woodmart dashboard card wrappers. */
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified {
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:10px!important;
    text-align:center!important;
}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) .lofind-inline-account-icon-card {
    flex:0 0 50px!important;
    width:50px!important;
    height:50px!important;
    color:#adb3bc;
}
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified:hover .lofind-inline-account-icon-card {color:#ff6600;}
@media(max-width:767px){
    body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) .lofind-inline-account-icon-card {
        flex-basis:40px!important;
        width:40px!important;
        height:40px!important;
    }
}


/* Hide Woodmart's original dashboard-card icons once our matching SVG is added.
   Keep text labels visible. */
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified > :is(.wd-tools-icon,.wd-link-icon,.wd-dashboard-icon,.account-link-icon,.wd-my-account-link-icon,.wd-tools-inner > .wd-tools-icon, .wd-tools-inner > svg, .wd-tools-inner > img),
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified > svg,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified > img,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified > i,
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-iconified > [class*="icon"]:not(.lofind-inline-account-icon):not(.lofind-inline-account-icon-card) {
    display:none!important;
}

/* Do not show a logout shortcut tile in the dashboard grid; logout remains in the sidebar menu. */
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links) a.lofind-hide-account-card {
    display:none!important;
}


/* v0.6.1: lighter, theme-consistent icon outlines in the dashboard tiles.
   The sidebar retains its original 1.7 stroke and identical shapes. */
body.woocommerce-account .woocommerce-MyAccount-content :is(.woodmart-my-account-links,.wd-my-account-links)
  .lofind-inline-account-icon-card svg {
    stroke-width: 1.15 !important;
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
}
