/* Mini-cart (off-canvas) peste butoanele flotante */
.mfp-bg {
    z-index: 999998 !important;
}
.mfp-wrap {
    z-index: 999999 !important;
}

.ms-product-attributes {
    margin: 10px 0;
    padding: 0;         
    list-style: none;    
}
.ms-product-attributes .ms-attr {
    margin: 0 0 4px;
    padding: 0;
}
.ms-attr__label { font-weight: 600; }

.woocommerce-variation-add-to-cart, form.cart {
    gap: 0px; !important
}

/* ============================================================
   Mesaj „Produs adăugat în coș”
   Compatibil cu markup-ul WooCommerce standard și Flatsome
   ============================================================ */
body:not(.woocommerce-account) .woocommerce-message:not(.message-wrapper),
body:not(.woocommerce-account) .woocommerce-message.message-wrapper .message-container {
    position: relative;
    box-sizing: border-box;
    min-height: 58px;
    margin: 18px auto !important;
    padding: 16px 18px 16px 54px !important;
    border: 1px solid #e4dfec !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #f8f6fb 0%, #f3eff8 100%) !important;
    color: #2f2938 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: none !important;
}

/* Iconița de confirmare pentru mesajul WooCommerce standard. */
body:not(.woocommerce-account) .woocommerce-message:not(.message-wrapper)::before {
    content: "\2713" !important;
    position: absolute;
    top: 50%;
    left: 16px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #5d4a87;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

/* Flatsome include deja iconița în interiorul mesajului. */
body:not(.woocommerce-account) .woocommerce-message.message-wrapper .message-container > i {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    background: #5d4a87;
    color: #fff !important;
    font-size: 14px;
    transform: translateY(-50%);
}

body:not(.woocommerce-account) .woocommerce-message .button.wc-forward {
    float: right;
    min-height: 38px;
    margin: -6px 0 -6px 18px !important;
    padding: 0 18px !important;
    border: 1px solid #5d4a87 !important;
    border-radius: 7px !important;
    background: #5d4a87 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body:not(.woocommerce-account) .woocommerce-message .button.wc-forward:hover {
    border-color: #49376f !important;
    background: #49376f !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body:not(.woocommerce-account) .woocommerce-message .button.wc-forward:focus-visible {
    outline: 3px solid rgba(93, 74, 135, 0.22);
    outline-offset: 2px;
}

@media (max-width: 549px) {
    body:not(.woocommerce-account) .woocommerce-message:not(.message-wrapper),
    body:not(.woocommerce-account) .woocommerce-message.message-wrapper .message-container {
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        min-height: 0;
        margin: 12px auto !important;
        padding: 14px 14px 14px 50px !important;
        font-size: 13px;
    }

    body:not(.woocommerce-account) .woocommerce-message:not(.message-wrapper)::before,
    body:not(.woocommerce-account) .woocommerce-message.message-wrapper .message-container > i {
        top: 14px;
        left: 13px;
        transform: none;
    }

    body:not(.woocommerce-account) .woocommerce-message .button.wc-forward {
        float: none;
        width: 100%;
        margin: 12px 0 0 !important;
        text-align: center;
    }
}

/* ============================================================
   Buton eliminare produs din mini-cart și pagina coșului
   ============================================================ */
.widget_shopping_cart .remove.remove_from_cart_button,
.woocommerce-mini-cart .remove.remove_from_cart_button,
.woocommerce-cart td.product-remove .remove {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid #d6cfe2 !important;
    border-radius: 50% !important;
    background: #f8f6fb !important;
    color: #5d4a87 !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woocommerce-cart td.product-remove .remove {
    margin: 0 auto !important;
}

.widget_shopping_cart .remove.remove_from_cart_button:hover,
.woocommerce-mini-cart .remove.remove_from_cart_button:hover,
.woocommerce-cart td.product-remove .remove:hover {
    border-color: #5d4a87 !important;
    background: #5d4a87 !important;
    color: #fff !important;
}

.widget_shopping_cart .remove.remove_from_cart_button:focus-visible,
.woocommerce-mini-cart .remove.remove_from_cart_button:focus-visible,
.woocommerce-cart td.product-remove .remove:focus-visible {
    outline: 3px solid rgba(93, 74, 135, 0.22) !important;
    outline-offset: 2px;
}

.widget_shopping_cart .remove.remove_from_cart_button.loading,
.woocommerce-mini-cart .remove.remove_from_cart_button.loading {
    cursor: wait;
    opacity: 0.5 !important;
    pointer-events: none;
}

@media (max-width: 549px) {
    .widget_shopping_cart .remove.remove_from_cart_button,
    .woocommerce-mini-cart .remove.remove_from_cart_button,
    .woocommerce-cart td.product-remove .remove {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px;
    }
}

/* ============================================================
   Selector cantitate din pagina coșului
   ============================================================ */
.woocommerce-cart td.product-quantity .ux-quantity.quantity {
    width: max-content;
    height: 40px;
    display: inline-flex !important;
    align-items: stretch;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d6cfe2;
    border-radius: 6px;
    background: #fff;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.woocommerce-cart td.product-quantity .ux-quantity.quantity:focus-within {
    border-color: #5d4a87;
}

.woocommerce-cart td.product-quantity .ux-quantity__button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f8f6fb !important;
    color: #5d4a87 !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 38px !important;
    text-align: center;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-cart td.product-quantity .ux-quantity__button:hover {
    background: #5d4a87 !important;
    color: #fff !important;
}

.woocommerce-cart td.product-quantity .ux-quantity__button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #5d4a87 !important;
    outline-offset: -2px;
}

.woocommerce-cart td.product-quantity .qty {
    width: 46px !important;
    min-width: 46px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-right: 1px solid #e4dfec !important;
    border-left: 1px solid #e4dfec !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #2f2938 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 38px !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.woocommerce-cart td.product-quantity .qty::-webkit-inner-spin-button,
.woocommerce-cart td.product-quantity .qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.woocommerce-cart td.product-quantity .ux-quantity__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 549px) {
    .woocommerce-cart td.product-quantity .ux-quantity.quantity {
        height: 38px;
    }

    .woocommerce-cart td.product-quantity .ux-quantity__button {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
    }

    .woocommerce-cart td.product-quantity .qty {
        width: 42px !important;
        min-width: 42px !important;
        height: 36px !important;
        line-height: 36px !important;
    }
}
