.taxonomy--grid, [id*='edit-field-tax-'] {
  .form-checkboxes:not(.views-ui-dialog) {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    grid-gap: 5px;
  
    .form-type-checkbox {
      margin-bottom: 0;
    }
    
    .field--widget-options-pretty & {
      display: block;
    }
  }
  
  .form-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(175px,1fr));
    grid-gap: 5px;
  
    .form-type-radio {
      margin-bottom: 0;
    }
    
    .field--widget-options-pretty & {
      display: block;
    }
  }
  
  
}

@media screen and (min-width: 640px) {
  .form-select, .form-text, .form-textarea {
    min-width: 200px;
    max-width: 100%;
  }
}

// Form Styles for nested paragraphs
.form-wrapper {
  &.paragraphs-nested {
    .field--type-string {
      margin-bottom: 5px;
    }
    
    .field-group-html-element{
      .fieldset--meta {
        padding: 5px;
        border: 1px solid #00000033;
      }
      .fieldset--columns {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 5px;
        border: 1px dotted #00000022;
        margin-bottom: 5px;
        align-items: center;
      }
    }
    
  }
}

