/* ── Artwork Uploader Widget ──────────────────────────────────────────────── */

#artwork-uploader-widget {
    margin: 16px 0 20px;
    font-family: inherit;
}

.artwork-uploader-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.artwork-required { color: #c00; }

.artwork-uploader-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* ── Drop zone ──────────────────────────────────────────────────────────── */
.artwork-drop-zone {
    border: 2px dashed #c0c8d4;
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: #f9fbfc;
    transition: border-color 0.2s, background 0.2s;
}

.artwork-drop-zone.artwork-drag-over {
    border-color: #0073aa;
    background: #e8f4fb;
}

.artwork-drop-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.artwork-drop-text {
    font-size: 14px;
    color: #555;
}

.artwork-browse-link {
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
}

.artwork-file-input {
    display: none !important;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
.artwork-progress-wrap {
    margin-top: 10px;
    height: 8px;
    background: #e4e8ee;
    border-radius: 4px;
    overflow: hidden;
}

.artwork-progress-bar span {
    display: block;
    height: 100%;
    background: #0073aa;
    width: 0;
    transition: width 0.2s;
    border-radius: 4px;
}

/* ── Status message ─────────────────────────────────────────────────────── */
.artwork-status {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
}

.artwork-status-info    { background: #e8f4fb; color: #0073aa; }
.artwork-status-success { background: #eafaf1; color: #1e8449; }
.artwork-status-error   { background: #fdecea; color: #c0392b; }

/* ── Preview area ───────────────────────────────────────────────────────── */
.artwork-preview-area {
    border: 1px solid #dde2e8;
    border-radius: 6px;
    padding: 12px 16px;
    background: #fafbfc;
    margin-top: 6px;
}

.artwork-preview-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.artwork-preview-img {
    max-width: 72px;
    max-height: 72px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: contain;
    background: #fff;
}

.artwork-preview-icon {
    font-size: 40px;
    line-height: 1;
}

.artwork-preview-info {
    flex: 1;
    min-width: 120px;
}

.artwork-preview-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    word-break: break-all;
}

.artwork-preview-size {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ── Preview action buttons ─────────────────────────────────────────────── */
.artwork-preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.artwork-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
}

.artwork-btn-preview {
    background: #f1f3f5;
    border-color: #c5cdd6;
    color: #333;
}
.artwork-btn-preview:hover { background: #e2e6ea; color: #333; }

.artwork-btn-replace {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}
.artwork-btn-replace:hover { background: #005a87; }

.artwork-btn-delete {
    background: #fff;
    border-color: #c0392b;
    color: #c0392b;
}
.artwork-btn-delete:hover { background: #fdecea; }

/* ── Cart / checkout inline display ─────────────────────────────────────── */
.artwork-order-preview,
.artwork-order-item-meta {
    font-size: 13px;
    margin-top: 4px;
}

.artwork-order-preview a,
.artwork-order-item-meta a {
    color: #0073aa;
}

/* ── Admin order meta box table ──────────────────────────────────────────── */
.artwork-admin-table th {
    background: #f1f3f5;
    font-weight: 600;
}
