.wp-half-screen-popup {
position: fixed;
z-index: 9999;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
display: none;
overflow-y: auto;
padding: 20px;
box-sizing: border-box;
}
.wp-half-screen-popup-close {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
cursor: pointer;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
background: rgba(0, 0, 0, 0.1);
border-radius: 50%;
transition: background 0.3s ease;
}
.wp-half-screen-popup-close:hover {
background: rgba(0, 0, 0, 0.2);
}
.wp-half-screen-popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9998;
display: none;
} .wp-half-screen-popup.position-left {
left: 0;
top: 0;
}
.wp-half-screen-popup.position-right {
right: 0;
top: 0;
}
.wp-half-screen-popup.position-top {
left: 0;
top: 0;
width: 100% !important;
}
.wp-half-screen-popup.position-bottom {
left: 0;
bottom: 0;
width: 100% !important;
} .wp-half-screen-popup.position-center {
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important; } @media (max-width: 768px) { .wp-half-screen-popup:not(.position-center) {
width: 100% !important;
left: 0;
right: 0;
} .wp-half-screen-popup.position-bottom {
bottom: 0 !important;
top: auto !important;
height: auto !important;
max-height: 90vh;
} .wp-half-screen-popup.position-top {
top: 0 !important;
bottom: auto !important;
height: auto !important;
max-height: 90vh;
} .wp-half-screen-popup.position-right {
right: 0 !important;
left: auto !important;
height: 100% !important;
width: 100% !important;
} .wp-half-screen-popup.position-left {
left: 0 !important;
right: auto !important;
height: 100% !important;
width: 100% !important;
} .wp-half-screen-popup.position-center {
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
width: 100% !important;
max-height: 80vh !important;
}
}