/* Target the specific menu item we added (ID 3133) and the mini cart widget */

/* Hide the text in the My Account link, but keep the link active */
.menu-item-3133 > a {
    position: relative;
    color: transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide Astra's default menu text span if present */
.menu-item-3133 > a .menu-text {
    display: none !important;
}

/* Create the user icon via pseudo-element */
.menu-item-3133 > a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #A0522D; /* Normal color */
    /* SVG User Outline Icon */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>') no-repeat center / contain;
    transition: background-color 0.3s ease;
    position: absolute;
}

/* Hover color for Account Icon */
.menu-item-3133 > a:hover::before {
    background-color: #708090 !important;
}

/* Override Mini Cart Widget Icon colors to match exactly */
.elementor-widget-wc_mini_cart_7c08c000 .wc-mini-cart-toggle i,
.elementor-widget-wc_mini_cart_7c08c000 .wc-mini-cart-toggle svg {
    color: #A0522D !important;
    fill: #A0522D !important;
    transition: all 0.3s ease;
}

.elementor-widget-wc_mini_cart_7c08c000 .wc-mini-cart-toggle:hover i,
.elementor-widget-wc_mini_cart_7c08c000 .wc-mini-cart-toggle:hover svg {
    color: #708090 !important;
    fill: #708090 !important;
}

/* Ensure mobile layout sits nicely */
@media (max-width: 921px) {
    .menu-item-3133 > a::before {
        width: 24px;
        height: 24px;
        position: relative;
    }
}