.row {
  margin-bottom: 10px;

  &.controls {
    justify-content: flex-start;
  }
}

.input-wrapper {
  @include media-width(desktop, 283px);

  @include breakpoint(tablet) {
    &.from, &.to, &.date {
      width: 230px;
    }
    &.to {
      .form-input { border-radius: 0; }
    }
    &.options {
      width: 344px;
    }
  }

}

.segment {
  &:not(:first-child) {
    .form-label {
      display: none;
    }
  }

  .close {
    background: url(data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ERectangle%201529%3C%2Ftitle%3E%3Cpath%20d%3D%22M9%207.586L1.93.516.514%201.928%207.584%209l-7.07%207.07%201.415%201.415L9%2010.415l7.07%207.07%201.415-1.414L10.415%209l7.07-7.07L16.07.514%209%207.584z%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E) no-repeat center center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 170px;
    padding: 0;
    margin-left: 10px;
    border-radius: 3px;

    @include media-width(desktop, 56px);
    @include breakpoint(tablet) {
      width: 26px;
      border: 0;
      height: 56px;
    }


    &.hidden {
      display: block;
      visibility: hidden;
    }
  }

  .date {
    .form-input {
      border-radius: 0 3px 3px 0;
    }
  }
}

.add-segment {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  line-height: 51px;
  text-align: center;
  margin-right: 10px;
  border-radius: 3px;
  @include breakpoint(desktop) {
    width: 273px;
    margin: 0px 11px 0 3px;
  }

  @include breakpoint(tablet) {
    width: 692px;
    margin-bottom: 18px;
  }

  &.disabled {
    cursor: default;
  }
}

.options {
  margin-right: 65px;
  width: 260px;

  .form-input {
    width: 260px;
    border-radius: 3px;
  }
  @include breakpoint(desktop) {
    width: 282px;
    margin-right: 10px;

    .form-input {
      width: 100%;
    }
  }

  @include breakpoint(tablet) {
    width: 344px;
    margin-right: 10px;

    .form-input {
      width: 100%;
    }
  }
}

.actions {
  display: block;
  .switch-simple {
    position: absolute;
  }
}

.button {
  position: relative;
  width: 273px;
  height: 56px;
  bottom: 0;
  margin: 0;

  position: absolute;
  margin: -90px auto;
  left: 0;
  right: 0;

  @include breakpoint(desktop) {
    position: relative;
    margin: 0;
    bottom: 0;
  }

  @include breakpoint(tablet) {
    position: relative;
    margin: 0;
    bottom: 0;
  }

  @include media-width(tablet, 338px);
}
