/**
 * Messages WooCommerce sur tout le site (confirmation, information, erreur) :
 * carte grise et pastille rose, dans le style du site, au lieu du bandeau vert.
 * Ex. : « T-shirt supprimé. Annuler ? », code promo appliqué, erreurs de la
 * page Commande ou de Mon compte.
 */

.woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    width: auto;
    margin: 0 0 24px !important;
    padding: 14px 18px 14px 54px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #f4f4f4 !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    list-style: none;
    text-align: left;
    outline: none;
}

.woocommerce-error {
    flex-direction: column;
    align-items: flex-start;
    background: #fdecef !important;
}

.woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Pastille : coche rose (confirmation), « i » noir (information), « ! » (erreur) */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 18px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    border-radius: 50%;
    background: #e63c69 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat;
    font-family: inherit !important;
    transform: translateY(-50%);
}

.woocommerce-info::before {
    background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.2v.1'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.woocommerce-error::before {
    top: 14px !important;
    background: #c92f58 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.3v.1'/%3E%3C/svg%3E") center / 16px no-repeat;
    transform: none;
}

/* Liens et boutons dans un message (« Annuler ? », « Voir le panier »…) : simple lien */
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: #111 !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover {
    color: #c92f58 !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: none !important;
    order: 2;
    min-height: 0 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
}
