.segment-generator {
  width: 930px;

  @media screen and (max-width: 940px) {
    width: 100%;
  }

  .segment-row-inputs {
    .form-group {
      margin-top: 0;
      margin-bottom: 0;

      .input-field {
        margin-top: 0;
      }
    }
  }

  .segment-input {
    float: left;
    padding: 6px 0 5px 3px;
    border: 2px dashed @theme-color-background-base;
    margin-right: 3px;

    label {
      display: block;
      margin: 0 0 5px 0;
      font-size: 11px;
      color: @theme-color-text-lighter;
    }

    input {
      display: block;
      width: 96%;
      padding: 8px 2%;
    }

    select, input {
      .font-default(12px, 14px);
      color: @theme-color-text;
      font-weight: 600;
      margin: 0;
      height: 32px;
    }
  }

  .segment-rows {
    padding: 4px;
    margin: 0 3px 0 0;
    border: 1px solid @theme-color-border-light;
    border-radius: 3px 3px 3px 3px;
    position: relative;
    box-shadow: 0 12px 6px -10px rgba(0, 0, 0, 0.42);
  }

  .segment-add-row,
  .segment-add-or {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    background: @theme-color-background-contrast;
    color: @theme-color-text-invert;
    text-align: center;
    position: relative;
    .border-radius(5px);
  }

  .segment-add-row > div,
  .segment-add-or > div {
    border-radius: 4px;
    border: 2px dashed @theme-color-background-contrast;
    padding: 10px 0;
  }

  .segment-add-row > div a,
  .segment-add-or > div a {
    color: @theme-color-text-invert;
    text-decoration: none;
  }

  .segment-add-row > div a span,
  .segment-add-or > div a span {
    color: @theme-color-brand;
    text-shadow: none;
  }

  .segment-add-row {
    margin: 0 3px 0 0;
    padding: 0 12px;
    border: 1px solid @theme-color-border-light;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 12px 6px -10px rgba(0, 0, 0, 0.42);
  }

  .segment-add-or {
    text-shadow: 0 1px 0 @theme-color-background-contrast;
    display: inline-block;
    width: 100%;
    padding: 0 1%;
    background: @theme-color-background-base;
    border-radius: 3px 3px 3px 3px;
  }

  .segment-add-or > div {
    border: 2px dashed @theme-color-background-base;
    background-color: @theme-color-background-base;
  }

  .segment-row {
    border-radius: 3px;
    display: inline-block;
    position: relative;
    width: 100%;
    background: @theme-color-background-base;
    padding: 0 5px 0 5px;

    @media screen and (max-width: 749px) {
      width: 100%;
    }

  }

  .segment-row .segment-close {
    top: 15px;
    right: 6px;
    position: absolute;
    width: 15px;
    height: 15px;
    background: url(plugins/SegmentEditor/images/segment-close.png) 0 0 no-repeat;
    z-index: 9999;
  }

  .segment-row .segment-loading {
    top: 25px;
    right: 30px;
    position: absolute;
  }

  .segment-or {
    display: inline-block;
    margin: 0 0 0 6%;
    position: relative;
    background: @theme-color-background-base;
    padding: 5px 28px;
    color: @theme-color-text-light;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 0 @theme-color-background-contrast;
  }

  .segment-or:before,
  .segment-or:after {
    content: '';
    position: absolute;
    background: @theme-color-background-base;
    border: 1px solid @theme-color-background-base;
    width: 10px;
    top: -1px;
    bottom: -1px;
  }

  .segment-or:before {
    border-left: none;
    left: 0;
    border-radius: 0 5px 5px 0;
  }

  .segment-or:after {
    border-right: none;
    right: 0;
    border-radius: 5px 0 0 5px;
  }

  .segment-and {
    display: inline-block;
    margin: -1px 0 -1px 6%;
    z-index: 1;
    position: relative;
    background: @theme-color-background-contrast;
    padding: 5px 35px;
    color: @theme-color-text-light;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 0 @theme-color-background-contrast;
  }

  .segment-and::before,
  .segment-and::after {
    content: '';
    position: absolute;
    border: 1px solid @theme-color-border-light;
    width: 10px;
    top: 0;
    bottom: 0;
    overflow: hidden;
    box-shadow: inset 0 12px 6px -10px rgba(0, 0, 0, 0.42);
  }

  .segment-and::before {
    border-left: none;
    left: 0;
    border-radius: 0 5px 5px 0;
  }

  .segment-and::after {
    border-right: none;
    right: 0;
    border-radius: 5px 0 0 5px;
  }
}
