/* Seed Toast Notices styles */
.woocommerce-notices-wrapper {
    position: fixed;
    top: 100px; /* Header alatt, de lebegve */
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Átkattintható a terület, ahol nincs üzenet */
    max-width: 350px;
    width: 100%;
}

@media (max-width: 600px) {
    .woocommerce-notices-wrapper {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    pointer-events: auto; /* Az üzenet már nem átkattintható */
    background: #fff !important;
    color: #333 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 40px 15px 20px !important; /* Jobb oldali padding a bezáró gombnak */
    margin: 0 !important;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: seed-slideIn 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Enyhe rugózás */
    border: none !important;
    border-left: 6px solid #ccc !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

/* Ikonok elrejtése vagy egyéni stílus - alapértelmezetten a WC :before-t használ */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important; /* Saját ikonokat használunk ha kell, vagy elhagyjuk a tisztább designért */
}

/* Success */
.woocommerce-message {
    border-left-color: #4ab866 !important;
}

/* Info */
.woocommerce-info {
    border-left-color: #3d9cd2 !important;
}

/* Error */
.woocommerce-error {
    border-left-color: #d9534f !important;
}
.woocommerce-error li {
    list-style: none !important; 
    margin: 0 !important;
}

/* Gombok az üzeneten belül (pl. "Visszavonás") */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
    float: none !important;
    margin-top: 5px !important;
    margin-left: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-decoration: underline !important;
    padding: 0 !important;
    font-weight: 600 !important;
    display: block;
    width: 100%;
    text-align: left;
}
.woocommerce-message .restore-item {
    font-size: 12px;
    opacity: 0.8;
}

/* Bezáró X gomb */
.seed-toast-dismiss {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-indent: 0 !important;
    opacity: 0.4;
    color: #000 !important;
    transition: opacity 0.2s;
    border-radius: 50%;
    
    /* Reset other potential theme button styles */
    line-height: normal !important; 
    font-size: 0 !important; /* Elrejti a szöveges csomópontokat, ha lennének */
}
.seed-toast-dismiss svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: auto !important; /* Extra biztosítás a középre igazításhoz */
    pointer-events: none;
    fill: none;
}
.seed-toast-dismiss:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.05) !important;
}

/* Animációk */
@keyframes seed-slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes seed-fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
