.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

.download-all-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 0;
    position: relative;
    z-index: 99999;
    pointer-events: auto;
}

.download-all-btn:hover {
    background: #333;
    color: #fff;
}

#wmppp-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#wmppp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#wmppp-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    margin: 80px auto;
    padding: 25px;
    border-radius: 8px;
    z-index: 2;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wmppp-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#wmppp-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
}

#wmppp-modal-list {
    margin: 0;
    padding-left: 20px;
}

#wmppp-modal-list li {
    margin-bottom: 8px;
    word-break: break-word;
}

.wmppp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.wmppp-table th,
.wmppp-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.wmppp-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.wmppp-table a {
    color: #0073aa;
    text-decoration: none;
}

.wmppp-table a:hover {
    text-decoration: underline;
}

.wmppp-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wmppp-select-all-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

#wmppp-download-selected {
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

#wmppp-download-selected:hover {
    background: #333;
}

.wmppp-col-check {
    width: 90px;
}

.wmppp-table input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* Modal overlay */
#wmppp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* black with 60% opacity */
    background: rgba(0,0,0,0.6);
}

/* Modal container */
#wmppp-modal-content {
    position: relative;
    background: rgba(0,0,0,0.9);
    color: #ffffff;

    width: 90%;
    max-width: 750px;
    margin: 80px auto;
    padding: 30px;

    border-radius: 8px;
    z-index: 2;

    max-height: 75vh;
    overflow-y: auto;

    border: 1px solid #444;
}

/* Title */
#wmppp-modal-title {
    color: #ffffff;
    margin-bottom: 20px;
}

/* Table */
.wmppp-table {
    width: 100%;
    border-collapse: collapse;
}

/* Table header */
.wmppp-table th {
    background: #111;
    color: #ffffff;
    border-bottom: 1px solid #444;
    padding: 10px;
    text-align: left;
}

/* Table rows */
.wmppp-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #ffffff;
}

/* Links */
.wmppp-table a {
    color: #ffffff;
    text-decoration: underline;
}

.wmppp-table a:hover {
    color: #cccccc;
}

/* Checkbox column */
.wmppp-col-check {
    width: 80px;
}

/* Select All area */
.wmppp-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Select all checkbox label */
.wmppp-select-all-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
}

/* Buttons */
#wmppp-download-selected {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

#wmppp-download-selected:hover {
    background: #dddddd;
}

/* Close button */
.wmppp-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #ffffff;
}

/* Scrollbar (optional modern look) */
#wmppp-modal-content::-webkit-scrollbar {
    width: 8px;
}

#wmppp-modal-content::-webkit-scrollbar-thumb {
    background: #444;
}