/**
 * WooCommerce Bildirim Stilleri - Tüm bildirim türleri için genel çözüm
 * Tüm farklı CSS dosyalarındaki bildirim stilleri bu dosyada birleştirilmiştir.
 */

/* --- Temel WooCommerce Mesaj Kutusu Stilleri --- */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
    width: 100% !important;
    max-width: 1140px !important; /* Sayfa içeriğiyle aynı genişlik */
    margin: 0 auto 20px auto !important; /* Ortalanmış */
    padding: 15px !important;
    border: 0 !important; /* Hiçbir kenarda çerçeve yok */
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: #ffffff !important; /* Beyaz arka plan */
    color: #333333 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: block !important; /* Flex yerine block kullanıyoruz */
    font-family: inherit !important;
    position: relative !important; /* Butonun sağa hizalanması için */
    overflow: hidden !important; /* Float kullanımı için gerekli */
}

/* --- Özel mesaj ikonları --- */
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before {
    content: none !important;
    display: none !important;
}

/* --- Mesaj İçeriği --- */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
    padding-left: 15px !important;
    text-align: left !important;
}

/* --- Buton Stilleri --- */
body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button {
    float: right !important; /* Sağa hizalama */
    margin: -5px 0 0 15px !important;
    padding: 8px 15px !important;
    border: none !important;
    border-radius: 3px !important;
    background-color: #8fae1b !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-weight: normal !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    transition: background-color 0.3s !important;
}

/* --- Buton Hover Efekti --- */
body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover,
body .woocommerce-error .button:hover {
    background-color: #72891a !important;
    color: #ffffff !important;
}

/* --- Hata Mesajları İçin Liste Düzeni --- */
body .woocommerce-error li {
    font-size: 14px !important; 
    margin-bottom: 5px !important;
}

body .woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

/* --- Boş Sepet Mesajı --- */
.cart-empty.woocommerce-info {
    text-align: center !important;
    padding: 20px !important;
    background-color: #ffffff !important; /* Beyaz arka plan */
    border-radius: 0 !important;
    margin-bottom: 20px !important;
}

/* --- Mobil Görünüm --- */
@media (max-width: 768px) {
    body .woocommerce-message,
    body .woocommerce-info,
    body .woocommerce-error {
        padding: 12px !important;
    }
    
    body .woocommerce-message .button,
    body .woocommerce-info .button,
    body .woocommerce-error .button {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 10px 0 5px 0 !important;
        text-align: center !important;
    }
}
