/**
 * Site Geneli Duyuru — ortak toast görünümü (admin Önizle + ön yüz)
 * Tipografi px: tema/admin html font-size farkı rem’i bozmasın.
 */

/* Notyf varsayılan kenar boşluğu (Önizle ile aynı) */
.notyf {
    padding: 20px !important;
    box-sizing: border-box;
}

/* Mobilde Notyf tam genişlik şeridi — Önizle’deki köşe kartı kalsın */
@media only screen and (max-width: 480px) {
    .notyf {
        padding: 20px !important;
    }

    .notyf__toast {
        max-width: 300px !important;
        width: auto !important;
        border-radius: 2px !important;
        box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.25) !important;
    }
}

.notyf__toast.ty-toast-painted {
    background-clip: padding-box;
}

.notyf__toast.ty-toast-light {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.25) !important;
}

.notyf__toast .ty-toast-body {
    display: block;
    line-height: 1.35;
    max-width: 280px;
    color: inherit;
}

.notyf__toast .ty-toast-title {
    display: block;
    font-weight: 500 !important;
    font-size: 15px;
    margin: 0 0 4px;
}

.notyf__toast .ty-toast-msg {
    display: block;
    font-weight: 400;
    font-size: 13px;
}

.notyf__toast .ty-toast-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 13px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notyf__toast .ty-toast-link:hover,
.notyf__toast .ty-toast-link:focus {
    opacity: 0.85;
}

.notyf__toast .ty-toast-icon.dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
}

/*
 * Tek katmanlı fade: Notyf’in toast + message + icon + dismiss
 * için ayrı gecikmeli animasyonları giriş/çıkışta takılma yapıyordu.
 */
@keyframes ty-toast-in {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ty-toast-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }
}

.notyf__toast {
    -webkit-animation: ty-toast-in 0.32s ease-out forwards !important;
    animation: ty-toast-in 0.32s ease-out forwards !important;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.notyf__toast.notyf__toast--disappear {
    -webkit-animation: ty-toast-out 0.28s ease-in forwards !important;
    animation: ty-toast-out 0.28s ease-in forwards !important;
    -webkit-animation-delay: 0s !important;
    animation-delay: 0s !important;
}

.notyf__toast .notyf__message,
.notyf__toast .notyf__icon,
.notyf__toast .notyf__dismiss,
.notyf__toast.notyf__toast--disappear .notyf__message,
.notyf__toast.notyf__toast--disappear .notyf__icon,
.notyf__toast.notyf__toast--disappear .notyf__dismiss {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-animation-delay: 0s !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
    transform: none !important;
}
