.darwinex-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.admin-bar .darwinex-popup-modal {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .darwinex-popup-modal {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.darwinex-popup-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.darwinex-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    pointer-events: none; 
}

.darwinex-popup-content {
    position: absolute; /* Absoluut voor het slepen */
    background: #fff;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: sans-serif;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.darwinex-popup-header {
    padding: 10px 15px;
    background: #f1f1f1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    user-select: none;
}

.darwinex-popup-header:active {
    cursor: grabbing;
}

.drag-indicator {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.darwinex-popup-body {
    padding: 20px 30px 30px;
}

.darwinex-popup-body h2 {
    margin-top: 0;
    color: #111;
    font-size: 22px;
}

.darwinex-popup-body p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.darwinex-popup-body ol {
    margin: 20px 0;
    padding-left: 20px;
    color: #333;
}

.darwinex-popup-body ol li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.darwinex-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    margin-left: auto;
}

.darwinex-popup-close:hover {
    color: #333;
}

.darwinex-popup-btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}

.darwinex-popup-btn-primary:hover {
    background: #005177;
    color: #fff;
}

.darwinex-popup-btn-close {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    transition: background 0.2s ease;
}

.darwinex-popup-btn-close:hover {
    background: #ccc;
}