body .messages,
body .msg-wrapper {
    position: fixed !important;
    left: 24px !important;
    right: auto !important;
    top: auto !important;
    bottom: 24px !important;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    z-index: 100000 !important;
    pointer-events: none;
    font-family: "new_font", sans-serif;
}

body .messages .msg,
body .msg-wrapper .msg {
    pointer-events: auto;
    width: auto;
    max-width: 560px;
    min-width: 280px;
    border: 5px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    padding: 14px 44px 14px 52px;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    background: #2A2A35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    isolation: isolate;
    opacity: 0;
    transform: translateX(-10px) scale(.98);
}

body .msg.msg-success {
    background: #2E8B57 !important;
}

body .msg.msg-error {
    background: #B44840 !important;
}

body .msg.msg-warning {
    background: #B27722 !important;
}

body .msg.msg-info {
    background: #2A2A35 !important;
}

body .messages .msg::before,
body .msg-wrapper .msg::before {
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    content: "\f05a";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, .22);
}

body .msg.msg-success::before {
    content: "\f058";
}

body .msg.msg-error::before {
    content: "\f057";
}

body .msg.msg-warning::before {
    content: "\f071";
}

body .messages .msg::after,
body .msg-wrapper .msg::after {
    content: "\f00d";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: .75;
    cursor: pointer;
}

/* progress overlay uvnitř */
body .messages .msg .toast-progress,
body .msg-wrapper .msg .toast-progress {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    pointer-events: none;
    z-index: 0;
}

body .messages .msg .toast-progress>i,
body .msg-wrapper .msg .toast-progress>i {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, .12);
    transform-origin: left;
    animation: hc-toast-progress var(--toast-duration, 4s) linear forwards;
}

/* animace */
@keyframes hc-toast-in {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes hc-toast-out {
    to {
        opacity: 0;
        transform: translateX(-10px) scale(.98);
    }
}

@keyframes hc-toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* mobilní zmenšení */
@media (max-width:767px) {

    body .messages,
    body .msg-wrapper {
        left: 12px !important;
        bottom: 12px !important;
    }

    body .messages .msg,
    body .msg-wrapper .msg {
        max-width: calc(100vw - 24px);
        font-size: 12px;
        padding: 10px 36px 10px 40px;
        min-width: 200px;
    }

    body .messages .msg::before,
    body .msg-wrapper .msg::before {
        left: 8px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    body .messages .msg::after,
    body .msg-wrapper .msg::after {
        right: 8px;
        font-size: 12px;
    }
}

/* fix na vnitřní container */
body .messages .msg>.container,
body .msg-wrapper .msg>.container {
    display: inline !important;
    width: auto !important;
    white-space: inherit !important;
}