.jptpdf-wrap {
    max-width: 850px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.jptpdf-wrap h2 {
    margin-top: 0;
}

.jptpdf-dropzone {
    border: 2px dashed #999;
    padding: 35px;
    text-align: center;
    border-radius: 10px;
    background: #fafafa;
}

.jptpdf-dropzone.jptpdf-over {
    background: #eef6ff;
    border-color: #2271b1;
}

.jptpdf-btn {
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    cursor: pointer;
    background: #555;
    color: #fff;
}

.jptpdf-primary {
    background: #2271b1;
    margin-top: 18px;
}

.jptpdf-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.jptpdf-list {
    margin-top: 20px;
}

.jptpdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 8px;
}

.jptpdf-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f5f5f5;
    flex: 0 0 70px;
}

.jptpdf-item > span {
    flex: 1;
    word-break: break-word;
}

.jptpdf-controls {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.jptpdf-controls button {
    padding: 6px 9px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.jptpdf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.jptpdf-options label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jptpdf-options select,
.jptpdf-options input {
    padding: 8px;
    min-width: 140px;
}

.jptpdf-status {
    margin-top: 15px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .jptpdf-wrap {
        padding: 15px;
    }

    .jptpdf-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .jptpdf-item > span {
        min-width: 150px;
    }
}

/* v1.1.1: make item controls clearly visible across WordPress themes */
.jptpdf-controls button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: #222 !important;
    background: #fff !important;
    border: 1px solid #aaa !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.jptpdf-controls button:disabled {
    color: #888 !important;
    background: #f2f2f2 !important;
    opacity: .6 !important;
}

.jptpdf-status a {
    display: inline-block;
    margin-left: 8px;
    color: #2271b1 !important;
    text-decoration: underline !important;
}

.jptpdf-clear-all {
    display: inline-block !important;
    margin-bottom: 10px;
    padding: 8px 12px;
    color: #b32d2e !important;
    background: #fff !important;
    border: 1px solid #b32d2e !important;
    border-radius: 5px;
    cursor: pointer;
}
