/* global styles */

.message-center {
    position: fixed;
    top: 3rem;
    right: 0;
    height: auto;
    width: auto;
    max-width: 100vw;
    z-index: 1;
}
.toast-message {
    height: 100px;
    width: 500px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-left: 10px solid red;
    border-radius: 8px 0 0 8px;
    z-index: 1;
    margin-bottom: 1rem;
    background-color: white;
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.icon::before {
    padding: 2px;
    color: white;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: block;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1;
}
.error .icon::before {
    content: "\2718";
    background-color: red;
}
.success {
    border-left-color: green;
}
.success .icon::before {
    content: "\2714";
    background-color: green;
}
.info {
    border-left-color: grey;
}
.info .icon::before {
    content: "\2139";
    background-color: grey;
}
.toast-message div:nth-child(2) {
    flex: 1;
}
.toast-message h6 {
    margin: 0 0 5px 0;
    text-transform: capitalize;
}
.toast-message p {
    font-size: 0.8rem;
    margin: 0;
}
.toast-message button.close {
    background-color: transparent;
    font-size: 40px;
    padding: 0;
    border: none;
    color: #aaa;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
[x-cloak] { 
    display: none !important; 
}