@import '~styles/mixins';

.InputLanguage {
  .language-wrapper {
    margin-top: 8px;
    position: relative;
    padding-left: 17px;

    &.large {
      padding-left: 43px;
    }

    .language-label {
      position: absolute;
      left: 0;
      text-transform: uppercase;
      top: 11px;
      opacity: 0.4;
      font-size: 9px;
      font-weight: bold;
    }
  }

  margin-top: $form_spacing;

  &.no-margin {
    margin-top: 0;
  }

  .field-wrapper-container {
    position: relative;

    .icon-locker {
      @include v_align;
      display: flex;
      right: 5px;
      padding: 4px;
      font-size: 12px;
      opacity: 0.2;
      cursor: pointer;

      &.with-wysiwyg {
        bottom: 5px;
        bottom: 5px;
        top: auto;
        transform: none;
      }

      &.active {
        opacity: 1;
      }
    }
  }
  .language-switch {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    .button {
      margin: 4px 0;
      margin-left: 10px;
    }
    .language-label {
      font-weight: bold;
      text-transform: uppercase;
      font-size: 12px;
      padding: 0 4px;
      opacity: 0.4;
      cursor: pointer;
      &.active {
        opacity: 1;
      }
    }
  }
}
