/* ─── Pre-Loved Buying System — Public Styles ─────────────────────────────── */

.plb-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.plb-form-wrapper h3 {
    color: #7b4f9e;
    border-bottom: 2px solid #7b4f9e;
    padding-bottom: 8px;
    margin-top: 30px;
}

/* Upload area */
.plb-upload-area {
    border: 2px dashed #c5a8e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: #fdf9ff;
    margin: 15px 0;
}

.plb-upload-area:hover,
.plb-upload-area.drag-over {
    border-color: #7b4f9e;
    background: #f5eeff;
}

.plb-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Image preview */
.plb-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.plb-image-preview .plb-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.plb-image-preview .plb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plb-image-preview .plb-thumb .plb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status badges */
.plb-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* Image gallery in account */
.plb-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

/* Voucher display */
.plb-voucher-active {
    color: #2d6a2d;
    font-weight: 600;
}

.plb-voucher-pending {
    color: #8a6d3b;
}

/* Progress steps */
.plb-progress {
    display: flex;
    gap: 0;
    margin: 20px 0;
    counter-reset: step;
}

.plb-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 12px;
    color: #999;
}

.plb-progress-step.active {
    color: #7b4f9e;
    font-weight: 600;
}

.plb-progress-step::before {
    content: counter(step);
    counter-increment: step;
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    line-height: 30px;
    margin: 0 auto 6px;
    font-weight: bold;
}

.plb-progress-step.active::before {
    background: #7b4f9e;
}

.plb-progress-step.done::before {
    background: #5cb85c;
    content: '✓';
}

/* Spinner */
.plb-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: plb-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

/* Responsive */
@media (max-width: 600px) {
    .plb-form-wrapper [style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
}
