.wnd {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    pointer-events: all!important;
    animation: displayWnd .3s
}

.wnd>.box>div {
    position: relative;
    /* padding: 30px; */
}

@keyframes displayWnd {
    from {
        opacity: 0
    }
}

@keyframes displayBox {
    0%,10% {
        opacity: 0;
        transform: translateY(-50px)
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.wnd>.box {
    background: var(--bgcolor,#fff);
    box-shadow: var(--elevation-3,none);
    max-height: calc(100vh - 30px);
    min-width: 200px;
    animation: displayBox .2s;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    padding: 30px;
}

.wnd>.box>div>h3 {
    padding: 10px 15px;
    margin: 0;
    font-weight: 700;
    text-transform: none;
    color: var(--dark1)
}

.wnd>.box>div>[data-html=content] {
    padding: 2px 15px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    max-width: 850px;
    overflow-x: hidden;
    transition: max-width .3s;
    box-sizing: border-box
}

.wnd>.box>div>[data-html=content]>input[type=text] {
    border: solid 1px #cdcdcd;
    padding: 6px;
    width: 100%;
    display: block
}

.wnd>.box>div .actions {
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    user-select: none;
    box-sizing: border-box;
    bottom: 0;
    left: 12px;
    right: 12px;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    z-index: 10;
    margin: 0
}

.wnd>.box>div .actions>a.cancel {
    color: var(--dark3)
}

.wnd>.box>div .actions>a {
    cursor: pointer;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 4px;
    margin-left: 5px;
    line-height: 1;
    border: solid 1px
}

.wnd>.box>div .actions>a:hover {
    color: var(--accent2)
}

.wnd>.box>div>[data-html=content] code>br:first-child {
    display: none
}

.wnd>.box>div>[data-html=content] code {
    font-size: 12px;
    line-height: 1.2em;
    display: block;
    margin-top: 10px
}

.wnd>.box>div .actions>a:empty {
    display: none
}

.wnd>.box>div .actions>a:first-child:last-child:empty {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 38px;
    height: 38px;
    display: block;
    border: none;
    border-radius: 50%
}

.wnd>.box>div .actions>a:first-child:last-child:empty:after,.wnd>.box>div .actions>a:first-child:last-child:empty:before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--accent);
    top: 50%;
    margin-top: -1px
}

.wnd>.box>div .actions>a:first-child:last-child:empty:before {
    transform: rotate(45deg)
}

.wnd>.box>div .actions>a:first-child:last-child:empty:after {
    transform: rotate(-45deg)
}
