/* "Added to basket" message */

.px-added-toast {
    position: fixed;
    z-index: 100000;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    padding: 14px 14px 14px 16px;
    border-left: 4px solid #2e7d4f;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
    color: #242424;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.px-added-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

.px-added-toast__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2e7d4f;
    color: #fff;
}

.px-added-toast__icon svg {
    width: 16px;
    height: 16px;
}

.px-added-toast__text {
    flex: 1 1 auto;
    min-width: 0;
}

.px-added-toast__link {
    flex: 0 0 auto;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.px-added-toast .px-added-toast__close {
    flex: 0 0 auto;
    width: 28px;
    min-width: 0;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #8a8a8a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.px-added-toast .px-added-toast__close:hover {
    color: #242424;
}

/* Cart page "removed / Undo" variant */
.px-added-toast--removed {
    border-left-color: #8a8a8a;
}

@media (max-width: 600px) {
    .px-added-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .px-added-toast,
    .px-added-toast.is-visible {
        transform: none;
        transition: none;
    }
}
