/* 1. Ukryj standardowe, duże komunikaty WooCommerce na górze strony */
.woocommerce-notices-wrapper {
    display: none !important;
}

/* 2. Styl chmurki (Toast) */
#custom-cart-toast {
    position: fixed;
    top: 100px; /* Dostosuj wysokość, żeby było pod nagłówkiem */
    right: 20px; /* Odległość od prawej krawędzi */
    z-index: 99999;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    border-left: 4px solid #0d6efd; /* Kolor Twojego przycisku (niebieski) */
    padding: 15px 25px;
    transform: translateX(120%); /* Domyślnie ukryty poza ekranem */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    max-width: 300px;
}

/* Klasa aktywna - wsuwa chmurkę */
#custom-cart-toast.active {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    color: #0d6efd;
    font-weight: bold;
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Opcjonalnie: Responsywność na telefonach */
@media (max-width: 768px) {
    #custom-cart-toast {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(150%);
    }
    #custom-cart-toast.active {
        transform: translateY(0);
    }
}

/* Ukrycie standardowych powiadomień na 100% */
.woocommerce-notices-wrapper, 
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Opcjonalnie: Styl dla buttona podczas ładowania */
.custom-cart-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* Ukryj link "Zobacz koszyk", który pojawia się po dodaniu produktu */
a.added_to_cart.wc-forward {
    display: none !important;
}

