.wccpf-custom-fields-wrapper {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fafafa;
}

.wccpf-field-group {
    margin-bottom: 15px;
}

.wccpf-field-group:last-child {
    margin-bottom: 0;
}

.wccpf-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.wccpf-field-group label span.required {
    color: #e2401c;
    font-weight: bold;
    margin-left: 2px;
}

.wccpf-input-field {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease-in-out;
}

.wccpf-input-field:focus {
    border-color: #007cba;
    outline: none;
}

.wccpf-textarea {
    height: 80px;
    resize: vertical;
}

.wccpf-select {
    height: auto;
    padding: 8px 12px;
}

/* Ensure inputs inside cart/checkout variation lists are fully editable and visible */
dl.variation dd .wccpf-cart-input,
.product-name .wccpf-cart-input {
    display: inline-block !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: text !important;
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    padding: 6px 10px !important;
    margin-top: 5px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 250px !important;
}

dl.variation dd select.wccpf-cart-input {
    cursor: pointer !important;
}

dl.variation dd textarea.wccpf-cart-input {
    resize: vertical !important;
    min-height: 60px !important;
}

.wccpf-saving {
    background-color: #f7f7f7 !important;
    border-color: #007cba !important;
}
