[data-component-id="usfq_theme:section_highlight"],
[data-component-id="usfq_theme:form_fields"],
.webform-submission-form {
  &.webform-submission-form,
  .webform-submission-form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: center;
  }

  .shadow-sm{
    box-shadow: none !important;
  }
  .border{
    border: none !important;
  }
  .form-item.form-type-radio{
    margin-top: .5rem;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="text"]):not([type="tel"]):not([type="email"]):not([type="date"]):not([type="number"]){
    border: none !important;
  }

  .text-white{
    color: #000 !important;
  }
  input::placeholder {
    color: #999;
  }

  .form-item {
    padding-right: calc(1.5rem / 2);
    padding-left: calc(1.5rem / 2);
    margin-top: 1.5rem;
  }

  label {
    margin-bottom: .5rem;
    font-size: var(--fs-s1);
    line-height: var(--lh-s1);
    font-weight: var(--fw-subtitle);
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  label:not(.option),
  textarea {
    display: block;
  }

  &.form-field--auto {
    width: auto;
    flex: 0 0 auto;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    border: 1px solid currentColor;
    padding: 1.11rem 1.5rem;
    border-radius: 2rem;
    background-color: inherit;
    outline: none;
    width: 100%;
    color: var(--secondary);
    font-size: var(--fs-s1);
    line-height: var(--lh-eyebrow);
    letter-spacing: .25em;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: .5rem;
    margin-bottom: .5rem;
    &::placeholder {
      color: #999;
    }
  }
  textarea{
    border-radius: 1rem;
  }

  input.form-field--success {
    padding-right: 3.5rem;
  }

  select {
    padding-right: 3rem;
  }

  .form-field__input-container {
    position: relative;
    width: 100%;
  }

  .form-field__success-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    pointer-events: none;
  }

  .form-field__select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    font: inherit;
  }

  .select2-container--default .select2-selection--single {
    border: 1px solid currentColor;
    border-radius: 3.063rem !important;
    background-color: var(--white);
    padding: .9379rem 3rem .9379rem 1.5rem;
    height: auto;
    outline: none;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: inherit;
    padding: 0;
    line-height: 1;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.27271 22.2159L16.7273 11.6705L7.27271 1.125' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }

  .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(-90deg);
  }

  .select2-container--default.select2-container--open .select2-selection--single {
    border-color: none;
    outline: none;
  }

  .select2-container--default .select2-dropdown {
    border: 1px solid currentColor;
    border-radius: 1rem;
    background-color: var(--white);
    margin-top: 0.5rem;
    overflow: hidden;
  }

  .form-field--error {
    border-color: var(--danger);
  }

  .form-field__error {
    margin-top: .5rem;
    color: var(--danger);
    text-align: right;
  }

  /* Solo el contenedor del submit: .form-wrapper generico alcanzaba
     todos los fieldsets de webform y los orientaba a la derecha. */
  .form-actions {
    position: relative;
    display: block;
    width: 100%;
    flex: 0 0 auto;
    text-align: right;
    padding: 0.5rem 1rem;
    padding-top: 4.5rem;
    margin-top: 6rem;
    cursor: pointer;

    &::after {
      content: "";
      position: absolute;
      top: 4rem;
      left: 0;
      right: 0;
      height: 2px;
      background-color: currentColor;
    }

    &::before {
      content: "";
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 35px;
      height: 35px;
      background-color: currentColor;
      mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 35 35" xmlns="http://www.w3.org/2000/svg"><path d="M1.71504 0V7.36067H22.4353L0 29.796L5.204 35L27.6393 12.5647V33.285H35V0H1.71504Z" fill="black"/></svg>');
      mask-repeat: no-repeat;
      mask-size: contain;
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    &:hover::before {
      transform: scale(1.2);
    }

    input.webform-button--submit {
      all: unset;
      display: block;
      width: 100%;
      text-align: right;
      font-size: 10px;
      letter-spacing: 0.23em;
      text-transform: uppercase;
      font-weight: 500;
      cursor: pointer;
      position: absolute;
      height: 100%;
      width: 100%;
      right: 0;
      top: 0rem;
      padding: 3rem .7rem;
    }
  }

  /* TABLET */
  @media (min-width: 768px) and (max-width: 1024px) {
    .form-field--auto {
      width: auto;
    }

    input,
    select,
    textarea {
      font-size: .875rem;
    }

    .form-actions {
      input.webform-button--submit {
        font-size: 14px;
      }
    }
  }

  /* DESKTOP */
  @media (min-width: 1025px) {
    .form-actions {
      padding: 0.5rem 4rem;
      padding-top: 4.5rem;
      position: relative;

      &::before {
        right: 1rem;
        top: .5rem;
        width: 48px;
        height: 48px;
      }

      input.webform-button--submit {
        font-size: 16px !important;
        position: absolute;
        height: 100%;
        width: 100% !important;
        right: 0;
        top: 0rem;
        /* padding: 0; */
        border: 0 solid !important
      }
    }

  }
}

.select2-dropdown.select2-dropdown--above {
  top: -.5rem !important;
}

.select2-dropdown.select2-dropdown--below {
  top: .5rem !important;
}

.select2-dropdown {
  border: 1px solid currentColor !important;
  border-top: 1px solid !important;
  border-radius: 1.5rem !important;
}

.select2-dropdown .select2-results__option {
  padding: .4rem 1.5rem;
  border-radius: .5rem;
  margin: 2px;
}

.select2-dropdown .select2-results__option:first-child {
  display: none;
}

.select2-dropdown .select2-results__option:nth-child(2) {
  margin-top: .5rem;
}

.select2-dropdown .select2-results__option:last-child {
  margin-bottom: .5rem;
}

/* Pierde contra la regla de debajo, mas especifica, en cualquier opcion real del
   panel; se deja alineada con ella para que una opcion no --selectable no herede el
   velo blanco sobre blanco que hacia invisible el hover. */
.select2-results__option.select2-results__option--highlighted {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
}

.select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  margin: 2px;
}


/* 
:where(html[data-theme="dark"]) input:not([type="checkbox"]):not([type="radio"]),
:where(html[data-theme="dark"]) select,
:where(html[data-theme="dark"]) textarea {
  color: var(--white) !important;
  border-color: var(--white) !important;
  outline: none;
}

:where(html[data-theme="dark"]) input::placeholder {
  color: #999;
}

:where(html[data-theme="dark"]) .select2-container--default .select2-selection--single {
  color: var(--secondary);
  background-color: var(--white) !important;
}

:where(html[data-theme="dark"]) .select2-dropdown {
  background-color: var(--secondary) !important;
  border-color: var(--white) !important;
  color: var(--white) !important;
}

:where(html[data-theme="dark"]) .select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--light-opacity-20) !important;
  color: var(--white) !important;
}

:where(html[data-theme="dark"]) .select2-dropdown .select2-results__option--selected,
:where(html[data-theme="dark"]) .select2-dropdown .select2-results__option--selected[aria-selected="true"] {
  background-color: var(--white) !important;
  color: var(--secondary) !important;
} */