.wppm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wppm-overlay.active {
    display: block;
    opacity: 1;
}

.wppm-popup {
    position: fixed;
    z-index: 999999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    max-height: 85vh;
    display: none;
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: visible;
}

.wppm-popup.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.wppm-popup--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
}

.wppm-popup--center.active {
    transform: translate(-50%, -50%) scale(1);
}

.wppm-popup--top-left {
    top: 20px;
    left: 20px;
}

.wppm-popup--top-right {
    top: 20px;
    right: 20px;
}

.wppm-popup--bottom-left {
    bottom: 20px;
    left: 20px;
}

.wppm-popup--bottom-right {
    bottom: 20px;
    right: 20px;
}

.wppm-popup-content {
    overflow-y: auto;
    max-height: 85vh;
    line-height: 1.6;
    border-radius: 10px;
}

.wppm-popup-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.wppm-popup-content iframe,
.wppm-popup-content video {
    max-width: 100%;
    border-radius: 6px;
    display: block;
}

.wppm-popup-content p:first-child {
    margin-top: 0;
}

.wppm-popup-content p:last-child {
    margin-bottom: 0;
}

.wppm-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 20;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    padding: 0;
}

.wppm-close:hover {
    color: #111;
    background: #f5f5f5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.wppm-close:active {
    transform: scale(0.95);
}

.wppm-popup--top-left .wppm-close {
    top: -14px;
    right: -14px;
}

.wppm-popup--top-right .wppm-close {
    top: -14px;
    right: -14px;
}

.wppm-popup--bottom-left .wppm-close {
    top: -14px;
    right: -14px;
}

.wppm-popup--bottom-right .wppm-close {
    top: -14px;
    right: -14px;
}
