/* துணி புகைப்படம் widget */
.cloth-photo-box { background: #fff; border: 1px dashed #fbc02d; border-radius: 8px; padding: 12px; margin-top: 15px; }
.cloth-photo-box.cp-compact { background: none; border: none; padding: 0; margin: 0; }
.cp-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.cp-title { font-weight: bold; color: #d97706; font-size: 15px; }
.cp-count { color: #888; font-weight: normal; font-size: 13px; }
.cp-btn { background: #ff9800; color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 15px; display: inline-block; user-select: none; }
.cp-btn:active { background: #e68900; }
.cp-status { font-size: 13px; color: #1976d2; margin-top: 6px; min-height: 16px; }
.cp-status.err { color: #d32f2f; }
.cp-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cp-compact .cp-grid { margin-top: 0; gap: 4px; }
.cp-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; border: 2px solid #ddd; cursor: pointer; background: #f5f5f5; }
.cp-thumb-sm { width: 46px; height: 46px; border-width: 1px; }
.cp-thumb.uploading { opacity: 0.4; }
.cp-empty { color: #999; font-size: 13px; }
/* முழு அளவு overlay */
#cpOverlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 99998; display: flex; align-items: center; justify-content: center; flex-direction: column; }
#cpOverlay img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
#cpOverlay .cp-close { color: #fff; margin-top: 12px; font-size: 16px; background: #444; padding: 8px 20px; border-radius: 20px; cursor: pointer; }
@media print { .cloth-photo-box, #cpOverlay { display: none !important; } }
