.wnd {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    /* background: rgb(231 231 231 / 91%); */
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    pointer-events: all!important;
    animation: displayWnd .3s;
    --accent:#dd9933;
    --accent2:#dd9933;
    --accent2-darker:#cc8823;

}

.wnd>.box>div {
    position: relative;
    background: #fff;
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 0 32px 8px rgba(0,0,0,0.25);
}

@keyframes displayWnd {
    from {
        opacity: 0
    }
}

@keyframes displayBox {
    0%,10% {
        opacity: 0;
        transform: translateY(-50px)
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.wnd>.box {
    max-height: calc(100vh - 30px);
    min-width: 200px;
    animation: displayBox .2s;
    border-radius: 8px;
    max-width: calc(100vw - 10px);
    position: relative;
    z-index: 45;
}

.wnd>.box>div>h3 {
    padding: 0 15px;
    margin: 0;
    font-weight: 500;
    text-transform: none;
    font-family: Satoshi;
    color: var(--accent);
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

.wnd>.box>div>h3:empty {
    display: none
}

.wnd>.box>div>[data-html=content] {
    padding: 0 15px;
    max-height: calc(100vh - 160px);
    overflow: auto;
    max-width: 970px;
    overflow-x: hidden;
    transition: max-width .3s;
    box-sizing: border-box
}
.wnd>.box>div>[data-html=content]{
    /* max-height: calc(100vh - 90px); */
}
.wnd>.box>div>h3:empty+[data-html=content] {
    max-height: calc(100vh - 90px);
}

.wnd>.box>div>.actions {
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    user-select: none;
    /* height: 54px; */
    box-sizing: border-box;
    bottom: 0;
    left: 12px;
    right: 12px;
    border-radius: 24px;
    border-bottom: none;
    z-index: 10;
    text-align: center;
}

.wnd>.box>div>.actions>a.cancel {
    background: transparent;
    color:#000;
    border-color: var(--accent2-darker)
}

.wnd>.box>div>.actions>a {
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 24px;
    margin-left: 5px;
    line-height: 1;
    background: var(--accent2);
    border: solid 1px var(--accent2-darker);
    min-width: 95px
}

.wnd>.box>div>.actions>a:hover {
    background: var(--accent2-darker)
}

.wnd.no-action>.box>div>.actions {
    display: none
}

.wnd.no-action>.box>div>[data-html=content] {
    padding-bottom: 0
}

.wnd.fullscreen>.box [data-html=content] {
    padding: 0;
    max-width: 100vw;
    max-height: calc(100% - 40px);
    overflow-x: auto;
    text-align: center;
    width: 100%;
    touch-action: pan-right manipulation double-tap-zoom
}

.wnd.fullscreen>.box [data-html=content] img {
    outline: 0;
    border: none;
    margin: 0;
    max-width: 100%;
    max-height: 100%
}

.wnd.fullscreen {
    background: #232323;
    padding: 0
}

.wnd.fullscreen>.box {
    box-shadow: none;
    border-radius: 0;
    max-height: 100%;
    background: 0 0;
    width: 100%
}

.wnd.fullscreen>.box>div>.actions {
    justify-content: center;
    background: 0 0;
    position: relative;
    height: auto;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0
}

.wnd.fullscreen>.box>div {
    height: 100%;
    background: 0 0
}

.wnd.fullscreen>.box [data-html=content] iframe {
    height: calc(100vh - 100px)
}

.wnd.floating {
    display: block;
    background: 0 0;
    padding: 0
}

.wnd.floating>.box {
    display: inline-block;
    border-radius: 4px;
    position: absolute;
    left: var(--x);
    top: var(--y)
}

.wnd.floating>.box>div>[data-html=content] {
    padding: 10px
}

.wnd.floating>.box>div>[data-html=content]>h3 {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    color: #000;
    margin-bottom: 5px
}

.wnd>.box .list {
    display: flex;
    flex-direction: column
}

.wnd>.box .list>a {
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color .3s;
    border-radius: 4px;
    display: flex;
    align-items: center
}

.wnd>.box .list>a:hover {
    background: #f1f1f1
}

.wnd>.box .list>a.selected {
    background: #e91e63;
    color: #fff
}

.wnd>.box .list>a.selected:before {
    content: "";
    width: 5px;
    height: 12px;
    border-right: solid 2px;
    border-bottom: solid 2px;
    margin-right: 10px;
    transform: rotate(35deg);
    margin-top: -3px;
    margin-left: 3px
}

.wnd>.box .list>a:not(:last-child) {
    margin-bottom: 2px
}

.wnd.light {
    background: #ededede3;
    backdrop-filter: blur(4px)
}

.wnd.light>.box {
    box-shadow: none;
    background: #fff
}

.wnd.light>.box>div>[data-html=content] {
    height: calc(100vh - 130px);
    padding-bottom: 90px
}
.wnd.light>.box>div>h3:empty+[data-html=content] {
    height: calc(100vh - 90px);
}

.wnd.light>.box>div>h3 {
    font-size: 28px;
    font-weight: 400;
    color: #000;
    text-align: center
}

.wnd.light>.box>div>.actions>a {
    background: var(--accent2-darker);
    color: #fff;
    font-weight: 500
}

.wnd.light>.box>div>.actions>a.cancel {
    color: #000;
    background: #fff
}

@keyframes displayWndLightLeft {
    from {
        transform: translateX(-100vw)
    }
}

@keyframes displayWndLightRight {
    from {
        transform: translateX(100vw)
    }
}

.wnd.light:after {
    content: "";
    position: absolute;
    right: 50%;
    width: 300px;
    height: 300px;
    background: url(../img/perso-right.svg) no-repeat left bottom/contain;
    top: 50%;
    margin-top: -150px;
    margin-right: -308px;
    transform: translateX(400px);
    animation: displayWndLightRight 1s ease-in-out;
    pointer-events: none;
    z-index: 50
}
.wnd.light>.box>div{
    box-shadow: none;
}
.wnd.light>.box>div>.actions {
    border-radius: 8px;
    left: 18px;
    right: 18px
}

.wnd>.box>div>[data-html=content] .wide.container {
    padding: 0
}

@keyframes displayBoxCircle1 {
    from {
        transform: translateY(-10%) scale(0.9);
        opacity: 0
    }
}

@keyframes displayBoxCircle2 {
    from {
        transform: translateY(-46%) scale(0.9);
        opacity: 0
    }
}

.wnd>.box:before {
    /* content: ""; */
    /* position: absolute; */
    /* left: 0; */
    /* top: 50%; */
    /* min-width: 100%; */
    /* min-height: 100%; */
    /* background: #ffffff; */
    /* aspect-ratio: 1/1; */
    /* margin-top: -41%; */
    /* z-index: 0; */
    /* border-radius: 50%; */
    /* margin-left: 100px; */
    /* margin-right: -100px; */
    /* z-index: 0; */
    /* animation: displayBoxCircle1 .3s; */
    /* transform: translateY(-20%); */
}

.wnd>.box:after {
    /* content: ""; */
    /* position: absolute; */
    /* left: 0; */
    /* top: 50%; */
    /* min-width: 100%; */
    /* min-height: 100%; */
    /* background: #ffffff; */
    /* aspect-ratio: 1/1; */
    /* margin-top: -22%; */
    /* z-index: 0; */
    /* border-radius: 50%; */
    /* margin-left: -134px; */
    /* margin-right: 116px; */
    /* z-index: -1; */
    /* animation: displayBoxCircle2 .3s; */
    /* transform: translateY(-42%); */
}

.wnd>.box>div>.actions>a.cancel:hover {
    background: var(--accent2-darker);
    color:#fff;
}
.wnd>.box>div>.actions>a:first-child:last-child {
    /* border-color: var(--accent2-darker);
    background: #ffffff;
    color: #000000; */
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    font-size: 0;
    width: 44px;
    height: 44px;
    min-width: 0;
    padding: 0;
    background:none;
}
@keyframes displayWndClose {
    from{
        transform:translateY(-100px);
    }
}
a.close-button,
.wnd a.close {
    position: absolute;
    /* left: 50%; */
    /* margin-left:calc(min(700px,calc(100vw - 100px)) / 2); */
    top: 10px;
    right: 10px;
    border: none;
    font-size: 0;
    width: 38px;
    height: 38px;
    min-width: 0;
    padding: 0;
    z-index: 100;
    cursor: pointer;
}
.wnd a.close{
    animation: displayWndClose 0.5s;

}
.wnd>.box>div>.actions>a:first-child:last-child {
    display: none;
}

a.close-button:before,a.close-button:after,
.wnd a.close:before,.wnd a.close:after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--accent);
    top: 50%;
    border-radius: 4px;
    margin-top: -1px;
    transition:transform 1s cubic-bezier(0.18, 0.89, 0.32, 1.28)
}
a.close-button:hover:before,
.wnd a.close:hover:before {
    transform: rotate(-135deg);
}
a.close-button:hover:after,
.wnd a.close:hover:after {
    transform: rotate(135deg);
}
a.close-button:before,
.wnd a.close:before {
    transform: rotate(45deg);
}

a.close-button:after,
.wnd a.close:after {
    transform: rotate(-45deg);
}