/* Modern card-style theme for toastr notifications */

#toast-container.toast-top-right {
    top: 72px;
    right: 16px;
}

#toast-container { z-index: 100000020 !important; }

#toast-container > .toast {
    position: relative;
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 12px 36px 14px 56px;
    margin: 0 0 10px;
    border-radius: 10px;
    border: 1px solid #e3e9f1;
    border-left: 4px solid #94a3b8;
    background-color: #fff;
    background-image: none !important;
    color: #33455c;
    opacity: 1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: wp-toast-in 0.22s ease-out;
}

#toast-container > .toast:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
    opacity: 1;
    cursor: default;
}

#toast-container > .toast::before {
    position: absolute;
    left: 14px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
}

#toast-container > .toast-success { border-left-color: #16a34a; }
#toast-container > .toast-success::before { content: "\f00c"; color: #16a34a; background: #dcfce7; }
#toast-container > .toast-success .toast-progress { background-color: #16a34a; }

#toast-container > .toast-error { border-left-color: #dc2626; }
#toast-container > .toast-error::before { content: "\f00d"; color: #dc2626; background: #fee2e2; }
#toast-container > .toast-error .toast-progress { background-color: #dc2626; }

#toast-container > .toast-warning { border-left-color: #d97706; }
#toast-container > .toast-warning::before { content: "\f071"; color: #d97706; background: #fef3c7; }
#toast-container > .toast-warning .toast-progress { background-color: #d97706; }

#toast-container > .toast-info { border-left-color: #2563eb; }
#toast-container > .toast-info::before { content: "\f129"; color: #2563eb; background: #dbeafe; }
#toast-container > .toast-info .toast-progress { background-color: #2563eb; }

#toast-container .toast-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 2px;
}

#toast-container .toast-message {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #475569;
    word-wrap: break-word;
}

#toast-container .toast-message a {
    color: #2563eb;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 8px;
    right: 10px;
    float: none;
    font-size: 1.1rem;
    font-weight: 400;
    color: #94a3b8;
    text-shadow: none;
    opacity: 1;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    color: #475569;
    opacity: 1;
}

#toast-container .toast-progress {
    height: 3px;
    opacity: 0.6;
}

@keyframes wp-toast-in {
    from { transform: translateX(24px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 576px) {
    #toast-container.toast-top-right {
        top: 64px;
        right: 8px;
        left: 8px;
    }

    #toast-container > .toast {
        width: auto;
    }
}
