/* Printzonn Custom Upload v2.0 */

.pcu-upload-wrap {
    margin: 16px 0;
}

/* ── Slot ── */
.pcu-slot {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.pcu-slot label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.pcu-slot .required {
    color: #c00;
}

/* ── File drop zone ── */
.pcu-file-row {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 12px 14px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.pcu-file-row.pcu-drag-over {
    border-color: #0073aa;
    background: #e8f4fb;
}

.pcu-file-row input[type="file"] {
    display: block;
    margin-bottom: 4px;
}

.pcu-hint {
    font-size: 0.82em;
    color: #888;
    margin: 4px 0 0;
}

/* ── Errors ── */
.pcu-error {
    color: #c00;
    font-size: 0.88em;
    margin: 6px 0 0;
}

/* ── Progress ── */
.pcu-progress {
    color: #555;
    font-size: 0.88em;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.pcu-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: pcu-spin 0.7s linear infinite;
}

/* ── Thumbnail after upload ── */
.pcu-thumb-row {
    margin-top: 10px;
}

.pcu-thumb-item {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.pcu-thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

.pcu-pdf-badge {
    display: inline-flex;
    align-items: center;
    background: #e6f4ea;
    color: #1a7a2e;
    border: 1px solid #b6d9be;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ✕ Delete button */
.pcu-delete-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    transition: background 0.15s;
}

.pcu-delete-btn:hover {
    background: #a00;
}

/* ── Mockup preview ── */
.pcu-preview-wrap {
    margin-top: 14px;
}

.pcu-mockup-container {
    position: relative;
    display: inline-block;
    max-width: 300px;
}

.pcu-mockup-base {
    display: block;
    width: 100%;
}

.pcu-mockup-overlay {
    position: absolute;
    object-fit: contain;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.pcu-mockup-foreground {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}
