/* WC Product Fields – Frontend Styles */

.wcpf-fields-container {
    margin: 20px 0;
    padding: 0;
}

.wcpf-field-wrap {
    margin-bottom: 18px;
}

.wcpf-field-wrap.wcpf-conditional {
    display: none; /* hidden until condition met */
}

.wcpf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.wcpf-label .required {
    color: #e2401c;
    margin-left: 3px;
}

.wcpf-desc {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-bottom: 6px;
}

.wcpf-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    font-size: 0.95em;
    background: #fff;
    transition: border-color .15s;
}

.wcpf-input:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 2px rgba(150, 88, 138, .15);
}

textarea.wcpf-input {
    min-height: 80px;
    resize: vertical;
}

/* Radio & Checkbox groups */
.wcpf-radio-group,
.wcpf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcpf-radio-label,
.wcpf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: background .15s, border-color .15s;
}

.wcpf-radio-label:hover,
.wcpf-checkbox-label:hover {
    background: #faf5fb;
    border-color: #96588a;
}

.wcpf-radio-label input,
.wcpf-checkbox-label input {
    accent-color: #96588a;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wcpf-price-badge {
    font-size: 0.85em;
    color: #388e3c;
    font-weight: 500;
    margin-left: auto;
}

/* File upload */
.wcpf-file-upload-wrap {
    position: relative;
}

.wcpf-file-input {
    display: block;
    width: 100%;
    padding: 8px;
    border: 2px dashed #d5d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    background: #fafafa;
    transition: border-color .15s;
}

.wcpf-file-input:hover {
    border-color: #96588a;
    background: #faf5fb;
}

.wcpf-file-status {
    margin-top: 6px;
    font-size: 0.85em;
}

.wcpf-file-status.uploading {
    color: #777;
}

.wcpf-file-status.success {
    color: #388e3c;
    font-weight: 500;
}

.wcpf-file-status.error {
    color: #e2401c;
}

.wcpf-file-remove {
    background: none;
    border: none;
    color: #e2401c;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.85em;
}

/* Price preview */
.wcpf-price-preview {
    margin: 10px 0;
    font-size: 0.9em;
    color: #388e3c;
    font-weight: 500;
}

/* HTML content block */
.wcpf-field-wrap.wcpf-type-html {
    margin-bottom: 18px;
}
.wcpf-field-wrap.wcpf-type-html img {
    max-width: 100%;
    height: auto;
}
.wcpf-field-wrap.wcpf-type-html .button,
.wcpf-field-wrap.wcpf-type-html a.button {
    display: inline-block;
    padding: 8px 16px;
    background: #96588a;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background .15s;
}
.wcpf-field-wrap.wcpf-type-html .button:hover,
.wcpf-field-wrap.wcpf-type-html a.button:hover {
    background: #7b3f9e;
    color: #fff;
}
