.cf7vb-field-checkbox,
.cf7vb-field-radio,
.cf7vb-field-preview fieldset.cf7vb-choice-inline,
.cf7vb-field-preview fieldset.cf7vb-choice-list {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cf7vb-field-checkbox legend,
.cf7vb-field-radio legend,
.cf7vb-field-preview fieldset[class*="cf7vb-choice-"] legend {
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0;
    font: inherit;
    font-weight: 600;
}

.cf7vb-choice-inline .wpcf7-form-control,
.cf7vb-choice-inline .cf7vb-choice-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.25rem;
}

.cf7vb-choice-list .wpcf7-form-control,
.cf7vb-choice-list .cf7vb-choice-items {
    display: grid;
    gap: 0.6rem;
}

.cf7vb-field-checkbox .wpcf7-list-item,
.cf7vb-field-radio .wpcf7-list-item {
    margin: 0;
}

.cf7vb-field-checkbox .wpcf7-list-item label,
.cf7vb-field-radio .wpcf7-list-item label,
.cf7vb-field-preview fieldset[class*="cf7vb-choice-"] label,
.cf7vb-field-acceptance .wpcf7-list-item label,
.cf7vb-acceptance-label {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    line-height: 1.45;
    font-weight: 400;
}

.cf7vb-field-checkbox .wpcf7-list-item label,
.cf7vb-field-radio .wpcf7-list-item label,
.cf7vb-field-acceptance .wpcf7-list-item label {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: auto !important;
}

.cf7vb-field-checkbox .wpcf7-list-item-label,
.cf7vb-field-radio .wpcf7-list-item-label,
.cf7vb-field-acceptance .wpcf7-list-item-label {
    display: inline !important;
    flex: 0 1 auto;
    width: auto !important;
    margin: 0 !important;
    font-weight: 400;
}

.cf7vb-field-checkbox input[type="checkbox"],
.cf7vb-field-radio input[type="radio"],
.cf7vb-field-acceptance input[type="checkbox"],
.cf7vb-field-preview fieldset[class*="cf7vb-choice-"] input,
.cf7vb-acceptance-label input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0.18em 0 0;
    padding: 0;
    accent-color: var(--cf7vb-choice-accent, #f90050) !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.cf7vb-field-acceptance .wpcf7-form-control-wrap,
.cf7vb-field-acceptance .wpcf7-form-control,
.cf7vb-field-acceptance .wpcf7-list-item {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#form-panel .cf7vb-native-editor-locked {
    cursor: not-allowed;
    opacity: 0.72;
    background: #f0f0f1;
}

#form-panel .cf7vb-native-editor-notice {
    margin: 0 0 12px;
}

.cf7vb-field-file input[type="file"],
.cf7vb-field-preview input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: var(--cf7vb-file-padding, 0.4rem);
    overflow: hidden;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cf7vb-field-file input[type="file"]::file-selector-button,
.cf7vb-field-preview input[type="file"]::file-selector-button {
    margin: -0.4rem 0.75rem -0.4rem -0.4rem;
    padding: var(--cf7vb-file-button-padding, 0.7rem 1rem);
    border: 0;
    border-right: 1px solid var(--cf7vb-file-button-border, #dcdcde);
    border-radius: var(--cf7vb-file-button-radius, 6px 0 0 6px);
    background: var(--cf7vb-file-button-bg, #f0f0f1);
    color: var(--cf7vb-file-button-color, #1d2327);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.cf7vb-field-file input[type="file"]:hover::file-selector-button,
.cf7vb-field-preview input[type="file"]:hover::file-selector-button {
    background: var(--cf7vb-file-button-hover-bg, #dcdcde);
    color: var(--cf7vb-file-button-hover-color, #135e96);
}

.cf7vb-field-file input[type="file"]:focus-visible,
.cf7vb-field-preview input[type="file"]:focus-visible {
    outline: 2px solid var(--cf7vb-focus-color, #2271b1);
    outline-offset: 2px;
}

/* Safari and older Chromium fallback. */
.cf7vb-field-file input[type="file"]::-webkit-file-upload-button,
.cf7vb-field-preview input[type="file"]::-webkit-file-upload-button {
    margin: -0.4rem 0.75rem -0.4rem -0.4rem;
    padding: var(--cf7vb-file-button-padding, 0.7rem 1rem);
    border: 0;
    border-right: 1px solid var(--cf7vb-file-button-border, #dcdcde);
    border-radius: var(--cf7vb-file-button-radius, 6px 0 0 6px);
    background: var(--cf7vb-file-button-bg, #f0f0f1);
    color: var(--cf7vb-file-button-color, #1d2327);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
