/* Toast: krátká informace pro uživatele, která nevyžaduje rozhodnutí (toast.js).
   Obdélník, vlevo čtvercová barevná část s bílým piktogramem podle závažnosti, vpravo bílé pole s textem a zavíracím křížkem. */
#toast-container {
    position: fixed;
    bottom: 44px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    --toast-color: #3d9a5a;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 56px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d5dbe7;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast--visible {
    opacity: 1;
    transform: none;
}

.toast--success { --toast-color: #3d9a5a; }
.toast--info { --toast-color: #2f7fb8; }
.toast--warning { --toast-color: #e08a1e; }
.toast--danger { --toast-color: #d64545; }

.toast__icon {
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--toast-color);
    color: #fff;
}

.toast__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast__body {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 40px 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1f2933;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}

.toast__title {
    margin-bottom: 2px;
    font-weight: 600;
}

.toast__message > :first-child { margin-top: 0; }
.toast__message > :last-child { margin-bottom: 0; }
.toast__message p { margin: 0 0 6px; }
.toast__message ul, .toast__message ol { margin: 4px 0 0; padding-left: 18px; }

.toast__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #52647c;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.toast__close:hover { background: #eef1f6; color: #1f2933; }
.toast__close:focus-visible { outline: 2px solid #40536b; outline-offset: 1px; }

/* Původní notifikační okno, které toast nahradil: zůstává v DOM kvůli stávající logice zavírání, ale není vidět ani klikatelné */
.popup-area-wrapper.notification-toast-silent {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 650px) {
    #toast-container {
        top: 70px;
        right: 16px;
    }
}
