/* Kaydedildi / hata bildirimleri (toastr): sitenin panel kartıyla aynı yapı.
   Kart = .dg-panel (ince çerçeve, 12px köşe), ikon kutusu = .dg-icon (çerçeveli kare).
   Türü yalnızca ikon kutusunun rengi ve alttaki süre çizgisi belirtir.
   Üst çubuğun altında açılır, çubuğun üstüne binmez. toastr.min.css'ten sonra yüklenir. */

#toast-container.toast-top-right {
    top: 96px;
    right: 24px;
}

#toast-container > .toast {
    --toast-tone: var(--main-color);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 360px;
    max-width: calc(100vw - 32px);
    margin: 0 0 12px;
    padding: 14px 44px 14px 14px;
    border: 1px solid var(--line-color);
    border-radius: 12px;
    background: var(--base-color);
    background-image: none !important;
    box-shadow: 0 10px 24px var(--c-black-a9);
    color: var(--base-text);
    font-family: var(--font);
    opacity: 1;
    transition: border-color .2s ease;
}

#toast-container > .toast:hover {
    border-color: color-mix(in srgb, var(--toast-tone) 45%, transparent);
    box-shadow: 0 10px 24px var(--c-black-a9);
    opacity: 1;
}

/* İkon kutusu: .dg-icon ile aynı ölçü ve çerçeve */
#toast-container > .toast::before {
    content: "";
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--toast-tone) 45%, transparent);
    border-radius: 12px;
    background: var(--bg);
}

#toast-container > .toast::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 26px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: var(--toast-tone);
    -webkit-mask: var(--toast-icon) center / contain no-repeat;
    mask: var(--toast-icon) center / contain no-repeat;
}

#toast-container > .toast-success {
    --toast-tone: var(--success);
    --toast-icon: url(../images/toast/success.svg);
}

#toast-container > .toast-error {
    --toast-tone: var(--danger);
    --toast-icon: url(../images/toast/error.svg);
}

#toast-container > .toast-warning {
    --toast-tone: var(--warning);
    --toast-icon: url(../images/toast/warning.svg);
}

#toast-container > .toast-info {
    --toast-tone: var(--main-color);
    --toast-icon: url(../images/toast/info.svg);
}

#toast-container .toast-title {
    font-weight: 600;
    color: var(--base-text);
}

#toast-container .toast-message {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--base-text);
}

#toast-container .toast-message a,
#toast-container .toast-message label {
    color: var(--main-color);
}

#toast-container .toast-message a:hover {
    color: var(--main-color-hover);
}

#toast-container .toast-close-button {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: var(--light-text);
    -webkit-mask: url(../images/toast/close.svg) center / contain no-repeat;
    mask: url(../images/toast/close.svg) center / contain no-repeat;
    font-size: 0;
    color: transparent;
    text-shadow: none;
    opacity: 1;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    background: var(--main-color);
    opacity: 1;
}

#toast-container .toast-progress {
    height: 2px;
    background: var(--toast-tone);
    opacity: 1;
}

@media (max-width: 767px) {
    #toast-container.toast-top-right {
        top: 84px;
        right: 16px;
        left: 16px;
    }

    #toast-container > .toast {
        width: 100%;
        max-width: none;
    }
}
