
/* toptips */

.weui-toptips {
    display: none;
    position: fixed;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    top: 10px;
    left: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.4rem;
    text-align: center;
    color: #fff;
    z-index: 5000;
    word-wrap: break-word;
    word-break: break-all;
}

.weui-toptips_warn {
    color:white;
    background-color: darkslategray;
    border: 1px solid darkslategray;
}

/* toast */

.weui-toast {
    position: fixed;
    z-index: 5000;
    width: 70%;
    height: auto;
    top: 40%;
    left: 50%;
    padding:20px 10px;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: center;
    border-radius: 5px;
    color: yellow;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    background-color: #4c4c4c;
}

body[data-weui-theme='dark'] .weui-toast {
    background-color: #606060;
}

@media (prefers-color-scheme:dark) {
    body:not([data-weui-theme='light']) .weui-toast {
    background-color: #606060;
    }
}

.weui-toast__content {
    font-size: 0.4rem;
}