.wc-custom-fields {
    margin-bottom: 20px;
}

.wc-custom-fields label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.wc-custom-fields input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.wc-custom-fields input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.wc-custom-fields small {
    font-size: 12px;
    color: #777;
}

.wc-custom-fields .button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.wc-custom-fields .button:hover {
    background-color: #005177;
}

/* Hide the default file input button */
.wc-custom-fields input[type="file"] {
    display: none;
}

/* Style the custom "Choose File" button */
.wc-custom-fields .custom-file-upload {
    display: inline-block;
    background-color: #0073aa; /* Your desired background color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
}

.wc-custom-fields label:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Hover effect for the custom button */
.wc-custom-fields .custom-file-upload:hover {
    background-color: #005177; /* Darker shade for hover effect */
}

/* Display the selected file name */
.selected-file {
    margin-top: 10px;
    font-size: 14px;
    font-weight: normal;
    color: #333;
}

.selected-file button {
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.selected-file button:hover {
    background-color: #c9302c;
}

/* Disable the "Choose File" button when a file is selected */
.wc-custom-fields .custom-file-upload:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wc-custom-fields-optional {
    font-size: 14px;
    color: #777;
    margin-top: 10px;

    display: flex;
    flex-direction: row;
    column-gap: 10px;
    align-items: center;
}

.wc-custom-fields-optional label {
    display: inline;
}

#wc_custom_image_optional_message {
    color: #777;
    font-size: 16px;

    display: flex;
    flex-direction: row;
    column-gap: 10px;
}