/* Compact WooCommerce notifications */
.pb-toast-region {
    position: fixed;
    z-index: 10050;
    top: 96px;
    right: 22px;
    display: grid;
    width: min(460px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}

.admin-bar .pb-toast-region {
    top: 128px;
}

.pb-toast {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    gap: 14px;
    align-items: center;
    min-height: 84px;
    padding: 16px 16px 16px 18px;
    border: 1px solid rgba(12, 16, 21, .1);
    border-left: 4px solid #e73324;
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-10px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
    backdrop-filter: blur(14px);
}

.pb-toast.is-visible {
    opacity: 1;
    transform: none;
}

.pb-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
}

.pb-toast__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2f9e53;
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
}

.pb-toast--error {
    border-left-color: #d93025;
}

.pb-toast--error .pb-toast__icon {
    background: #d93025;
}

.pb-toast--notice {
    border-left-color: #e2a11d;
}

.pb-toast--notice .pb-toast__icon {
    background: #e2a11d;
}

.pb-toast__content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: #292929;
    font-size: 15px;
    line-height: 1.4;
}

.pb-toast__content p {
    margin: 0;
}

.pb-toast__content a,
.pb-toast__content a.button,
.pb-toast__content .wc-forward {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #171717;
    border-radius: 0;
    background: #171717;
    color: #fff;
    box-shadow: none;
    font-family: "Saira Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease;
}

.pb-toast__content a:hover,
.pb-toast__content a:focus-visible,
.pb-toast__content a.button:hover,
.pb-toast__content a.button:focus-visible,
.pb-toast__content .wc-forward:hover,
.pb-toast__content .wc-forward:focus-visible {
    border-color: #e73324;
    background: #e73324;
    color: #fff;
}

body button.pb-toast__close {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #666;
    line-height: 1;
    cursor: pointer;
}

body button.pb-toast__close:hover,
body button.pb-toast__close:focus-visible {
    background: #f1f0ed;
    color: #171717;
}

body button.pb-toast__close svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 767px) {
    .pb-toast-region,
    .admin-bar .pb-toast-region {
        top: 78px;
        right: 16px;
    }

    .pb-toast {
        grid-template-columns: 40px minmax(0, 1fr) 30px;
        min-height: 76px;
        padding: 14px;
    }

    .pb-toast__icon {
        width: 40px;
        height: 40px;
    }

    .pb-toast__content {
        display: grid;
        gap: 8px;
        font-size: 14px;
    }

    .pb-toast__content a,
    .pb-toast__content a.button,
    .pb-toast__content .wc-forward {
        width: fit-content;
        min-height: 34px;
        padding: 8px 12px;
        font-size: 12px;
    }
}
