.wccp-reupload-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.wccp-reupload-header {
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    color: #fff;
    padding: 30px;
    border-radius: 12px 12px 0 0;
}

.wccp-reupload-header h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 900;
}

.wccp-order-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.wccp-order-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.wccp-rejected-items {
    background: #fff;
    padding: 30px;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.wccp-rejected-items h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1e293b;
}

.wccp-item-box {
    background: #f8f9fa;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.wccp-item-box h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.wccp-proof-note {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #b91c1c;
}

.wccp-proof-note strong {
    display: block;
    margin-bottom: 6px;
}

.wccp-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

.wccp-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wccp-thumb-wrap {
    text-align: center;
}

.wccp-thumb-wrap img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #d0caff;
    border-radius: 8px;
    display: block;
}

.wccp-qty-badge {
    display: inline-block;
    margin-top: 6px;
    background: #6c63ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
}

.wccp-reupload-zone {
    margin-top: 20px;
}

.wccp-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.wccp-dropzone:hover,
.wccp-dropzone.drag-over {
    border-color: #6c63ff;
    background: #f0eeff;
}

.wccp-dropzone-inner {
    padding: 40px 20px;
    text-align: center;
}

.wccp-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.wccp-dropzone-text {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.wccp-dropzone-hint {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.wccp-file-input {
    display: none;
}

.wccp-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.wccp-preview-item {
    position: relative;
    text-align: center;
}

.wccp-preview-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid #d0caff;
    border-radius: 8px;
    display: block;
}

.wccp-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.wccp-preview-remove:hover {
    background: #b91c1c;
}

.wccp-submit-area {
    background: #fff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.wccp-submit-btn {
    background: #6c63ff;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.wccp-submit-btn:not(:disabled):hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.wccp-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.wccp-submit-info {
    margin: 12px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

.wccp-status-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}

.wccp-status-message.success {
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #86efac;
}

.wccp-status-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
}

.wccp-reupload-error,
.wccp-reupload-info {
    padding: 20px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.wccp-reupload-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
}

.wccp-reupload-info {
    background: #e0f2fe;
    color: #075985;
    border: 1.5px solid #7dd3fc;
}

.wccp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wccp-spin 0.6s linear infinite;
}

@keyframes wccp-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .wccp-reupload-header {
        padding: 20px;
    }
    
    .wccp-reupload-header h2 {
        font-size: 22px;
    }
    
    .wccp-order-info {
        gap: 15px;
    }
    
    .wccp-rejected-items,
    .wccp-submit-area {
        padding: 20px;
    }
    
    .wccp-item-box {
        padding: 18px;
    }
}

/* ════════════════════════════════════════════
   ESPECIFICACIONES DEL PRODUCTO
═══════════════════════════════════════════════ */
.wccp-product-specs {
    background: #eef2ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.wccp-specs-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #4338ca;
}
.wccp-product-specs ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #312e81;
}
.wccp-product-specs li {
    margin: 4px 0;
}

.wccp-images-count {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* ════════════════════════════════════════════
   PREVIEW BADGE
═══════════════════════════════════════════════ */
.wccp-preview-check {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #22c55e;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.wccp-loading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}

/* ════════════════════════════════════════════
   MODAL DEL CROPPER
═══════════════════════════════════════════════ */
.wccp-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wccp-crop-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.wccp-crop-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.wccp-crop-modal-header {
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    color: #fff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wccp-crop-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.wccp-crop-close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.wccp-crop-close:hover {
    background: rgba(255, 255, 255, 0.35);
}
.wccp-crop-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.wccp-crop-info-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1e293b;
}
.wccp-quality-warning {
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #92400e;
}
.wccp-quality-ok {
    background: #dcfce7;
    border: 1.5px solid #86efac;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #15803d;
}
.wccp-crop-container {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    max-height: 60vh;
}
.wccp-crop-image {
    display: block;
    max-width: 100%;
    max-height: 60vh;
}
.wccp-crop-modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.wccp-crop-cancel,
.wccp-crop-skip,
.wccp-crop-apply {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.wccp-crop-cancel {
    background: #e2e8f0;
    color: #475569;
}
.wccp-crop-cancel:hover {
    background: #cbd5e1;
}
.wccp-crop-skip {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fcd34d;
}
.wccp-crop-skip:hover {
    background: #fde68a;
}
.wccp-crop-apply {
    background: #6c63ff;
    color: #fff;
    flex: 1;
}
.wccp-crop-apply:hover {
    background: #4f46e5;
}

/* ════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .wccp-crop-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    .wccp-crop-modal-footer {
        flex-direction: column;
    }
    .wccp-crop-cancel,
    .wccp-crop-skip,
    .wccp-crop-apply {
        width: 100%;
    }
}

.wccp-preview-error {
    width: 100%;
    height: 100px;
    background: #fef2f2;
    border: 2px dashed #fca5a5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #b91c1c;
    font-size: 11px;
    text-align: center;
    padding: 8px;
}
.wccp-preview-error small {
    margin-top: 4px;
    opacity: 0.7;
    word-break: break-all;
}
