.typo3-TCEforms {
    .col-control {
        --typo3-input-padding-x: .5rem;
        --typo3-input-padding-y: .5rem;
    }

    input,
    textarea {
        &.form-control {
            --typo3-input-padding-x: 1rem;
            --typo3-input-padding-y: 1rem;
        }
    }

    button {
        &.form-file-header-button {
            .form-irre-header-icon {
                width: 100%;
            }
        }
    }
    .form-wizards-item-bottom {
        margin-top: .5rem !important;

        .form-wizard-icon-list {
            border: none;
            padding: 0;
        }
    }

    .form-switch {
        input[type="checkbox"] {
            &.form-check-input {
                --typo3-form-check-border-radius: 1rem;
                --typo3-form-check-height: 1.25rem;
                --typo3-form-check-width: 2.75rem;

                &:checked {
                    --typo3-form-check-border-color: var(--token-color-neutral-85);
                    background: light-dark(var(--token-color-neutral-55), var(--token-color-neutral-35));
                }
            }
        }
    }

    .form-check-type-icon-toggle {
        align-items: center;

        input[type="checkbox"] {
            &.form-check-input {
                --typo3-form-check-height: 1.5rem;
                --typo3-form-check-width: 1.5rem;
            }
        }
    }

    .form-check {
        align-items: center;

        input[type="radio"] {
            &.form-check-input {
                --typo3-form-check-height: 1.5rem;
                --typo3-form-check-width: 1.5rem;
            }
        }

        &.form-check-type-icon-toggle {
            .form-check-label-icon {
                inset-inline-start: 3px;
                top: 3px;
            }
        }
    }

    input {
        &.form-control {
            &[type="number"] {
                -moz-appearance: textfield;
                appearance: textfield;

                &::-webkit-outer-spin-button,
                &::-webkit-inner-spin-button {
                    -webkit-appearance: none;
                }
            }
        }
    }

    select {
        &.form-select {
            --typo3-input-padding-x: 1rem;
            --typo3-input-padding-y: 1rem;

            &[multiple="multiple"] {
                --typo3-input-padding-x: 1rem;
                --typo3-input-padding-y: .5rem;
            }
        }

        &.form-control-adapt {
            max-width: fit-content;
        }
    }

    .form-description {
        max-width: 640px;
    }

    .form-wizard-icon-list-item {
        button {
            margin: 0 2px;
            padding: 0;
        }
    }

    .row {
        .col-sm-4,
        .col-sm-6 {
            width: auto;
        }

        .clearfix {
            width: 100%;
        }
    }

    typo3-formengine-container-files {
        .panel-group {
            margin-bottom: 0;
        }

        .tab-content {
            fieldset {
                &.form-section {
                    .form-group {
                        margin-bottom: 0;
                    }

                    .media-gallery__list {
                        .media-gallery__item {
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }
    }
}