
r-dialog {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 900; background: rgba(0,0,0,0.9);
    pointer-events: none !important; opacity: 0 !important;
    transition: all 0.6s linear;
}

r-dialog > div {
    position: fixed; left: 50%; top: 10%; transform: translateX(-50%); z-index: 901;
    width: 80vw;
    box-shadow: 0 0.5rem 1rem #000;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 0.4rem solid rgba(255,255,255,0.10);

    opacity: 0; top: 25%;
    transition: all 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

r-dialog > div > b {
    display: block; background: #fff; color: #000; padding: 0.6rem 1rem; text-align: left; font-size: 0.8em; text-transform: uppercase;
}

r-dialog.error > div > b {
    display: block; background: #fff; color: #a00; padding: 0.6rem 1rem; text-align: left;
}

r-dialog.error > div > div {
    background: #ffe0e0; color: #800;
}

r-dialog.info > div > b {
    display: block; background: #fff; color: #46a; padding: 0.6rem 1rem; text-align: left;
}

r-dialog.info > div > div {
    background: #f0f7ff; color: #46a;
}

r-dialog > div > div {
    background: #fff; padding: 0.8rem 1rem;
}

r-dialog .buttons {
    background: #fff; margin: -0.8rem -1rem; padding: 0.8rem 1rem;
}

/* ** */
r-dialog.active {
    opacity: 1 !important; pointer-events: all !important;
    transition: all 0.3s linear;
}

r-dialog.active > div {
    opacity: 1; top: 5rem;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ** */
r-dialog.bottom > div {
    top: auto; bottom: 30% !important;
}

r-dialog.bottom.active > div {
    top: auto; bottom: 6rem !important;
}
