.preview.bloc__popup {
position: static;
width: auto;
height: auto;
float: none;
display: flex;
flex-direction: column;
}
.preview .bloc__popup__bg {
display: none;
}
.preview.bloc__popup div[role="dialog"] {
position: static;
max-width: unset;
width: unset;
transform: none;
}
.preview.bloc__popup button {
display: none;
}
.bloc__popup {
position: fixed;
z-index: 1001;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: none;
}
.bloc__popup__bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
}
.bloc__popup div[role="dialog"] {
position: absolute;
top: 50%;
left: 50%;
padding: 40px 50px;
box-shadow: 0 6px 15px 0 rgba(0,0,0,.15);
transform: translate(-50%,-50%);
width: calc(90% - 100px);
max-width: 700px;
background-color: #fff;
}
.bloc__popup div[data-tabtrap] {
outline: none;
}
.bloc__popup h2 {
margin: 0;
}
.bloc__popup h3 {
font-size: 24px;
border-bottom: unset;
}
.bloc__popup ul {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
list-style: none;
margin: unset;
padding: unset;
gap: 10px;
}
.bloc__popup li {
display: flex;
}
.bloc__popup a:focus {
outline: 4px dashed var(--red);
}
.bloc__popup button {
position: absolute;
top: 4px;
right: 4px;
appearance: none;
border: none;
background: unset;
width: 46px;
height: 46px;
cursor: pointer;
}
.bloc__popup button:before,
.bloc__popup button:after {
content: '';
position: absolute;
height: 100%;
width: 4px;
border-radius: 4px;
background-color: var(--red);
}
.bloc__popup button:before {
transform: rotateZ(-45deg) translate(-50%, -50%);
transform-origin: top left;
top: 50%;
left: 50%;
}
.bloc__popup button:after {
transform: rotateZ(45deg) translate(50%, 50%);
transform-origin: bottom right;
bottom: 50%;
right: 50%;
}
.bloc__popup button:focus {
outline: 4px dashed var(--red);
}
@media screen and (max-width: 800px) {
.bloc__popup h2 {
font-size: 24px;
}
.bloc__popup h2:before {
height: 27px;
}
.bloc__popup h3 {
font-size: 18px;
}
.bloc__popup .button {
font-size: 14px;
padding: 6px 12px;
}
}