/* Unified toasts (non-blocking). */

.app-toast-host {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

.app-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    animation: app-toast-in 0.3s ease-out forwards;
    box-sizing: border-box;
}

.app-toast--info {
    border-left: 6px solid #228be6;
}

.app-toast--success {
    border-left: 6px solid #2b8a3e;
}

.app-toast--error {
    border-left: 6px solid #c92a2a;
}

.app-toast__message {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
    min-width: 0;
    word-break: break-word;
}

.app-toast__close {
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    background: #f1f3f5;
    border: 1px solid #000;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
}

.app-toast__close:hover {
    background: #e9ecef;
}

.app-toast--hiding {
    animation: app-toast-out 0.25s ease-in forwards;
}

@keyframes app-toast-in {
    from {
        transform: translateX(110%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes app-toast-out {
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .app-toast-host {
        top: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
        align-items: stretch;
    }
}

/* ------------------------------------------------------------------------- */
/* Etalon: подтверждение удаления (бывш. cabinet_booking_list toast-confirm)  */
/* Фикс. справа сверху, выезд сбоку, CANCEL + YES DELETE или callback         */
/* ------------------------------------------------------------------------- */

.app-toast-confirm-host {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10050;
    pointer-events: auto;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
    max-width: min(420px, calc(100vw - 32px));
}

.app-toast-confirm {
    background: #ffffff;
    border: 1px solid #000000;
    border-left: 6px solid #d9534f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: min(340px, 100%);
    border-radius: 4px;
    animation: app-toast-in 0.3s ease-out forwards;
    box-sizing: border-box;
}

.app-toast-confirm__msg {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.app-toast-confirm__msg strong {
    font-weight: 700;
}

.app-toast-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.app-toast-confirm__actions button {
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #000000;
    
    font-family: "Inter", sans-serif;
    transition: background 0.2s;
    border-radius: 4px;
}

.app-toast-confirm__btn--cancel:hover {
    background: hsl(0, 0%, 100%);
}

.app-toast-confirm__btn--delete {
    background: #d9534f;
    color: #ffffff;
    border-color: #d9534f;
}

.app-toast-confirm__btn--delete:hover {
    background: #c9302c;
}

@media (max-width: 640px) {
    .app-toast-confirm-host {
        top: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
    }

    .app-toast-confirm {
        min-width: 0;
    }
}
