/**
 * @file
 * Visual styles for form components.
 */

form .field-multiple-table {
  margin: 0;
}
form .field-multiple-table .field-multiple-drag {
  width: 30px;
  padding-right: 0; /* LTR */
}
[dir="rtl"] form .field-multiple-table .field-multiple-drag {
  padding-left: 0;
}
form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0.5em; /* LTR */
}
[dir="rtl"] form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0;
  padding-left: 0.5em;
}
form .field-add-more-submit {
  margin: 0.5em 0 0;
}

/**
 * Markup generated by Form API.
 */
.form-item,
.form-actions {
  margin-top: 1em;
  margin-bottom: 1em;
}
tr.odd .form-item,
tr.even .form-item {
  margin-top: 0;
  margin-bottom: 0;
}
.form-composite > .fieldset-wrapper > .description,
.form-item .description {
  font-size: 0.85em;
}
label.option {
  display: inline;
  font-weight: normal;
}
.form-composite > legend,
.label {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: bold;
}
.form-checkboxes .form-item,
.form-radios .form-item {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.form-type-radio .description,
.form-type-checkbox .description {
  margin-left: 2.4em; /* LTR */
}
[dir="rtl"] .form-type-radio .description,
[dir="rtl"] .form-type-checkbox .description {
  margin-right: 2.4em;
  margin-left: 0;
}
.marker {
  color: #e00;
}
.form-required::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.3em;
  content: "";
  vertical-align: super;
  /* Use a background image to prevent screen readers from announcing the text. */
  background-image: url(../../images/icons/required.svg);
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
abbr.tabledrag-changed,
abbr.ajax-changed {
  border-bottom: none;
}
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
  border: 2px solid red;
}

/* Inline error messages. */
.form-item--error-message::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  content: "";
  vertical-align: sub;
  background: url(../../images/icons/error.svg) no-repeat;
  background-size: contain;
}

.js-form-type-webform-nouislider .slider-parent {
  width: 500px;
  max-width: 100%;
  margin: 20px auto 30px;
  margin-top: calc(var(--font-size-32) + 20px);
}

.js-form-type-webform-nouislider .slider {
  max-width: 100%;  
}

.paragraph--type--form .step-2 {
  & #edit-select-model--wrapper {
    & #edit-select-model {
      & .webform-options-display-buttons-wrapper.hide {
        display: none;
      }
    }
  }
}

.slider.noUi-target {
  background: var(--color-border-3);
  border-radius: 0px;
  border: none;
  box-shadow: none;
  
   & .noUi-connect {
     background-color: var(--color-orange-2);
   }
   
   &.noUi-horizontal {
     height: 4px;
   }
   
   .noUi-base {
     height: calc(100% + 40px);
     top: -20px;
     
     & .noUi-origin, & .noUi-connects {
       top: 20px;
     }
     
     & .noUi-connects {
       height: calc(100% - 40px);
     }
   }
   
   & .noUi-handle::after, & .noUi-handle::before {
     display: none;     
   }
   
    .noUi-handle {
      box-shadow: none;
      width: 43px;
      height: 43px;
      padding: 5px;
      box-sizing: border-box;
      top: -20px;
      right: -20px;
      background: none;
      border: none;
      border-radius: 50%;
      
    }
    
    .noUi-touch-area {
      border: 10px solid rgba(243, 150, 113, 0.5);
      border-radius: 50%;
      background-color: var(--color-orange-2);
      background-clip: padding-box;
      padding: 0;
    }
    
    .noUi-tooltip {
      font-weight: var(--font-bold);
      font-size: var(--font-size-32);
      line-height: 1.25;
      color: var(--color-blue-2);
      border: none;
      bottom: 100%;
      background: none;
    }
    
}

.block-system-main-block {
  & > form {
    padding: 0 var(--grid-padding);
  }
}