/* =========================================================
   ОСНОВЕН ДИЗАЙН
========================================================= */

body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
    --myn-accent: var(--mya-accent);

    position: relative !important;
    display: flow-root !important;

    width: auto;
    max-width: 100%;
    min-height: 60px;

    margin: 0 0 20px !important;
    padding: 18px 20px 18px 58px !important;

    border: 1px solid #e1e1e1 !important;
    border-left: 3px solid var(--myn-accent) !important;
    border-radius: 10px !important;

    background: #fbfbfb !important;
    background-image: none !important;

    color: #434343 !important;

    font-family: var(--mya-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;

    box-shadow: 0 4px 16px rgba(26,26,26, .035) !important;

    box-sizing: border-box !important;
    overflow-wrap: anywhere;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    clear: both;
}

/* Запазва естественото скриване, ако плъгинът го използва. */

body .woocommerce-message[hidden],
body .woocommerce-info[hidden],
body .woocommerce-error[hidden] {
    display: none !important;
}

/* =========================================================
   ИКОНКИ — БЕЗ ЗАВИСИМОСТ ОТ ИКОНОВ ШРИФТ
========================================================= */

body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 25px !important;
    height: 25px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #eaeaea !important;
    color: var(--myn-accent) !important;

    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-align: center !important;
    text-shadow: none !important;

    transform: none !important;
    box-shadow: none !important;
}

body .woocommerce-message::before {
    content: "\2713" !important;
}

body .woocommerce-info::before {
    content: "i" !important;
}

body .woocommerce-error::before {
    content: "!" !important;
}

body .woocommerce-message::after,
body .woocommerce-info::after,
body .woocommerce-error::after {
    content: none !important;
}

/* =========================================================
   ИНФОРМАЦИОННИ СЪОБЩЕНИЯ
========================================================= */

body .woocommerce-info {
    border-color: #e6e6e6 !important;
    border-left-color: var(--mya-accent) !important;
    background: #fafafa !important;
}

body .woocommerce-info::before {
    background: #eaeaea !important;
}

/* =========================================================
   ГРЕШКИ
========================================================= */

body .woocommerce-error {
    list-style: none !important;
    background: #f7f7f7 !important;
    border-color: #dadada !important;
    border-left-color: var(--mya-accent) !important;
    color: #3d3d3d !important;
}

body .woocommerce-error::before {
    background: #e2e2e2 !important;
}

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

    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body .woocommerce-error > li + li {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(175,31,43, .1);
}

/* =========================================================
   ТЕКСТ И ЛИНКОВЕ
========================================================= */

body .woocommerce-message p,
body .woocommerce-info p,
body .woocommerce-error p {
    margin: 0 !important;
    color: inherit;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body .woocommerce-message p + p,
body .woocommerce-info p + p,
body .woocommerce-error p + p {
    margin-top: 8px !important;
}

body .woocommerce-message a:not(.button),
body .woocommerce-info a:not(.button),
body .woocommerce-error a:not(.button) {
    color: var(--mya-accent) !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 750 !important;

    text-decoration: underline !important;
    text-decoration-color: rgba(175,31,43, .35) !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;

    background: transparent !important;
    box-shadow: none !important;
    transition: color .15s;
}

body .woocommerce-message a:not(.button):hover,
body .woocommerce-info a:not(.button):hover,
body .woocommerce-error a:not(.button):hover {
    color: var(--mya-accent) !important;
    text-decoration-color: currentColor !important;
}

/* „Отмяна“ след премахнат продукт. */

body .woocommerce-message a.restore-item {
    display: inline-block;
    margin-left: 5px;
    white-space: nowrap;
}

/* =========================================================
   БУТОНИ В ИЗВЕСТИЯТА
========================================================= */

body .woocommerce-message a.button,
body .woocommerce-info a.button,
body .woocommerce-error a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: right !important;

    width: auto !important;
    min-height: 34px !important;
    height: auto !important;

    margin: -4px 0 4px 18px !important;
    padding: 8px 13px !important;

    border: 1px solid #cccccc !important;
    border-radius: 6px !important;

    background: #fff !important;
    background-image: none !important;
    color: var(--mya-accent) !important;

    font-family: var(--mya-font) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;
    text-transform: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;

    box-shadow: none !important;
    transform: none !important;

    transition:
        background .15s,
        border-color .15s,
        color .15s !important;
}

body .woocommerce-message a.button:hover,
body .woocommerce-info a.button:hover,
body .woocommerce-error a.button:hover {
    border-color: var(--mya-accent) !important;
    background: var(--mya-accent) !important;
    color: #fff !important;
}

body .woocommerce-message a.button::before,
body .woocommerce-message a.button::after,
body .woocommerce-info a.button::before,
body .woocommerce-info a.button::after,
body .woocommerce-error a.button::before,
body .woocommerce-error a.button::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   КЛАВИАТУРЕН ФОКУС
   Премахва постоянната синя рамка от програмния фокус,
   но запазва видим фокус при навигация с клавиатура.
========================================================= */

body .woocommerce-message:focus,
body .woocommerce-info:focus,
body .woocommerce-error:focus {
    outline: none !important;
}

body .woocommerce-message:focus-visible,
body .woocommerce-info:focus-visible,
body .woocommerce-error:focus-visible,
body .woocommerce-message a:focus-visible,
body .woocommerce-info a:focus-visible,
body .woocommerce-error a:focus-visible {
    outline: 2px solid var(--mya-accent) !important;
    outline-offset: 3px !important;
}

/* =========================================================
   CHECKOUT СЪВМЕСТИМОСТ
========================================================= */

body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
body.woocommerce-checkout form.checkout > .woocommerce-message,
body.woocommerce-checkout form.checkout > .woocommerce-info,
body.woocommerce-checkout form.checkout > .woocommerce-error {
    grid-column: 1 / -1 !important;
    min-width: 0;
}

/* =========================================================
   МОБИЛЕН ДИЗАЙН
========================================================= */

@media (max-width: 600px) {

    body .woocommerce-message,
    body .woocommerce-info,
    body .woocommerce-error {
        min-height: 54px;
        margin-bottom: 15px !important;
        padding: 14px 14px 14px 48px !important;

        border-radius: 8px !important;

        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    body .woocommerce-message::before,
    body .woocommerce-info::before,
    body .woocommerce-error::before {
        top: 14px !important;
        left: 13px !important;

        width: 23px !important;
        height: 23px !important;

        font-size: 14px !important;
    }

    body .woocommerce-message a.button,
    body .woocommerce-info a.button,
    body .woocommerce-error a.button {
        float: none !important;
        display: table !important;

        max-width: 100% !important;

        margin: 0 0 9px !important;
        padding: 7px 11px !important;

        font-size: 12px !important;
    }

}
