.affiliate-gradient.affiliate-field.popup {
  label {
    flex-grow: 1;
  }
  > .affiliate-field-child {
    text-align: right;
    flex-grow: 0;
    .affiliate-panel {
      height: 28px;
      width: 28px;
      border-radius: 50%;
      display: inline-block;
      vertical-align: middle;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
      transition: 300ms;
      cursor: pointer;
      &:hover {
        transform: scale(1.1);
      }
      .affiliate-gradient {
        padding: 15px;
      }
    }
  }
}

.affiliate-gradient.affiliate-field.inline > label {
  width: 100%;
  margin-bottom: 10px;
}

.affiliate-gradient-popup {
  padding: 0;
  > div:not(:last-child) {
    margin-bottom: 15px;
  }
}

.affiliate-field-gradient-preview {
  height: 10px;
  border-radius: 6px;
  position: relative;
  .affiliate-color-picker-container {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    &.affiliate-position-left {
      left: 0;
    }
    &.affiliate-position-right {
      right: 0;
    }
    .affiliate-color-picker {
      width: 18px;
      height: 18px;
      border: 4px solid #ffffff;
      box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 1px inset;
      border: 1px solid transparent;
    }
  }
}
.affiliate-gradient-color.gradient-color-position-left {
  margin-left: -230px;
}
.affiliate-gradient-color.gradient-color-position-right {
  margin-right: -230px;
}
.affiliate-gradient-color-picker.is-bottom {
  margin-top: 20px !important;
}
