/* ==========================================================
   Site toast theme — overrides toastr.min.css
   (must be loaded AFTER toastr.min.css)
   Markup: #toast-container > .toast.toast-{type}[.rtl]
           > .toast-progress, .toast-close-button, .toast-title, .toast-message
   ========================================================== */

#toast-container {
    --kc-toast-text: #1D2939;
    --kc-toast-muted: #5B6474;
}

/* style.css puts a 0.3s transition on everything — keep toasts snappy */
#toast-container,
#toast-container * {
    transition: none !important;
}

/* ---------- per type colors ---------- */
#toast-container > .toast-success { --kc-accent: #33A853; --kc-soft: rgba(51, 168, 83, .12); }
#toast-container > .toast-error   { --kc-accent: #C91D13; --kc-soft: rgba(201, 29, 19, .10); }
#toast-container > .toast-warning { --kc-accent: #E8A317; --kc-soft: rgba(232, 163, 23, .15); }
#toast-container > .toast-info    { --kc-accent: #2E6BE6; --kc-soft: rgba(46, 107, 230, .10); }

/* ---------- the card ---------- */
#toast-container > div.toast,
#toast-container > div.toast.rtl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 360px;
    min-height: 68px;
    margin: 0 0 10px;
    padding: 14px 16px 16px;
    padding-inline-start: 68px;
    padding-inline-end: 40px;
    border: 1px solid rgba(16, 24, 40, .06);
    border-radius: 14px;
    background: #FFFFFF none;
    color: var(--kc-toast-text);
    font-family: inherit;
    opacity: 1;
    box-shadow: 0 12px 32px -10px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .06);
    animation: kc-toast-in .35s cubic-bezier(.21, 1.02, .73, 1) both;
    transition: box-shadow .2s ease, transform .2s ease !important;
}

#toast-container > div.toast:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(16, 24, 40, .28), 0 2px 8px rgba(16, 24, 40, .08);
}

/* ---------- icon badge ---------- */
#toast-container > div.toast::before,
#toast-container > div.toast::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border-radius: 12px;
}

#toast-container > div.toast::before {
    background: var(--kc-soft);
}

#toast-container > div.toast::after {
    background: var(--kc-accent);
    -webkit-mask: var(--kc-icon) center / 20px 20px no-repeat;
    mask: var(--kc-icon) center / 20px 20px no-repeat;
}

#toast-container > .toast-success {
    --kc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

#toast-container > .toast-error {
    --kc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

#toast-container > .toast-warning {
    --kc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v8M12 18.5v.01'/%3E%3C/svg%3E");
}

#toast-container > .toast-info {
    --kc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11v7M12 6.5v.01'/%3E%3C/svg%3E");
}

/* ---------- text ---------- */
#toast-container .toast-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--kc-toast-text);
}

#toast-container .toast-title * {
    color: inherit !important;
    font-weight: 700;
}

#toast-container .toast-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--kc-toast-muted);
}

#toast-container .toast-message a,
#toast-container .toast-message label {
    color: var(--kc-accent);
    font-weight: 600;
}

/* ---------- close button ---------- */
#toast-container .toast-close-button,
#toast-container .rtl .toast-close-button {
    position: absolute;
    top: 10px;
    left: auto;
    right: auto;
    inset-inline-end: 10px;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #98A2B3;
    text-shadow: none;
    opacity: 1;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    color: var(--kc-toast-text);
    background: rgba(16, 24, 40, .06);
    opacity: 1;
}

/* ---------- progress bar ---------- */
#toast-container .toast-progress {
    left: auto;
    right: auto;
    inset-inline-start: 0;
    bottom: 0;
    height: 3px;
    background: var(--kc-accent);
    opacity: .85;
    border-radius: 0 3px 3px 0;
}

#toast-container .rtl .toast-progress {
    border-radius: 3px 0 0 3px;
}

/* ---------- entrance ---------- */
@keyframes kc-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    #toast-container > div.toast { animation: none; }
}

/* ---------- mobile: full width at the bottom ---------- */
@media (max-width: 576px) {
    #toast-container.toast-bottom-right,
    #toast-container.toast-bottom-left,
    #toast-container.toast-top-right,
    #toast-container.toast-top-left {
        left: 12px;
        right: 12px;
    }

    #toast-container > div.toast,
    #toast-container > div.toast.rtl {
        width: 100%;
    }
}
