/* Only marked add-to-cart success notices are restyled. Errors remain native. */
body .woocommerce-message:has(.dp-cart-notice__content),
body .woocommerce-message.dp-cart-notice {
    --dp-notice-pink: var(--e-global-color-primary, #eb008b);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 16px 24px;
    width: min(1180px, calc(100% - 64px));
    max-width: 1180px;
    margin: 24px auto;
    padding: 20px 22px;
    border: 1px solid #e4e8ed;
    border-left: 3px solid var(--dp-notice-pink);
    border-radius: 7px;
    background: #fff;
    color: #15212c;
    box-shadow: none;
    font-family: Rubik, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    list-style: none;
}
body .woocommerce-message:has(.dp-cart-notice__content)::before,
body .woocommerce-message:has(.dp-cart-notice__content)::after { display: none; content: none; }
body .woocommerce-message .dp-cart-notice__content { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 3px 14px; align-items: center; min-width: 0; }
body .woocommerce-message .dp-cart-notice__content::before { content: ''; grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; background: #fff2f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='m11 18 5 5 9-10' fill='none' stroke='%23EB008B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
body .woocommerce-message .dp-cart-notice__title { display: block; grid-column: 2; font-size: 15px; font-weight: 500; line-height: 1.5; color: #15212c; }
body .woocommerce-message .dp-cart-notice__products { display: block; grid-column: 2; font-size: 13px; line-height: 1.6; color: #626c78; overflow-wrap: anywhere; }
body .woocommerce-message a.button.dp-cart-notice__action { display: inline-flex; float: none; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 11px 20px; border: 1px solid var(--dp-notice-pink); border-radius: 5px; background: var(--dp-notice-pink); color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; text-decoration: none; box-shadow: none; }
body .woocommerce-message a.button.dp-cart-notice__action:hover { background: #c50075; border-color: #c50075; color: #fff; }
body .woocommerce-message button.dp-cart-notice__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 5px; background: #fff; color: #626c78; font-family: Arial, sans-serif; font-size: 24px; line-height: 1; font-weight: 400; cursor: pointer; box-shadow: none; }
body .woocommerce-message button.dp-cart-notice__close:hover { background: #f7f8fa; border-color: #e4e8ed; color: #15212c; }
body .woocommerce-message :is(.dp-cart-notice__action,.dp-cart-notice__close):focus-visible { outline: 3px solid #15212c; outline-offset: 3px; }
@media (max-width: 600px) {
    body .woocommerce-message:has(.dp-cart-notice__content), body .woocommerce-message.dp-cart-notice { grid-template-columns: minmax(0,1fr) 44px; width: calc(100% - 36px); margin: 18px auto; padding: 16px; gap: 16px 4px; align-items: start; }
    body .woocommerce-message .dp-cart-notice__content { grid-column: 1; grid-row: 1; grid-template-columns: 28px minmax(0,1fr); column-gap: 10px; }
    body .woocommerce-message .dp-cart-notice__content::before { width: 28px; height: 28px; background-size: 28px; align-self: start; }
    body .woocommerce-message .dp-cart-notice__title { font-size: 14px; }
    body .woocommerce-message .dp-cart-notice__products { font-size: 12px; }
    body .woocommerce-message a.button.dp-cart-notice__action { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 46px; }
    body .woocommerce-message button.dp-cart-notice__close { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
    body .woocommerce-message :is(.dp-cart-notice__action,.dp-cart-notice__close) { transition: none; }
}
