.wsmp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.wsmp-overlay.wsmp-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wsmp-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.30);
}

.wsmp-open .wsmp-modal {
    transform: translateY(0) scale(1);
}

.wsmp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    font-size: 28px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.20);
}

.wsmp-close:hover {
    background: #eeeeee;
}

.wsmp-image {
    width: 100%;
    line-height: 0;
}

.wsmp-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.wsmp-content {
    padding: 25px;
    text-align: center;
}

.wsmp-content h2 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 28px;
    line-height: 1.3;
}

.wsmp-text {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.wsmp-text p {
    margin: 0 0 10px;
}

.wsmp-button-wrapper {
    margin-top: 15px;
}

.wsmp-button {
    display: inline-block;
    padding: 12px 25px;
    background: #111111;
    color: #ffffff !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

.wsmp-button:hover {
    opacity: 0.85;
    color: #ffffff !important;
}

body.wsmp-popup-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .wsmp-overlay {
        padding: 12px;
    }

    .wsmp-modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 8px;
    }

    .wsmp-image img {
        max-height: 350px;
    }

    .wsmp-content {
        padding: 20px 15px;
    }

    .wsmp-content h2 {
        font-size: 22px;
    }

    .wsmp-text {
        font-size: 15px;
    }

    .wsmp-close {
        width: 34px;
        height: 34px;
        font-size: 24px;
        line-height: 34px;
    }

    .wsmp-button {
        padding: 11px 20px;
    }

}