#toast-container {
    top: 20px;
    z-index: 1000000;
}

#toast-container.toast-top-left {
    left: 20px;
}

#toast-container.toast-top-right {
    right: 20px;
}

#toast-container > div {
    width: min(390px, calc(100vw - 32px));
    min-height: 78px;
    margin-bottom: 12px;
    padding: 17px 54px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 16px;
    background-position: left 18px top 22px;
    box-shadow: 0 18px 48px rgb(15 23 42 / 22%), 0 3px 12px rgb(15 23 42 / 12%);
    color: #fff;
    font-family: "Cairo", "DM Sans", sans-serif;
    opacity: 1;
}

#toast-container > div.rtl {
    direction: rtl;
    text-align: right;
}

#toast-container > div::before {
    position: absolute;
    top: 19px;
    left: 17px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 2px solid rgb(255 255 255 / 88%);
    border-radius: 50%;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

#toast-container > div.rtl::before {
    right: 17px;
    left: auto;
}

#toast-container .toast-success::before {
    content: "\2713";
}

#toast-container .toast-error::before {
    content: "\00D7";
    font-size: 20px;
}

#toast-container .toast-warning::before {
    content: "!";
}

#toast-container .toast-info::before {
    content: "i";
}

#toast-container > div:hover {
    box-shadow: 0 22px 55px rgb(15 23 42 / 28%), 0 4px 14px rgb(15 23 42 / 14%);
    opacity: 1;
}

#toast-container .toast-success {
    background-color: #147d67;
    background-image: linear-gradient(135deg, #199675 0%, #116351 100%) !important;
}

#toast-container .toast-error {
    background-color: #b42332;
    background-image: linear-gradient(135deg, #d13c4d 0%, #9e1c2a 100%) !important;
}

#toast-container .toast-warning {
    background-color: #c17910;
    background-image: linear-gradient(135deg, #e49b22 0%, #a85f08 100%) !important;
}

#toast-container .toast-info {
    background-color: #246b91;
    background-image: linear-gradient(135deg, #3284ad 0%, #195979 100%) !important;
}

#toast-container .toast-title {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

#toast-container .toast-message {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    opacity: .94;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 25px;
    opacity: .76;
}

#toast-container > div.rtl .toast-close-button {
    right: auto;
    left: 12px;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    background: rgb(255 255 255 / 16%);
    color: #fff;
    opacity: 1;
}

#toast-container .toast-progress {
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 0 0 16px 16px;
    background-color: rgb(255 255 255 / 72%);
    opacity: 1;
}

@media (max-width: 480px) {
    #toast-container.toast-top-left,
    #toast-container.toast-top-right {
        top: 12px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    #toast-container > div,
    #toast-container > div.rtl {
        width: 100%;
        padding: 15px 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #toast-container > div {
        transition: none !important;
    }
}
