.mdtoast {
    position: fixed;
    display: flex;
    box-sizing: border-box;
    padding: 0 24px;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    outline: none;
    pointer-events: auto;
    touch-action: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #535353;
    transform: translateY(0);
    transition: transform 0.23s 0ms cubic-bezier(0, 0, 0.2, 1);
    will-change: transform;
    z-index: 100002;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    align-content: center;
    justify-content: center;
    /*overflow: hidden;*/
}

.mdtoast[data-position="bottom left"] {
    left: 24px;
    bottom: 24px;
}

.mdtoast[data-position="bottom center"] {
    bottom: 24px;
    left: 50%;
    transform: translateY(0) translateX(-50%);
}

.mdtoast[data-position="bottom right"] {
    right: 20px;
    bottom: 24px;
}

.mdtoast[data-position="top left"] {
    top: 12px;
    left: 16px;
}

.mdtoast[data-position="top center"] {
    top: 12px;
    left: 50%;
    transform: translateY(0) translateX(-50%);
}

.mdtoast[data-position="top right"] {
    top: 12px;
    right: 20px;
}

.mdtoast .mdt-message {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 0;
    opacity: 1;
    margin-left: 0;
    box-sizing: border-box;
    transition: opacity 0.3s 0ms cubic-bezier(0.4, 0, 1, 1);
    column-gap: 5px;
}

.mdtoast .mdt-message::after {
    content: '';
    min-height: 32px;
    font-size: 0;
}

.mdtoast .mdt-message .emoji {
    font-size: 24px;
    padding-right: 10px;
    align-self: self-start;
    padding-top: 5px;
}

.mdtoast .mdt-action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffffab;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.07em;
    font-weight: 500;
    padding: 8px 12px;
    margin: 0 0 0 24px;
    opacity: 1;
    min-height: 100%;
    min-width: 90px;
    background: none;
    border: none;
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    background-color: rgb(0 0 0 / 15%);
    transition: opacity 0.3s 0ms cubic-bezier(0.4, 0, 1, 1), background-color 0.15s linear;
    white-space: nowrap;
}

.mdtoast .mdt-action:focus, .mdtoast .mdt-action:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.6);
}

.mdtoast .mdt-action:active {
    background-color: rgba(255, 255, 255, 0.25);
}

.mdtoast.mdt--note .mdt-action {
    color: #fffffff5 !important;
}

.mdtoast.mdt--load {
    transition: transform 0.23s 0ms cubic-bezier(0.4, 0, 1, 1);
}

.mdtoast.mdt--load[data-position*='bottom'] {
    transform: translateY(150%);
}

.mdtoast.mdt--load[data-position*='top'] {
    transform: translateY(-150%);
}

.mdtoast.mdt--load .mdt-message {
    opacity: 0;
}

.mdtoast.mdt--load .mdt-action {
    opacity: 0;
}

.mdtoast.mdt--interactive {
    padding-right: 0px;
}

.mdtoast.mdt--interactive .mdt-message {
    margin-right: auto;
}

.mdtoast.mdt--info {
    background-color: #f1ae04;
    box-shadow: 0 0 20px 0px rgb(0 0 0 / 30%);
}

.mdtoast.mdt--error {
    background-color: var(--alert-error-background);
    box-shadow: 0 0 20px 0px rgb(0 0 0 / 30%);
}

.mdtoast.mdt--warning {
    background-color: #ffde7d;
    color: #5e5e5e;
    box-shadow: 0 0 20px 0px rgb(0 0 0 / 30%);
}

.mdtoast.mdt--note {
    background-color: #2c2c2c;
    color: #fff;
    box-shadow: 0 0 20px 0px rgb(0 0 0 / 80%);
}

.mdtoast.mdt--success {
    background-color: #09d01a;
    box-shadow: 0 0 20px 0px rgb(0 0 0 / 40%);
}


.mdtoast .mdt-message a {
    padding-left: 20px;
    color: inherit;
}

.mdtoast.mdt--note .mdt-message a,
.mdtoast.mdt--warning .mdt-message a {
    color: #007CFF;
}

.mdtoast.mdt--error .mdt-message a,
.mdtoast.mdt--success .mdt-message a {
    color: #000;
}

@media (hover: hover) {
    .mdtoast.mdt--note .mdt-message a:hover,
    .mdtoast.mdt--warning .mdt-message a:hover {
        color: #2b91ff;
    }
}

.mdtoast.mdt--adhoc_request {
    background-color: var(--fragab-yellow);
    z-index: 10000000000;
    align-items: flex-start;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.5);
}

.mdtoast.mdt--adhoc_request .mdt-action {
    color: #ffffff;
    margin: 3px 0px 0 15px;
    right: -12px;
    position: relative;
}


@media (min-width: 600px) {
    .mdtoast {
        min-width: 460px;
        max-width: 568px;
        border-radius: 8px;
    }

    .mdtoast.mdt--adhoc_request {
        max-width: 320px;
    }

    .mdtoast.mdt--load[data-position='bottom center'] {
        transform: translateY(150%) translateX(-50%);
    }

    .mdtoast.mdt--load[data-position='top center'] {
        transform: translateY(-150%) translateX(-50%);
    }
}

@media (max-width: 599px) {
    .mdtoast {
        left: 0 !important;
        right: 0 !important;
        font-size: 18px;
        line-height: 22px;
        max-width: 100%;
        transform: translateY(0);
    }

    .mdtoast[data-position*='bottom'] {
        bottom: 0;
        transform: translateY(0);
        min-height: 61px;
        padding-bottom: calc(env(safe-area-inset-bottom));
    }

    .mdtoast[data-position*='top'] {
        top: 0;
        transform: translateY(0);
    }

    .mdtoast.mdt--load {
        transform: translateY(100%);
    }

    .mdtoast .mdt-message {
        flex-direction: column;
        align-items: flex-start;
    }

    .mdtoast .mdt-message .emoji {
        padding-bottom: 8px;
    }

    .mdtoast .mdt-message a {
        padding-left: 0;
        padding-top: 5px;
    }

    .mdtoast .mdt-message::after {
        min-height: 4px;
    }
}

body.mdtoast--modal {
    pointer-events: none;
    touch-action: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
